saver in binary .stl format that can write triangles one by one not knowing their number beforehand More...
#include <MRMesh/MRMeshSave.h>
Public Member Functions | |
| BinaryStlSaver (std::ostream &out, const SaveSettings &settings={}, std::uint32_t expectedNumTris=0) | |
| writes STL header in the stream | |
| bool | writeTri (const Triangle3f &tri) |
| writes one more triangle in the stream | |
| bool | updateHeadCounter () |
| ~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
| MR::MeshSave::BinaryStlSaver::~BinaryStlSaver | ( | ) |
calls updateHeadCounter();
| 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
| bool MR::MeshSave::BinaryStlSaver::writeTri | ( | const Triangle3f & | tri | ) |
writes one more triangle in the stream