Hello, I have 2 buildings like this
Coordinate[] building1Coords = { new Coordinate(15., 5.,0.),
new Coordinate(30., 5.,0.), new Coordinate(30., 30.,0.),
new Coordinate(15., 30.,0.), new Coordinate(15., 5.,0.) };
Coordinate[] building2Coords = { new Coordinate(30., 5.,0.),
new Coordinate(45., 5.,0.), new Coordinate(45., 45.,0.),
new Coordinate(30., 45.,0.), new Coordinate(30., 5.,0.) };
To save these two buildings, i give every DPoint of the building a same ID used the parameter "property". Like building1, every point i give "property=1" and building2 "property=2"
When the two building are separated, this "property" not changed but when the two building are glued, the intersected point, like Point(30., 5.,0.) in exemple, his "property" will be changed from "2" to "3".
I know after JDelaunay the intersected point will used just one time, so the point list changed liked this one:
[Point 8 [0.0 0.0 0.0], Point 9 [0.0 60.0 0.0], Point 1 [15.0 5.0 0.0], Point 2 [15.0 30.0 0.0], Point 4 [30.0 5.0 0.0], Point 3 [30.0 30.0 0.0], Point 7 [30.0 45.0 0.0], Point 5 [45.0 5.0 0.0], Point 6 [45.0 45.0 0.0], Point 11 [60.0 0.0 0.0], Point 10 [60.0 60.0 0.0]]
In fact i dont want to merge this two building before the JDelaunay cuz they have different height so i want to keep these two buildings independent
Using "property", how can i avoid this problem ?
Hope my question is clear... Thank you