mymesh.tree.OctreeNode#
- class mymesh.tree.OctreeNode(centroid, size, parent=None, data=None, level=0, state='unknown')[source]#
Bases:
TreeNode
Properties#
Methods#
OctreeNode.ContainsBoxes(boxes)Identify which of a set of a boxes is contained in the node
OctreeNode.ContainsPts(points)Identify which of a set of a points is contained in the node
OctreeNode.ContainsTris(tris[, TriNormals])Identify which of a set of a triangles is contained in the node
OctreeNode.PointInNode(point[, inclusive])Check if a point is within the bounds of the current node.
OctreeNode.PointsInNode(points[, inclusive])Check if a set of points is within the bounds of the current node.
OctreeNode.clearData([clearChildren])Reset the data attribute for this node, and optionally all children
OctreeNode.getLevel(level)Get all child nodes at a particular octree level
Get the spatial bounds of the current octree node.
Get the maximum depth of the octree.
Get the coordinates of the 8 vertices of the cube that correspond to the octree node.
Check if the node has any child nodes
OctreeNode.makeChildren([childstate])Initialize child nodes for the current node
OctreeNode.makeChildrenBoxes(boxes[, ...])Make child nodes based on boxes.
OctreeNode.makeChildrenPts(points[, ...])Make child nodes based on points.
OctreeNode.makeChildrenTris(tris, TriNormals)Make child nodes based on triangles.
OctreeNode.prune(level)