Grasshopper

algorithmic modeling for Rhino

Hi Guys

I have a curve and want to extract a part of it using subcurve component.

But when I specify the domain for example between 0.25 and 0.75 the result will be those parts that exist in the domain {0.25 , 0.35 , ... , 0.75 }.

Now the question is how to reverse the domain to choose the other part of the curve same as the image attached. 

thanks.

Views: 1596

Attachments:

Replies to This Discussion

The other part consists of two regions (0.0 to 0.25) and (0.75 to 1.0). There is no single domain which covers this region. So you have several options:

  1. If you're always dealing with circles/arcs, you can evaluate the curve at the given domain limits and create a new arc using (Start, End, Tangent) or (Start, Mid, End).
  2. If you're dealing with other kinds of closed curve, you can extract the two separate domains, then join them together. Perhaps add a Simplify Curve component after the join.
  3. Or, if you're dealing with other kinds of closed curves, you can first adjust the curve seam to one of the parameters, and then trim towards the other. This does mean you need to post-pone getting the second parameter until after you've adjusted the seam.

Got it ! I think the second option is more proper to me.

Thanks a lot Dear David.

David, can you help me with a formula for this. I am new to grasshopper. Thanks, Frank 

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service