volmesh_from_polysurfaces
- compas_rhino.utilities.volmesh_from_polysurfaces(cls, guids, precision=None)[source]
Construct a volumetric mesh from given polysurfaces.
- Parameters
cls (
VolMesh
) – The class of volmesh.guids (sequence[str | System.Guid]) – The globally unique identifiers of the polysurfaces.
precision (string) – Precision of the polysurface connectivity.
- Returns
Volmesh
– The volumetric mesh object.
Notes
Essentially, this function does the following:
find each of the polysurfaces and check if they have a boundary representation (b-rep)
convert to b-rep and extract the edge loops
make a face of each loop by referring to vertices using their geometric keys
add a cell per brep
and add the faces of a brep to the cell
create a volmesh from the found vertices and cells