generative modeling for Rhino
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
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.