algorithmic modeling for Rhino
Is anyone having problem accessign the FaceNormals property of a Rhino Mesh Object in RhinoCommon? Every time i access it I get a bug as the index is out of bounds which makes sense as far some reason FaceNormals never seems to be initiated and always has a count of zero. I am using Rhino 4 SP8, with GH build 51.
ghMesh.Value.FaceNormals.Item(iFaceIndex).X
Tags:
My bad, you have to intialize it manually using the Computefacenormals method;
ghMesh.Value.FaceNormals.ComputeFaceNormals
ghMesh.Value.FaceNormals.Item(iFaceIndex).X
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by