Fixes inconsistencies in the directions of faces of a mesh object.
rhinoscriptsyntax.UnifyMeshNormals (object_id)
rhinoscript.mesh.UnifyMeshNormals (object_id)
object_id |
Required. String or Guid. The identifier of a mesh object. |
Number |
The number of faces that were modified if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select mesh", rs.filter.mesh)
if rs.IsMesh(obj): rs.UnifyMeshNormals(obj)