-
I'm working on converting a representation of a grid of Voxels to an equivalent Mesh representation in Trimesh and I had questions about Manifolds definition of a valid mesh, specifically with regards to watertightness, since I'm using it as an engine in Trimesh. The case in question is one where an edge has 4 faces connected to it (example in this issue), and it was unclear to me if such a mesh would be considered valid/watertight by Manifold. Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Indeed, we use oriented 2-manifolds (see our manifoldness definition on the wiki), so 4-manifolds are no good. However, when creating a |
Beta Was this translation helpful? Give feedback.
Indeed, we use oriented 2-manifolds (see our manifoldness definition on the wiki), so 4-manifolds are no good. However, when creating a
Manifold
from aMesh
or aMeshGL
, we do fix some basic manifoldness problems automatically. 4-manifold edges and pinched verts should be fixable, though I wouldn't guarantee it. We fix these cases by duplicating verts - so your meshes will either magically work, or you'll need to do some similar vertex duplication until you get down to a 2-manifold. Basically you just have to pick which pairs of faces are actually topological neighbors and which are not.