compas_cgal.measure
¤
Functions¤
mesh_area
¤
mesh_area(mesh: VerticesFaces) -> float
Compute the area of a triangle mesh.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mesh
|
VerticesFaces
|
The mesh. |
required |
Returns:
| Type | Description |
|---|---|
float
|
The area of the mesh. |
mesh_centroid
¤
mesh_centroid(mesh: VerticesFaces) -> list[float]
Compute the centroid of a the volume of a closed triangle mesh.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mesh
|
VerticesFaces
|
The mesh. |
required |
Returns:
| Type | Description |
|---|---|
list[float]
|
The centroid of the mesh. |
mesh_volume
¤
mesh_volume(mesh: VerticesFaces) -> float
Compute the volume of a closed triangle mesh.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mesh
|
VerticesFaces
|
The mesh. |
required |
Returns:
| Type | Description |
|---|---|
float
|
The volume of the mesh. |
Examples: