mymesh.tree.Quadtree2Pixel#
- mymesh.tree.Quadtree2Pixel(root, sparse=True)[source]#
Convert an quadtree to a pixel mesh
- Parameters:
root (tree.QuadtreeNode) – Quadtree node from which the mesh will be generated.
sparse (bool, optional) – Determines pixelization mode. If sparse is True, only leaf nodes that contain data will be included, otherwise both leaf and empty nodes will be include, by default True.
- Returns:
PixelCoords (np.ndarray) – Node coordinates of the pixel mesh.
PixelConn (np.ndarray) – Node connectivity of the hexahedral pixel mesh.