FastHull3d
A fast hull is a set of planes bounding a convex polyhedron, that can be quickly tested against intersection of an axis- aligned bounding box.
Constructors
Constructor | Description |
new(count)
Signature: count:int -> unit
|
Create an empty FastHull3d with count planes. |
new(fastHull)
Signature: fastHull:FastHull3d -> unit
|
|
new(hull)
Signature: hull:Hull3d -> unit
|
Instance members
Instance member | Description |
IntersectsAxisAlignedBox(corners)
Signature: (corners:V3d []) -> bool
|
Test hull against intersection of the supplied bounding box specified by an array of its eight corner vertices, that must be ordered as returned by the call of the axis aligned bounding box. The avaibility of this corner array slightly improves the performance of the test. Note that this is a conservative test, since in some cases around the edges of the hull it may return true although the hull does not intersect the box. |
Transformed(trafo)
Signature: trafo:Trafo3d -> FastHull3d
|
|
TransformInto(trafo, fastHull)
Signature: (trafo:Trafo3d * fastHull:byref<FastHull3d>) -> unit
|