| 258 | } |
| 259 | |
| 260 | Expected<void> toBinaryStl( const Mesh & mesh, const std::filesystem::path & file, const SaveSettings & settings ) |
| 261 | { |
| 262 | std::ofstream out( file, std::ofstream::binary ); |
| 263 | if ( !out ) |
| 264 | return unexpected( std::string( "Cannot open file for writing " ) + utf8string( file ) ); |
| 265 | |
| 266 | return toBinaryStl( mesh, out, settings ); |
| 267 | } |
| 268 | |
| 269 | Expected<void> toBinaryStl( const Mesh & mesh, std::ostream & out, const SaveSettings & settings ) |
| 270 | { |