saver in binary .stl format that can write triangles one by one not knowing their number beforehand More...
#include <MRMeshSave.h>
Public Member Functions | |
| MRMESH_API | BinaryStlSaver (std::ostream &out, const SaveSettings &settings={}, std::uint32_t expectedNumTris=0) |
| writes STL header in the stream | |
| MRMESH_API bool | writeTri (const Triangle3f &tri) |
| writes one more triangle in the stream | |
| MRMESH_API bool | updateHeadCounter () |
| MRMESH_API | ~BinaryStlSaver () |
| calls updateHeadCounter(); | |
saver in binary .stl format that can write triangles one by one not knowing their number beforehand
|
explicit |
writes STL header in the stream
| MRMESH_API MR::MeshSave::BinaryStlSaver::~BinaryStlSaver | ( | ) |
calls updateHeadCounter();
| MRMESH_API bool MR::MeshSave::BinaryStlSaver::updateHeadCounter | ( | ) |
if initially written the number of triangles do not match to the actual number of written triangles, updates the number in the header
| MRMESH_API bool MR::MeshSave::BinaryStlSaver::writeTri | ( | const Triangle3f & | tri | ) |
writes one more triangle in the stream