Grasshopper

algorithmic modeling for Rhino

Hi forum,

I need to split a curve into several segments to continue with my definition and I've been swimming in the forum searching the best tool to split that curve. I've found that the shatter component is the right tool to do it properly.

I need to shatter ( split ) the curve into 22 segments and I used the component curve closest point to find out the exact points where I want to shatter it, and it works fine but on the very first point.

So I have the 22 points in the curve but I'm just getting 21 segments as there's one point that is not splitting the curve.

I'm attaching here both of the files, rhino and GH.

Any help will be very much apreciatted.

Joan

Views: 1172

Attachments:

Replies to This Discussion

Can't understand why it is not shattering at the first point, but have solved it by simplifying the offset crv before inputting it into the Curve Closest point and the shatter component.

Updated Code Attached

Attachments:

Hi Matt,

Thanks again for your help. 

I can't understand why it works now with that component that you added,,,, but it defenetly works.

Still, I would like to understand why it is was not working before,,,, I'm learning grasshopper now and I'm not an expert at all and that kind of things makes me feel insecure at the time of planning a definition.

Do you know if there's any other way to split a curve the way I need it ?

Thanks,

Joan

With every offset the Curve will be getting more complex (More control points) Simplify removes any un-required control points and makes the curve simpler again within the document tolerances unless you set these in the component to something else.

It should not change to curve very much but if your worries divide the original curve and do curve closed point to the simplified curve as before and check the distance the point has moved. 

I think for this task and most, shatter would be my go to component, there are others like Sub Crv to though. 

Hope this Helps

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