Hi Maxime,
Maxime BOUCHER schrieb:
Hi,
Just a question.
The polytopeIntersections compute the intersections with planes or "all"
"objects" in the Polytope?
I mean if I draw the "local intersection points" will I get an empty or full
shape of the polytope?
The polytopeIntersector performs the intersection with the space volume
defined by the polytope. So if a triangle lies completely inside the
polytope (without intersecting the polytope's planes) it is still
considered an "intersection" because it intersects the volume.
I wonder because I tried a polytope with a single plane (to test), and I had a
lot of points non coplanars...
Yes, that is to be expected because you basically got all primitives
lying in the half-space to one side of your plane.
I also drawed it using intersection.localIntersectionPoint, which is the
center of the primitive, isn't it?
Almost ;-) No actually it is the center of all "intersection"-points.
Say you have a triangle where two points lie inside the polytope-space
and one point lies outside of this space.
Than you have 2 intersection-points for the points lying inside,
and 2 intersections points where the edges intersect the polytope
plane(s). This gives you a total of 4 intersection points and the
localIntersectionPoint is the centroid(barycenter) of those 4 points.
Cheers,
Peter
--
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Roland Niemeier,
Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Michel Lepert
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org