Jump to content
Krolik

Delete groups based on number of points

Recommended Posts

Hello, I want to delete groups based on the amount of points thats contained inside. I'm cleaning photogrammetry surfaces and put the border edges in groups so I can fill all the tiny holes. However I dont want fill the base. So I want to automatically delete the group with the highest number of points so that the base doesent get filled.

Any ideas?

Thanks

Share this post


Link to post
Share on other sites

int pts[] = expandpointgroup(0,”groupname”);

if(len(pts) > chi(“max_limit”)) {
foreach(int pt; pts) setpointgroup(0, “deleteme”, pt, 1);}

Edited by ftaswin

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

×