Grasshopper

algorithmic modeling for Rhino

Hi,
I got two trees with an equal amount of branches. One tree has lines the other planes. For the past few hours I've been trying to generate the intersection points between branch n in the first tree and branch n in the second tree.
The closest I can get is the intersection points between all of the lines from all branches and all of the planes.

Any help will be much appreciated

Yshai

Views: 541

Replies to This Discussion

A screenshot would be helpful in explaining a solution, probably a few different ways to sort it out.
here they are.

Basically I'm creating a device for generating perspectives. Notice the extra geometry created when lines intersect more then one plane.

Thank you for your time.
Attachments:
Any chance of knowing what goes into the geo parameters and the brep parameters so i can see whats happening?
Thanks.
Attachments:
Hey Yshai

Thanks for that i have fixed it (i think). I have also posted you up a teaked version of the code tweaked the code a little to make it smaller and faster.

All i changed on your code was to add a graft component between the final rotated surfaces and the input into the surface curve intersect component and unflattened all the inputs into the S and C of these components.

In the tweaked code i rewrote the Rad input to Degrees and put in the expression Rad(a) into the A of the rotate component, i also changed the other rotate to an rotate 3D and thus removed the line component. (You may want to consider how the numbers are input here as don't change with the start slider?) and finally i convert the Surface intersect Crv to Surface intersect line as if the only output required is the points there is no need to compute all the other extra outputs that come with Surface Curve Intersect.

Hope this helps

Matt
Attachments:
Ten times better. Thanks for your help.
yshai,

That's a fun little definition. I think I basically recreated your definition, but in a more flexible fashion (similar to Matt's suggestions).

It's still breakable, but it should work by referencing any number of rectangular objects.

-taz

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service