Krolik Posted February 13, 2021 Share Posted February 13, 2021 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 Quote Link to comment Share on other sites More sharing options...
ftaswin Posted February 13, 2021 Share Posted February 13, 2021 (edited) int pts[] = expandpointgroup(0,”groupname”); if(len(pts) > chi(“max_limit”)) { foreach(int pt; pts) setpointgroup(0, “deleteme”, pt, 1);} Edited February 13, 2021 by ftaswin Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.