Skip to main content

getting a 2D contour for a collection of objects.

No replies
Joined: 2009-05-05

I want to add a top to a collection of objects. The top is a simple prism with a polygonal base. For each object I can get a BoundingBox, but I need to combine them (hopefully they will be attached to each other) in order to have a more complex bound, so I create their top. In fact, all I need is a 2D points collection which encloses all the objects in the collection, and from there, to generate a polygone which will be the prism base. Therefore, I can't use nor BoundingBox, nor BoundingSphere. The most usefull would be a BoundingPolytope, but haven't found any example. What I get is a collection of planes. Should I calculate planes intersections and all that my self, or there are any helper classes to do it? Is there a better way to do it?

Thanx in advance