| 578 | } |
| 579 | |
| 580 | Expected<void> serializeMesh( const Mesh& mesh, const std::filesystem::path& path, const FaceBitSet* selection, const char * serializeFormat ) |
| 581 | { |
| 582 | ObjectMesh obj; |
| 583 | obj.setSerializeFormat( serializeFormat ); |
| 584 | obj.setMesh( std::make_shared<Mesh>( mesh ) ); |
| 585 | if ( selection ) |
| 586 | obj.selectFaces( *selection ); |
| 587 | obj.setName( utf8string( path.stem() ) ); |
| 588 | return serializeObjectTree( obj, path ); |
| 589 | } |
| 590 | |
| 591 | } // namespace MR |
no test coverage detected