Skip to content

how to resolve STL Mesh Export: Inconsistent Triangles, Duplicate Vertices, C++? #4457

Closed Answered by Grantim
JihoKang24 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello!

This messages in MeshInspector basically mean that loaded mesh was not manifold. So we duplicated some vertices and skipped some triangles in order to keep loaded mesh manifold (using this function).

/// construct mesh from vertex coordinates and a set of triangles with given ids;
/// unlike simple fromTriangles() it tries to resolve non-manifold vertices by creating duplicate vertices
[[nodiscard]] MRMESH_API static Mesh fromTrianglesDuplicatingNonManifoldVertices(
VertCoords vertexCoordinates,
Triangulation & t,
std::vector<MeshBuilder::VertDuplication> * dups = nullptr,
const MeshB…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JihoKang24
Comment options

Answer selected by JihoKang24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants