Skip to main content

SurfaceMeshStatistics

Other

Statistics for a single surface mesh or region.

Import

import ScriptingApi as api

# Access the class
# SurfaceMeshStatistics is available via api.SurfaceMeshStatistics

Properties

name

Name or region identifier.

Type: str


region_id

Region ID (for per-region statistics).

Type: int


num_vertices

Number of vertices.

Type: int


num_triangles

Number of triangles.

Type: int


num_unique_edges

Number of unique edges.

Type: int


num_estimated_edges

Estimated number of edges.

Type: int


volume

Enclosed volume in cubic millimeters.

Type: float


volume_fraction

Volume fraction as percentage.

Type: float


surface_area

Surface area in square millimeters.

Type: float


surface_area_fraction

Surface area fraction as percentage.

Type: float


surface_area_to_volume_ratio

Surface area to volume ratio.

Type: float


shape_index

Shape index.

Type: float


sphericity

Sphericity measure (1.0 = perfect sphere).

Type: float


compactness

Compactness measure.

Type: float


diameter

Maximum diameter.

Type: float


center_of_mass

Center of mass [x, y, z].

Type: list


bounding_box_area

Bounding box area.

Type: float


bounding_box_volume

Bounding box volume.

Type: float


bounding_box_diagonal

Bounding box diagonal length.

Type: float


bounding_box_size

Bounding box size [x, y, z].

Type: list


bounding_box_center

Bounding box center [x, y, z].

Type: list


num_regions

Number of connected regions.

Type: int


num_boundary_edges

Number of boundary edges.

Type: int


num_non_manifold_edges

Number of non-manifold edges.

Type: int


euler_characteristic

Euler characteristic.

Type: int


genus

Topological genus.

Type: int


See Also