MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / makeWarningString

Function makeWarningString

source/MRMesh/MRObjectLoad.cpp:136–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136static std::string makeWarningString( int skippedFaceCount, int duplicatedVertexCount, int holesCount )
137{
138 std::string res;
139 if ( skippedFaceCount )
140 res = fmt::format( "{} triangles were skipped as inconsistent with others.\n", skippedFaceCount );
141 if ( duplicatedVertexCount )
142 res += fmt::format( "{} vertices were duplicated to make them manifold.\n", duplicatedVertexCount );
143 if ( holesCount )
144 res += fmt::format( "The objects contains {} holes. Please consider using Fill Holes tool.\n", holesCount );
145 return res;
146}
147
148Expected<LoadedObject> makeObjectFromMeshFile( const std::filesystem::path& file, const ProgressCallback& cb, bool returnOnlyMesh )
149{

Callers 1

makeObjectMeshFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected