algorithmic modeling for Rhino
Hi,
Could you explain what iA and iB parameters means in MCX - multiple intersection curves battery?
What is more, how to get a data tree, that shows points indexes that each curve contains, such as:
{0}
1
2
{1}
2
4
{2}
4
3
{3}
2
0
{4}
0
4
{n} - curve index
n - point index
Is it possible to do something familiar wit MCX output parameters?
Tags:
They are the indices of the two curves that intersect. So iA tells you which was the first curve, iB tells you which curve it intersected, tA tells you where on the first curve the intersection happened and tB where on the second curve.
--
David Rutten
david@mcneel.com
According to your explanation it goes like this:
Curve with an index of 0 intersects with curve index 2, but why then it again says that index of 0 intersects with index 2?
Is it possible to get a data tree that shows index of a curve and then a list of intersected curves in one list?
Thank you in advance,
Petras
Just interested why the data is repeated, such as:
0 from right list and 2 from left, then again 0 and 2. This is because it calculates intersection 0 with 2 and 2 with 0 ?
It says it twice because curve 0 intersect curve 2 two times.
For every intersection this component finds, it tells you the point, the first curve index, the second curve index, the first curve parameter and the second curve parameter.
--
David Rutten
david@mcneel.com
Thank you very much. This data tree made my script more fast:)
It would be nice to have this data tree in the battery MCX itself.
Have a nice day:)
Davids script is correct and I am using the same input curves. It works very well, as I get clean results, in the end part of the script. But somehow your script does not have equal result to David's written as 1st curve intersects with 3 curves (including the curve itself), but not all 4.
Here is the script. I am in a middle of process, but the script has no errors and it works fine.
I am just wondering if you could help me to shorten data tree script with only only python script.
Got it. It is quite clear and cool. David script shows different data.
But I think, the script you made is maybe much more useful, what I am want to do:)
Thanks:)
I am just wondering if you could help me split this list of points indexes into sub-lists for getting clean lines between intersection of separate rectangles like picture to the right.
I made the right image with a bit tricky script, that struggles to finish other things... Maybe this requires simple sorting of points, as all points goes "clockwise" of every curve perimeter.
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
© 2024 Created by Scott Davidson. Powered by