Returns the face unit normal for each face of a mesh object.
rhinoscriptsyntax.MeshFaceNormals (mesh_id)
rhinoscript.mesh.MeshFaceNormals (mesh_id)
mesht_id |
Required. String or Guid. The identifier of a mesh object. |
list |
A list of 3-D vectors that define the face unit normals of the mesh if successful. The number of elements in the array will be equal to the value returned by MeshFaceCount. In which case, the array will identify the unit normals for each face return by MeshFaces. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select mesh", rs.filter.mesh)
normals = rs.MeshFaceNormals(obj)
if normals:
for vector in normals: print vector