openalea.phenomenal.mesh.centers¶
-
openalea.phenomenal.mesh.
centers
(vertices, faces)[source]¶ Compute center of each faces
Parameters: - vertices ([(x, y, z), ..]) – Spatial coordinates for unique mesh vertices.
- faces ([(V1, V2, V3), ..]) – Define triangular faces via referencing vertex indices from vertices. This algorithm specifically outputs triangles, so each face has exactly three indices
Returns: out – List of center of faces in the same order that faces
Return type: [(x, y, z), ..]