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
Tags:
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
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