Class OctNodeLeaf
java.lang.Object
cz.fidentis.analyst.data.octree.impl.OctNodeImpl
cz.fidentis.analyst.data.octree.impl.OctNodeLeaf
- All Implemented Interfaces:
OctNode
,Serializable
A leaf node of an Octree.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOctNodeLeaf
(javax.vecmath.Point3d smallest, javax.vecmath.Point3d largest, List<MeshTriangle> triangles) Constructor of a leaf node -
Method Summary
Methods inherited from class cz.fidentis.analyst.data.octree.impl.OctNodeImpl
getChild, getLowerBound, getOctant, getTriangles, getUpperBound, isLeafNode, isPointInside, rayIntersection, toString, toString, toString, toString, toString
-
Constructor Details
-
OctNodeLeaf
public OctNodeLeaf(javax.vecmath.Point3d smallest, javax.vecmath.Point3d largest, List<MeshTriangle> triangles) Constructor of a leaf node- Parameters:
smallest
- boundary box - corner with the smallest coordinates. Must not be nulllargest
- boundary box - corner with the largest coordinates. Must not be nulltriangles
- Mesh triangles which this oct node holds, meaning a bounding box of the triangle intersects with this oct node Must not be null- Throws:
IllegalArgumentException
- if some parameter is wrong
-