algorithmic modeling for Rhino
Help needed to solve simple problem?!! Please help me divide a curve from a known point.
I have found the point on a curve I want by projecting another point using a unit vector.
I now want to divide the curve into equal length parts from that point on the curve.
I have tried to shatter the curve but am struggling to get it to work (with the intention to divide the part I want)
I would prefer not to shatter the curve but can't find a way to start from a known point and divide the remainder.
I have circled the line I want to divide and the point I want to divide from.
Help!
Cheers
Guy
Tags:
see attached, you used a point as input for a parameter, thats why it didnt work.
to get the parameter on the curve I used the intersection Curve|Curve(CCX) component.
Thank you so much! I should be able to take it from there (my first grasshopper attempt). Do you think that there there a way of using the intersect point to then divide the line without shattering it?
This isn't quite the same thing as dividing your chine curve but is more in keeping with traditional boat design. It creates 'Perp Frames (PFrames)' on the projected chine curve and intersects them with both the chine and keel curves.
NOTE: I internalized the 'V (Vertices)' input parameters so the Rhino file isn't needed.
Thanks Joseph. I am ultimately not after frames....
I am attempting to do something quite different to what you have drawn (but good to see more code as I get my head around grasshopper and will probably come in use!);
Cheers
Guy
OK... Split the chine curve at your mid-point (many ways to get that!), then divide each half separately by length ('DivLength'), first flipping the direction of one of the halves so they both have their start point at the mid-point. Of course, this gives duplicate points in the middle and the points are on the half curves instead of the full chine curve - but there are ways of dealing with that:
NOTE: I've been trying to post this reply for over an hour but the forum page wouldn't load.
This code actually splits ('Shatter') the chine curve, at the green group.
It offers four different methods for getting the "Base Point", chosen by the 'Value List' in the first red group:
"Point On Curve" and "t-Val" allow you to set the base point manually, moving all the points as you move the sliders.
And this code offers two different methods for setting the "Segment Length", chosen by the 'Value List' in the second red group:
"simple problem"? Right...
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