algorithmic modeling for Rhino
Hi Tomas,
You usually need to override BoundingBox for both.
One should draw the wires (the "lines", or the "curves"), like in wireframe, and the other the meshes (like the "surfaces", as in shaded mode in Rhino).
I hope this helps
Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com
Hi,
Thank you for a reply.
But I managed to draw curves, lines in mesh preview override.
Why is that so?
Kind Regards,
Tomas
You need to override the boundingbox if you're planning to draw something outside of the boundingbox which contains all the other Grasshopper preview geometry. Since it is very difficult to know whether or not this is the case, it's best to always override the boundingbox.
DrawViewportWires is called first and here you're supposed to draw all points and curves. DrawViewportMeshes is called later and this is where you can draw transparent stuff, such as meshes. The reason transparent geometry needs to be drawn last is because otherwise it may occlude stuff behind it, even though you'd be able to see it 'through' the object.
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