Grasshopper

algorithmic modeling for Rhino

all centroidcoordinates... areamassproperties of a mesh give {0.0,0.0,0.0} as result

Hello all,

 

update: changed item a bit after more testing

 

I have an issue with calculating the area data of a mesh (don't know if other geometry has smae issues) in vb. Only area, area centroid and worldfirstmoments give a result while the rest gives {0.0,0.0,0.0} as an result. Baking and than calculating areamoments works fine.

 

Any idea?

 

Is there also any idea when/if cumulative properties will be available in vb? 

 

thanks ,

 

alex

 

Public Function planemom (ByVal planearea As Mesh) As vector3d

 

    Dim momprop As areamassproperties = areamassproperties.Compute(planearea)

    planemom = momprop.CentroidCoordinatesMomentsOfInertia

 

End Function

 

Views: 101

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service