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

Function toOff

source/MRMesh/MRMeshSave.cpp:51–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51Expected<void> toOff( const Mesh & mesh, const std::filesystem::path & file, const SaveSettings & settings )
52{
53 // although .off is a textual format, we open the file in binary mode to get exactly the same result on Windows and Linux
54 std::ofstream out( file, std::ofstream::binary );
55 if ( !out )
56 return unexpected( std::string( "Cannot open file for writing " ) + utf8string( file ) );
57
58 return toOff( mesh, out, settings );
59}
60
61Expected<void> toOff( const Mesh& mesh, std::ostream& out, const SaveSettings & settings )
62{

Callers 1

TESTFunction · 0.85

Calls 12

utf8stringFunction · 0.85
applyDoubleFunction · 0.85
reportProgressFunction · 0.85
sizeVertsMethod · 0.80
numValidFacesMethod · 0.80
unexpectedFunction · 0.70
lastValidVertMethod · 0.45
hasVertMethod · 0.45
sizeMethod · 0.45
validMethod · 0.45
getLeftTriVertsMethod · 0.45

Tested by 1

TESTFunction · 0.68