Curve parameters and lengths

Hei,

Im trying to use domains (0-to 1) in order to have the curve and line that both have same lengths into equal segments. Whats wrong with my code that iam not able to get equal segment lengths?


Sofistik bridges.gh (15.5 KB)

Hi @MomoJawad ,

Without opening your file, your result looks expected from the way you have your components set up.

You are shattering the curves at the intersection points of the perpendicular lines not an equal distance along the overall curve itself.

Unless your perpendicular intersecting lines are exactly at equal spacing along the curves they are intersecting, it is not expected to have equal lengths returned.

If you want to divide by an equal distance you would be better off doing something like this:

Graph Space:

Model Space:

I’ll be honest though, I don’t quite understand what you are trying to achieve, perhaps you could elaborate or sketch a quick drawing?

That being said, check out the Divide Curve component and see if that is what you are looking for.

Cheers!

Sofistik bridges.gh (15.5 KB)

EDIT:

Or perhaps this is what you are after? The intersecting curves are confusing me. What is the intention of those?

Graph Space:

Model Space:

20231013_Sofistik bridges_Response_01b.gh (8.0 KB)

assigned to Grasshopper category

1 Like


Well i think i wasnt able to explain properly what i wanted.

So i want the lenght 1 of the first curve’s segment to be equal to the length 1 of the first line’s segment. Lenght 2 and lengths 3 same also. Regardless that the segment’s lengths in each curve are different.

1 Like

Okay I’m following you now, thanks for the sketch! I’ll mock it up when I’m back at my desk if someone else doesn’t beat me to it first

1 Like

@MomoJawad
Like this?
Not sure why your first one was not working still.
Sofistik bridges RWG.gh (17.9 KB)