Grasshopper

algorithmic modeling for Rhino

Hi,

What is the difference between:

override DrawViewportMeshes

override DrawViewportWires

?

And in what case I need to override the boundingBox?

Thanks

Views: 302

Replies to This Discussion

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.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service