algorithmic modeling for Rhino
Hello, I have created planes with vb and now I want to see them in the Rhino viewport.
I wrote this:
Dim plane1 As Plane
plane1.Origin = New Point3D(10, 10, 10)
... and I give plane1 a normal through the ZAxis property.
Then I output the plane through the vb component and connect it to Plane Srf component. But it doesn't show in the viewport.
All other geometry like Point3D and Surface do show in the viewport, but the Plane doesn't. The component says 'Null plane'.
What am I doing wrong, how can I make them show?
Thanks,
Fernando
Tags:
Hi Fernando,
Plane is a struct, so you can obtain an invalid instance without calling a constructor. But usually you should rather construct the plane through a constructor:
something like Dim p as New Plane(point, normal)
or Dim p as New Plane(point, xAxis, yAxis)
Please note that the (point, normal) construction is not unique: the resulting plane can spin around its ZAxis.
I hope this helps,
- Giulio
_______________
giulio@mcneel.com
Thanks Giulio! I should really catch up with the .net programming structure (being an oldfashioned visual studio developer from the earlier days)...
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