One can call this function from VS interpreter window during debuging ( { ,,MRMesh.dll }MR::MeshSave::debugSaveMesh_ )( ( void* )meshPtr,( void* )faceBitSet, "E:/debug.mru" )
| 551 | /// One can call this function from VS interpreter window during debuging |
| 552 | /// ( { ,,MRMesh.dll }MR::MeshSave::debugSaveMesh_ )( ( void* )meshPtr,( void* )faceBitSet, "E:/debug.mru" ) |
| 553 | void debugSaveMesh_( void* mesh, void* faces, const char* path ) |
| 554 | { |
| 555 | using namespace MR; |
| 556 | auto pp = pathFromUtf8( path ); |
| 557 | if ( utf8string( pp.extension() ) == ".mru" || faces ) |
| 558 | { |
| 559 | // isolation is needed so it does not steal actuall work during debug saving |
| 560 | tbb::this_task_arena::isolate( [&] () |
| 561 | { |
| 562 | ( void )serializeMesh( *( const Mesh* )mesh, pp, ( const FaceBitSet* )faces ); |
| 563 | } ); |
| 564 | } |
| 565 | else |
| 566 | { |
| 567 | ( void )toAnySupportedFormat( *( const Mesh* )mesh, pp ); |
| 568 | } |
| 569 | } |
| 570 | |
| 571 | MR_ADD_MESH_SAVER_WITH_PRIORITY( IOFilter( "MrMesh (.mrmesh)", "*.mrmesh" ), toMrmesh, {}, -1 ) |
| 572 | MR_ADD_MESH_SAVER( IOFilter( "Binary STL (.stl)", "*.stl" ), toBinaryStl, {} ) |
nothing calls this directly
no test coverage detected