Jump to content

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);

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.

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...