mymesh.tree.OctreeNode.makeChildrenTris#

OctreeNode.makeChildrenTris(tris, TriNormals, minsize=0, maxsize=inf, maxdepth=inf)[source]#

Make child nodes based on triangles.

Parameters:
  • tris (array_like) – Coordinates of the points of the triangles (shape=(n,3,3))

  • TriNormals (array_like, optional) – Normal vectors of the triangles (shape=(n,3))

  • minsize (float, optional) – Minimum size for octree subdivision, by default 0

  • maxsize (float, optional) – Maximum size of a leaf node, nodes large than this must be further subdivided, by default np.inf

  • maxdepth (int, optional) – Maximum depth of the occur tree, by default np.inf