BoxSoup
Description
The BoxSoup represents a soup of 3D boxes in terrain-space.
The box soup is populated with the Add
methods. Call Clear to remove all boxes. Clipping against arbitrary planes in terrain-space is done with the Clip method.
Use Vertices, Edges and Faces to visualize the box soup, for example the bounding boxes of all terrain mesh sectors in the view-frustum.
Use Points to obtain a point soup of all clipped boxes. This can be used to create fitted convex hulls, for example.
Public / Methods
Add
4 overloads
Adds an axis-aligned box to this soup.
Adds a box to this soup.
Adds a box to this soup.
Adds a box to this soup.
Clip
Clips all boxes in this soup at the given plane.
This BoxSoup will be intersected with the positive half-space of the given plane.