MeshFaceNormals

Returns the face unit normal for each face of a mesh object.  

Syntax

rhinoscriptsyntax.MeshFaceNormals (mesh_id)

rhinoscript.mesh.MeshFaceNormals (mesh_id)

Parameters

mesht_id

Required.  String or Guid.  The identifier of a mesh object.

Returns

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.

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select mesh", rs.filter.mesh)

normals = rs.MeshFaceNormals(obj)

if normals:

    for vector in normals: print vector

Also See

MeshHasFaceNormals

MeshFaceCount

MeshFaces