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

Function readFromFile

source/MRIOExtras/MRStep.cpp:778–786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

776#endif
777
778Expected<void> readFromFile( STEPControl_Reader& reader, const std::filesystem::path& path )
779{
780 MR_TIMER;
781
782 const TCollection_AsciiString pathStr( path.c_str() );
783 if ( reader.ReadFile( pathStr.ToCString() ) != IFSelect_RetDone )
784 return unexpected( "Failed to read STEP model" );
785 return {};
786}
787
788Expected<void> readFromStream( STEPControl_Reader& reader, std::istream& in )
789{

Callers 4

readFromStreamFunction · 0.85
repairStepFileFunction · 0.85
fromStepFunction · 0.85
fromSceneStepFileFunction · 0.85

Calls 1

unexpectedFunction · 0.50

Tested by

no test coverage detected