Jump to content
Sign in to follow this  
hampuseh

Deleting points close to specific groups

Recommended Posts

Hello!

I have a question regarding deleting points based of the proximity of specific groups. 

In the picture below there are two curves, group 1, group 2. The points marked red(group 2) are the points I want to remove by proximity to the group 1's points. Group is the curve in the middle going upwards.

How would I do this? 

Thanks !

bdd18fbcab759602be9fa63a0f28b7c7.png

Edited by hampuseh

Share this post


Link to post
Share on other sites
//set your wranglenode to run over group2
int nearpt = nearpoint(0,"group1",@P,chf("radius"));
if(nearpt != -1){
    removepoint(0,@ptnum);
    }

 

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
Sign in to follow this  

×