How to detect the closed body?
-
I would like to detect if a body is closed,so all the faces are connected.For example,if I check the cube with additional unconnected line or face,I should detect the cube.So how to loop faces and edges to find that the body has no holes?
Thanks. -
Solid Inspector by Thomthom ?
-
Thank Pilou.
I have fount this interesting in the Solid Inspector plugin:# Any edge without two faces means an error in the surface of the solid.But this is not enough to detect a potential solid, because not all edges with two faces means the solid.
There is still a definition missing,what combination of edges and faces makes a solid.
Any tips?
The award will be a useful and free plugin
-
@voljanko said:
But this is not enough to detect a potential solid, because not all edges with two faces means the solid.
I thought this was enough? If there is an Edge with only 1 Face, then there is a hole in the solid. If there is an Edge that has 3 or more Faces, then there is an internal Face.
-
I have difficulty conceiving some 3d geometry where all edges do have two faces but it isn't a solid ?? As Jim says a tetrahedron is the simplest form buy if you add any internal partitions or have 'flaps' then there will always be some edges which have <>2 faces!
Doesn'tgroup.manifold?also return false if the group is NOT 'solid' ? [there's a similar test withcomponent_instance.manifold?] Then you don't need to worry about testing edges/faces ?

-
Ok,I like this definition:If all the edges in the geometry have 2 faces ,it is a solid.
Maybe I have complicated a little
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement