parq_blockmodel.solid.MeshSolid#
- class parq_blockmodel.solid.MeshSolid(mesh, name=None)[source]#
Closed 3D solid represented by a triangulated mesh.
- __init__(mesh, name=None)#
Methods
__init__(mesh[, name])evaluate(grid)Return boolean mask of centroid points inside the solid.
from_dxf(path, *[, name, by])Create a MeshSolid from DXF 3D-face geometry grouped by layer or block.
from_mesh(mesh[, name])Create a MeshSolid from an in-memory triangle mesh.
from_ply(path[, name])Create a MeshSolid from a PLY mesh file.
from_pyvista(surface[, name])Create a MeshSolid directly from a PyVista PolyData surface.
Attributes
EVALUATE_CHUNK_SIZEnamemesh- evaluate(grid)[source]#
Return boolean mask of centroid points inside the solid.
Boundary points are classified as inside.
- Return type:
ndarray
- classmethod from_dxf(path, *, name=None, by='layer')[source]#
Create a MeshSolid from DXF 3D-face geometry grouped by layer or block.
- Return type:
- classmethod from_mesh(mesh, name=None)[source]#
Create a MeshSolid from an in-memory triangle mesh.
- Return type: