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