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

Function fromSceneObjFile

source/MRMesh/MRMeshLoadObj.cpp:1269–1277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1267{
1268
1269Expected<std::vector<NamedMesh>> fromSceneObjFile( const std::filesystem::path& file, bool combineAllObjects,
1270 const ObjLoadSettings& settings /*= {}*/ )
1271{
1272 std::ifstream in( file, std::ios::binary );
1273 if ( !in )
1274 return unexpected( std::string( "Cannot open file for reading " ) + utf8string( file ) );
1275
1276 return addFileNameInError( fromSceneObjFile( in, combineAllObjects, file.parent_path(), settings ), file );
1277}
1278
1279Expected<std::vector<NamedMesh>> fromSceneObjFile( std::istream& in, bool combineAllObjects, const std::filesystem::path& dir,
1280 const ObjLoadSettings& settings /*= {}*/ )

Callers 2

fromObjFunction · 0.85
loadObjectFromObjFunction · 0.85

Calls 13

utf8stringFunction · 0.85
addFileNameInErrorFunction · 0.85
readCharBufferFunction · 0.85
reportProgressFunction · 0.85
subprogressFunction · 0.85
hasBomFunction · 0.85
splitByLinesFunction · 0.85
loadModelsFromObjFunction · 0.85
errorMethod · 0.80
unexpectedFunction · 0.70
dataMethod · 0.45

Tested by

no test coverage detected