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

Function fromOff

source/MRMesh/MRMeshLoad.cpp:168–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168Expected<Mesh> fromOff( const std::filesystem::path& file, const MeshLoadSettings& settings /*= {}*/ )
169{
170 std::ifstream in( file, std::ifstream::binary );
171 if ( !in )
172 return unexpected( std::string( "Cannot open file for reading " ) + utf8string( file ) );
173
174 return addFileNameInError( fromOff( in, settings ), file );
175}
176
177Expected<Mesh> fromOff( std::istream& in, const MeshLoadSettings& settings /*= {}*/ )
178{

Callers 3

TESTFunction · 0.85
testResolveDegenFunction · 0.85
loadOffFunction · 0.85

Calls 15

utf8stringFunction · 0.85
addFileNameInErrorFunction · 0.85
hasBomFunction · 0.85
readCharBufferFunction · 0.85
splitByLinesFunction · 0.85
ParallelForFunction · 0.85
parseTextCoordinateFunction · 0.85
subprogressFunction · 0.85
parseFirstNumFunction · 0.85
reportProgressFunction · 0.85
parsePolygonFunction · 0.85

Tested by 2

TESTFunction · 0.68
testResolveDegenFunction · 0.68