| 134 | } |
| 135 | |
| 136 | static 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 | |
| 148 | Expected<LoadedObject> makeObjectFromMeshFile( const std::filesystem::path& file, const ProgressCallback& cb, bool returnOnlyMesh ) |
| 149 | { |