Grasshopper

algorithmic modeling for Rhino

Hello GH Community,

I am looking to create equal distance straight line segments along a non uniform curve.

If i use the divide curve along my non-uniform curve and join my points with a straight lines, i get different lengths. I want the lengths all to be equal distance when connected straight.

Any ideas for best approach for accomplishing this?

Thanks in advance for your help.

Views: 935

Attachments:

Replies to This Discussion

Use 'DivDist (Divide Distance)' instead.

You can always rely on Joseph! Thanks again!!

Have i done something wrong? I am getting an different length for the last line.

 

Attachments:

Yes, you used the wrong component:

I am getting an different length for the last line.

Oh, wait a second...  Your last line is wrapping because you only have eight points while the 'List Item' is using nine points.  Gotta go.

Attachments:

Ahh...

Is there a way to not have the closed section of the curve.

Or to put it another way, if i specify 8 divisions, what i would like to see is eight segments of the curve only. all of which equal length.

If i connect the last point of the curved section to the end point of the base curve, my last segment is a different length.  

Keep it simple!

By the way, if you enable preview on your 'Crv' parameter, you will see that the last point is not at the end of the curve - FYI.

Attachments:

awesome!

why does it omit the last point or end point of the base curve?

I just explained that above, or thought I did:

By the way, if you enable preview on your 'Crv' parameter, you will see that the last point is not at the end of the curve - FYI.

When you divide by distance or length, there will often be some of the curve left over because the curve length overall is not evenly divisible.

sorry i didn't see your explanation.

so would one solution to achieve the correct number of segments, be to draw my line and rotate the end point around to intersect the curve, do this with each straight line until i complete the base curve.

i think i have a solution that works, i lowered my DivDist to be slightly lower than the actual curve length division (in fact to a more even number instead of all those decimal places) - this gets me very close to the full length of the base curve.   

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service