mymesh.utils.TriSurfVol#

mymesh.utils.TriSurfVol(NodeCoords, SurfConn)[source]#

Calculates the volume contained within a surface mesh. Based on ‘Efficient feature extraction for 2D/3D objects in mesh representation.’ - Zhang, C. and Chen, T., 2001

Parameters:
  • NodeCoords (list of lists) – Contains coordinates for each node. Ex. [[x1,y1,z1],…].

  • SurfConn (List of lists) – Nodal connectivity list for a triangular surface mesh.

Returns:

V – Volume contained within the surface mesh.

Return type:

float