MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.meshsave.BinaryStlSaver Class Reference
Inheritance diagram for meshlib.meshsave.BinaryStlSaver:

Public Member Functions

 BinaryStlSaver (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 BinaryStlSaver (meshlib.std_ostream out, meshlib.SaveSettings settings, java.lang.Integer expectedNumTris)
boolean writeTri (meshlib.std_array_MR_Vector3f_3 tri)
boolean updateHeadCounter ()
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

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.

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ BinaryStlSaver() [1/2]

meshlib.meshsave.BinaryStlSaver.BinaryStlSaver ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ BinaryStlSaver() [2/2]

meshlib.meshsave.BinaryStlSaver.BinaryStlSaver ( meshlib.std_ostream out,
meshlib.SaveSettings settings,
java.lang.Integer expectedNumTris )

writes STL header in the stream Generated from constructor MR::MeshSave::BinaryStlSaver::BinaryStlSaver. 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.

Calls MR_MeshSave_BinaryStlSaver_Construct().

Member Function Documentation

◆ updateHeadCounter()

boolean meshlib.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 Generated from method MR::MeshSave::BinaryStlSaver::updateHeadCounter.

Calls MR_MeshSave_BinaryStlSaver_updateHeadCounter().

◆ writeTri()

boolean meshlib.meshsave.BinaryStlSaver.writeTri ( meshlib.std_array_MR_Vector3f_3 tri)

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

Calls MR_MeshSave_BinaryStlSaver_writeTri().


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