MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::mesh_save::BinaryStlSaver Struct Reference
Inheritance diagram for meshlib::mesh_save::BinaryStlSaver:

Public Member Functions

auto write_tri (tri:&meshlib::std_array_MR_Vector3f_3) -> bool
auto update_head_counter () -> bool

Static Public Member Functions

static auto construct (out:&mut meshlib::std_ostream, settings:Option<&meshlib::SaveSettings >, expectedNumTris:Option< core::ffi::c_uint >) -> meshlib::Owned< meshlib::mesh_save::BinaryStlSaver >
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)

Detailed Description

saver in binary .stl format that can write triangles one by one not knowing their number beforehand Generated from class MR::MeshSave::BinaryStlSaver.

Generated from class MR::MeshSave::BinaryStlSaver. Heap-allocated instances are held in Owned<BinaryStlSaver>.

Member Function Documentation

◆ construct()

auto meshlib::mesh_save::BinaryStlSaver::construct ( out:&mut meshlib::std_ostream ,
settings:Option<&meshlib::SaveSettings > ,
expectedNumTris:Option< core::ffi::c_uint >  ) -> meshlib::Owned< meshlib::mesh_save::BinaryStlSaver >
static

writes STL header in the stream Generated from constructor MR::MeshSave::BinaryStlSaver::BinaryStlSaver.

Calls MR_MeshSave_BinaryStlSaver_Construct(). The reference to the parameter out might be preserved in the constructed object. The reference to the parameter settings might be preserved in the constructed object. The reference to the parameter expectedNumTris might be preserved in the constructed object.

◆ update_head_counter()

auto meshlib::mesh_save::BinaryStlSaver::update_head_counter ( ) -> bool

if initially written the number of triangles do not match to the actual number of written triangles, updates the number in the header Generated from method MR::MeshSave::BinaryStlSaver::updateHeadCounter.

Calls MR_MeshSave_BinaryStlSaver_updateHeadCounter().

◆ write_tri()

auto meshlib::mesh_save::BinaryStlSaver::write_tri ( tri:&meshlib::std_array_MR_Vector3f_3 ) -> bool

writes one more triangle in the stream Generated from method MR::MeshSave::BinaryStlSaver::writeTri.

Calls MR_MeshSave_BinaryStlSaver_writeTri().


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