Grasshopper

algorithmic modeling for Rhino

Hi,

I am doing a project where I am shooting particles at multiple surfaces. I have been using the Rayshooter class and one of its shoot methods takes in surface tree node as a parameter. I am curious what OnSurfaceTree and OncurveTree are. Are they just data structures, how can they be used, what benefits are there to using them?

I would like to not have to test every surface for an intersection event when my particles are shot (especially when there are a large number of surfaces). Will the tree data structure allow you to just traverse all leaf items of one branch and not others and therefore half the search space? Or is this just conceptually wrong? Many thanks

Views: 261

Replies to This Discussion

Curve and Surface Trees (and Mesh Trees) are indeed data structures that speed up consecutive calls to Intersect and ClosestPoint.

For an in-depth discussion about how they work and when to (or not to) use them, please ask on the Rhino plugin forum as I hesitate to answer with my limited knowledge.

--
David Rutten
david@mcneel.com
Poprad, Slovakia
Hi david, thanks for the reply. I have not been able to find the Rhino plugin forum, could you point me towards it?

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service