openalea.phenomenal.mesh.normals

openalea.phenomenal.mesh.normals(vertices, faces)[source]

Compute normal 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 vector direction of the normal in the same order that faces

Return type:

[(x, y, z), ..]