Jump to content
Sign in to follow this  
Vexster

VEX points edge selection issue.

Recommended Posts

Hi guys, I have a simple problem that i can't find robust solution for.

 

Using VEX and pcopen, I can select the corner points on a box no problem.

int cornerPointCloud = pcopen(0,"P",@P,1.1,100);
if(pcnumfound(cornerPointCloud)>4)
{    
    setpointgroup(0, "bottomCornerPoints", @ptnum,1, "set");
}


image.png.afb53fd4ac3155fdaa03a36d8857a945.png

 

 

What I actually want is to be able to select the entire edge, like this. Any idea guys?

image.png.580aa3898c7fcc3a7a1fb93ef206aef8.png

Share this post


Link to post
Share on other sites

if(relpointbbox(0,@P)[0]%1==0 && relpointbbox(0,@P)[2]%1==0) @group_edges = 1;

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  

×