Grasshopper

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

Views: 316

Replies to This Discussion

My bad, you have to intialize it manually using the Computefacenormals method;

 

ghMesh.Value.FaceNormals.ComputeFaceNormals

ghMesh.Value.FaceNormals.Item(iFaceIndex).X

 

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service