Jump to content
kiryha

Delete segment of a curve

Recommended Posts

Posted (edited)

I need to delete round part of the curve. The only way I manage to do it gives the desired result on the right side but remain segment on the left side (bottom shape).
I need a second object which will exclude initial circles. 

delete_segment_01.thumb.PNG.08ded94683d756c2a34168f938dcde8e.PNG

delete_segment_01.hipnc

Edited by kiryha

Share this post


Link to post
Share on other sites

Hey, I've fixed the issue - the entire line was being stored as a single primitive so when you deleted the points, it kept the line connected. All I did was add a 'convert line' SOP before the point wrangle, which makes every line segment a separate primitive. (I also turned off the rest length attribute since you probably won't need it).

delete_segment_01_fixed.hipnc

  • Like 1

Share this post


Link to post
Share on other sites

Hi, Stephen,

That's works, thanks! However, the resample node placed after OUT_LINES does not work as expected (rising Length has no effect). I need dramatically reduce the amount of points there.

 

delete_segment_02.hipnc

Share this post


Link to post
Share on other sites

This should fix it:

delete_segment_02_fixed.hipnc

Connectivity is just setting a class attribute on the points for each connected piece, and then the add node is deleting all the prims and creating them again using that class attribute.

  • Like 1

Share this post


Link to post
Share on other sites

Ok, that solution works, thanks! 

But I wonder what the convertLine SOP did that resample stop working...

Share this post


Link to post
Share on other sites

Cool, Vusta! I was trying to go this way with group transfer as well but did not get it working, nice trick with facet SOP.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×