Jump to content
Mzigaib

Identify open surfaces

Recommended Posts

I am sure this is an old issue but I could not find any threads about it.

I am trying to mark or identify open connected geometry with an attribute but I am having failed miserably.

I am trying this but I cant figure out how to mark the whole object soon as if it finds points with less than 3 neighbors, but I think my logic can be flawed.

int npts=npoints(0);

for(int pt=0;pt<npts;pt++){
    int nei = neighbourcount(0,@ptnum);
    setpointattrib(0,"nei",@ptnum,nei);
        if(nei<4){
            setprimattrib(0,"open",@primnum,1);
        }
}

I am running this on primitives in a for each loop, so the idea is if it finds any points with less than 4 connection it should mark the whole connected piece as "open", but it isn't work as I expect I am having some faces in the middle of the connected pieces with different values.

I hope it makes sense.

Any tips?

Thanks in advance.

Share this post


Link to post
Share on other sites

That is actually a great idea!

I am going to try that.

Thank you dude!

  • Like 1

Share this post


Link to post
Share on other sites

and there is a little node 'labs distance from border', zero 'radius'

  • Like 1

Share this post


Link to post
Share on other sites
Posted (edited)

measure area non equal to zero?

Edited by vinyvince

Share this post


Link to post
Share on other sites

I think that would work with individual faces but not with connected faces which which is my idea, using groups seems to be working really well.

 

 

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

×