Jump to content

Recommended Posts

Hi there! I'm troubled.
I want to clean up the lines only left red lines (delete only shared green lines)
Is there any way to fix this with AttributeWrangle or other?
Thank you :)

lines_.jpg

Cleanup Lines.hipnc

Edited by patis

Share this post


Link to post
Share on other sites

Hi, It was solved by using neighbourcount :)  Thank you!

 

int primPoints[] = primpoints(0,@primnum);

foreach( int point; primPoints)

{

int neighbourcount = neighbourcount(0,point);

if (neighbourcount>2)removeprim(0,@primnum,0);

}

Edited by patis

Share this post


Link to post
Share on other sites
On 12/8/2020 at 3:19 PM, patis said:

Hi, It was solved by using neighbourcount :)  Thank you!

 

int primPoints[] = primpoints(0,@primnum);

foreach( int point; primPoints)

{

int neighbourcount = neighbourcount(0,point);

if (neighbourcount>2)removeprim(0,@primnum,0);

}

shouldn't the test be neighbourcount>1 ?

Share this post


Link to post
Share on other sites

Hi! I modified code.

 

int primPoints[] = primpoints(0,@primnum);

foreach( int point; primPoints)

{

int neighbourcount = neighbourcount(0,point);

if (neighbourcount>1)removeprim(0,@primnum,1);

}

 

regards.

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

×