MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::MeshSave::BinaryStlSaver Class Reference

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();
 

Detailed Description

saver in binary .stl format that can write triangles one by one not knowing their number beforehand

Constructor & Destructor Documentation

◆ BinaryStlSaver()

MRMESH_API MR::MeshSave::BinaryStlSaver::BinaryStlSaver ( std::ostream & out,
const SaveSettings & settings = {},
std::uint32_t expectedNumTris = 0 )
explicit

writes STL header in the stream

◆ ~BinaryStlSaver()

MRMESH_API MR::MeshSave::BinaryStlSaver::~BinaryStlSaver ( )

Member Function Documentation

◆ 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

◆ writeTri()

MRMESH_API bool MR::MeshSave::BinaryStlSaver::writeTri ( const Triangle3f & tri)

writes one more triangle in the stream


The documentation for this class was generated from the following file: