Grasshopper

algorithmic modeling for Rhino

Hello all,

I am trying to get the area of a non-planar surface with VB script using the AreaMassProperties class but I must be doing something wrong. The area I get is different than I get using the M2 component.

Private Sub RunScript(ByVal x As Surface) 

Dim massprops As AreaMassProperties = AreaMassProperties.compute(x)
Dim a_srf As Double = massprops.area
Print(a_srf)
End Sub

Views: 2437

Replies to This Discussion

Is the surface trimmed? Note that a "Surface" in Grasshopper supports trimming curves whereas a "Surface" in Rhino does not. So when you plug a Grasshopper surface into a Rhino surface function argument you'll lose the trimming information. 

Use Brep instead to make it work the same.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Works.

Thanks David

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service