The best way to split curve at it's points ? [SOLVED]

   5401   2   1
User Avatar
Member
39 posts
Joined: 3月 2020
Offline
I want to split a curve into smaller segments using its own points as a divider. Seem like a simple thing to do but i can't find good solutions for it.

I managed to do it somehow with 3 add nodes - one for deleting the curve and keeping the points. The other is for “groups of N points” and using 2 as a number. This method creates a curve between points 1 and 2 and the between 3 and 4, which creates empty space between 2 and 3.
The third “add” node replicated the same approach but i inverted the point number with a sort node before that, so it filled the empty space. After that i merged the result with a merge node …

Haven't tested it extensively, and it seem to work …. but is there any better way of doing this?

EDIT
It breaks once i apply it to a non square shaped curve …
I am trying the polycut node which cut the specified points but i am not sure how to tell it to cut all points. Maybe if i put it in a loop but i am still trying to make it work because i am still learning … so any help would be most welcome.
Edited by SnowballWar - 2020年7月9日 06:30:17
User Avatar
Member
77 posts
Joined: 2月 2017
Offline
“convert line” SOP seems the node you want.
My Youtube Channel [www.youtube.com]
User Avatar
Member
39 posts
Joined: 3月 2020
Offline
It does. Thanks a lot.
  • Quick Links