Grasshopper

algorithmic modeling for Rhino

I know that it's a basic question, but I don't know how to split a periodic curve into 4 segments starting from 4 points.

If I use the shatter component , I obtain 5 segments: three of them are correct, but the other two are the segment from 0 to the value of the first division point, and from the value of the last division point to 0. Theese two segments have to be joined to be correct!

Is there a way to solve this basic problem?

Thank you!

Views: 5353

Replies to This Discussion

Hi Carlo,
I don't know if you have 4 points on curve in different locations or if you want divide your curve in 4 equal segments.
In the second case,you can utilize one of the two methods you can see in the image.
You can post your question on mixexperience (l'italiano lo mastico meglio).
Luca

Excuse me Carlo I have understood what's your problem, it would seem that with the Shatter component the curve also divided in the point where it has beginning and end.
This is your case:


but I don't know if there is a quick solution,if there not should be,it could be a new feature for the future release of GH.
Luca
Hi Luca,

yeah, exactly, you've hit the nail on the head with your second answer!

The shatter command starts splitting periodic curves in the "starting" point of the curve, and not in the first subdivision point fixed by parameter!

I turn the question to David MT Rutten :)

Hi Carlo,

have you managed to solve this issue?

I also can't manage to split/shatter a periodic curve properly...

Greetings,

Arthur

Here's a start that might be helpful: I have written a simple script to expose the "Change Closed Curve Seam" method in the SDK. (Note - curve is automatically reparameterized.) By setting the seam to one of your desired split points, you can then split at the remaining points with the shatter method.
Attachments:
strangely though, I can't reproduce the problem you're having to begin with - when I shatter a periodic curve, the seam does not seem to be added - 4 points produce 4 resulting curves. Can you post an example GHX where this is happening?

We have some good solutions over here on an earlier post.

http://www.grasshopper3d.com/forum/topics/can-i-change-the-start-po...

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