MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.meshsave.Functions Class Reference

Static Public Member Functions

static void toMrmesh (meshlib.Mesh mesh, java.lang.String file, meshlib.SaveSettings settings)
static void toMrmesh (meshlib.Mesh mesh, meshlib.std_ostream out, meshlib.SaveSettings settings)
static void toOff (meshlib.Mesh mesh, java.lang.String file, meshlib.SaveSettings settings)
static void toOff (meshlib.Mesh mesh, meshlib.std_ostream out, meshlib.SaveSettings settings)
static void toObj (meshlib.Mesh mesh, java.lang.String file, meshlib.SaveSettings settings, int firstVertId)
static void toObj (meshlib.Mesh mesh, meshlib.std_ostream out, meshlib.SaveSettings settings, int firstVertId)
static void toObj (meshlib.Mesh mesh, java.lang.String file, meshlib.SaveSettings settings)
static void toObj (meshlib.Mesh mesh, meshlib.std_ostream out, meshlib.SaveSettings settings)
static void toBinaryStl (meshlib.Mesh mesh, java.lang.String file, meshlib.SaveSettings settings)
static void toBinaryStl (meshlib.Mesh mesh, meshlib.std_ostream out, meshlib.SaveSettings settings)
static void toAsciiStl (meshlib.Mesh mesh, java.lang.String file, meshlib.SaveSettings settings)
static void toAsciiStl (meshlib.Mesh mesh, meshlib.std_ostream out, meshlib.SaveSettings settings)
static void toPly (meshlib.Mesh mesh, java.lang.String file, meshlib.SaveSettings settings)
static void toPly (meshlib.Mesh mesh, meshlib.std_ostream out, meshlib.SaveSettings settings)
static void toPly (meshlib.TriMesh mesh, java.lang.String file, meshlib.SaveSettings settings)
static void toPly (meshlib.TriMesh mesh, meshlib.std_ostream out, meshlib.SaveSettings settings)
static void toModel3mf (meshlib.Mesh mesh, java.lang.String file, meshlib.SaveSettings settings)
static void toModel3mf (meshlib.Mesh mesh, meshlib.std_ostream out, meshlib.SaveSettings settings)
static void to3mf (meshlib.Mesh mesh, java.lang.String file, meshlib.SaveSettings settings)
static void toAnySupportedFormat (meshlib.Mesh mesh, java.lang.String file, meshlib.SaveSettings settings)
static void toAnySupportedFormat (meshlib.Mesh mesh, java.lang.String extension, meshlib.std_ostream out, meshlib.SaveSettings settings)
static void sceneToObj (meshlib.std_vector_MR_MeshSave_NamedXfMesh objects, java.lang.String file, meshlib.VertColors colors)
static void sceneToObj (meshlib.std_vector_MR_MeshSave_NamedXfMesh objects, meshlib.std_ostream out, meshlib.VertColors colors)
static void toCtm (meshlib.Mesh mesh, java.lang.String file, meshlib.meshsave.CtmSaveOptions options)
static void toCtm (meshlib.Mesh mesh, meshlib.std_ostream out, meshlib.meshsave.CtmSaveOptions options)
static void toCtm (meshlib.Mesh mesh, java.lang.String file, meshlib.SaveSettings settings)
static void toCtm (meshlib.Mesh mesh, meshlib.std_ostream out, meshlib.SaveSettings settings)
static void toDrc (meshlib.Mesh mesh, java.lang.String file, meshlib.DracoSaveOptions options)
static void toDrc (meshlib.Mesh mesh, meshlib.std_ostream out, meshlib.DracoSaveOptions options)
static void toDrc (meshlib.Mesh mesh, java.lang.String file, meshlib.SaveSettings settings)
static void toDrc (meshlib.Mesh mesh, meshlib.std_ostream out, meshlib.SaveSettings settings)

Detailed Description

The free functions of this namespace.

Member Function Documentation

◆ sceneToObj() [1/2]

void meshlib.meshsave.Functions.sceneToObj ( meshlib.std_vector_MR_MeshSave_NamedXfMesh objects,
java.lang.String file,
meshlib.VertColors colors )
static

Generated from function MR::MeshSave::sceneToObj.

Calls MR_MeshSave_sceneToObj_std_filesystem_path(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ sceneToObj() [2/2]

void meshlib.meshsave.Functions.sceneToObj ( meshlib.std_vector_MR_MeshSave_NamedXfMesh objects,
meshlib.std_ostream out,
meshlib.VertColors colors )
static

Generated from function MR::MeshSave::sceneToObj.

Calls MR_MeshSave_sceneToObj_std_ostream(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ to3mf()

void meshlib.meshsave.Functions.to3mf ( meshlib.Mesh mesh,
java.lang.String file,
meshlib.SaveSettings settings )
static

saves in .3mf file Generated from function MR::MeshSave::to3mf.

Calls MR_MeshSave_to3mf(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toAnySupportedFormat() [1/2]

void meshlib.meshsave.Functions.toAnySupportedFormat ( meshlib.Mesh mesh,
java.lang.String extension,
meshlib.std_ostream out,
meshlib.SaveSettings settings )
static

extension in *.ext format Generated from function MR::MeshSave::toAnySupportedFormat.

Calls MR_MeshSave_toAnySupportedFormat_stream(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toAnySupportedFormat() [2/2]

void meshlib.meshsave.Functions.toAnySupportedFormat ( meshlib.Mesh mesh,
java.lang.String file,
meshlib.SaveSettings settings )
static

detects the format from file extension and save mesh to it Generated from function MR::MeshSave::toAnySupportedFormat.

Calls MR_MeshSave_toAnySupportedFormat(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toAsciiStl() [1/2]

void meshlib.meshsave.Functions.toAsciiStl ( meshlib.Mesh mesh,
java.lang.String file,
meshlib.SaveSettings settings )
static

saves in textual .stl file; SaveSettings.onlyValidPoints = false is ignored Generated from function MR::MeshSave::toAsciiStl.

Calls MR_MeshSave_toAsciiStl_std_filesystem_path(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toAsciiStl() [2/2]

void meshlib.meshsave.Functions.toAsciiStl ( meshlib.Mesh mesh,
meshlib.std_ostream out,
meshlib.SaveSettings settings )
static

Generated from function MR::MeshSave::toAsciiStl.

Calls MR_MeshSave_toAsciiStl_std_ostream(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toBinaryStl() [1/2]

void meshlib.meshsave.Functions.toBinaryStl ( meshlib.Mesh mesh,
java.lang.String file,
meshlib.SaveSettings settings )
static

saves in binary .stl file; SaveSettings.onlyValidPoints = false is ignored Generated from function MR::MeshSave::toBinaryStl.

Calls MR_MeshSave_toBinaryStl_std_filesystem_path(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toBinaryStl() [2/2]

void meshlib.meshsave.Functions.toBinaryStl ( meshlib.Mesh mesh,
meshlib.std_ostream out,
meshlib.SaveSettings settings )
static

Generated from function MR::MeshSave::toBinaryStl.

Calls MR_MeshSave_toBinaryStl_std_ostream(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toCtm() [1/4]

void meshlib.meshsave.Functions.toCtm ( meshlib.Mesh mesh,
java.lang.String file,
meshlib.meshsave.CtmSaveOptions options )
static

saves in .ctm file Generated from function MR::MeshSave::toCtm.

Calls MR_MeshSave_toCtm_const_std_filesystem_path_ref_MR_MeshSave_CtmSaveOptions(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toCtm() [2/4]

void meshlib.meshsave.Functions.toCtm ( meshlib.Mesh mesh,
java.lang.String file,
meshlib.SaveSettings settings )
static

Generated from function MR::MeshSave::toCtm.

Calls MR_MeshSave_toCtm_const_std_filesystem_path_ref_MR_SaveSettings(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toCtm() [3/4]

void meshlib.meshsave.Functions.toCtm ( meshlib.Mesh mesh,
meshlib.std_ostream out,
meshlib.meshsave.CtmSaveOptions options )
static

Generated from function MR::MeshSave::toCtm.

Calls MR_MeshSave_toCtm_std_ostream_ref_MR_MeshSave_CtmSaveOptions(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toCtm() [4/4]

void meshlib.meshsave.Functions.toCtm ( meshlib.Mesh mesh,
meshlib.std_ostream out,
meshlib.SaveSettings settings )
static

Generated from function MR::MeshSave::toCtm.

Calls MR_MeshSave_toCtm_std_ostream_ref_MR_SaveSettings(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toDrc() [1/4]

void meshlib.meshsave.Functions.toDrc ( meshlib.Mesh mesh,
java.lang.String file,
meshlib.DracoSaveOptions options )
static

saves in Google Draco .drc file Generated from function MR::MeshSave::toDrc.

Calls MR_MeshSave_toDrc_const_std_filesystem_path_ref_MR_DracoSaveOptions(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toDrc() [2/4]

void meshlib.meshsave.Functions.toDrc ( meshlib.Mesh mesh,
java.lang.String file,
meshlib.SaveSettings settings )
static

Generated from function MR::MeshSave::toDrc.

Calls MR_MeshSave_toDrc_const_std_filesystem_path_ref_MR_SaveSettings(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toDrc() [3/4]

void meshlib.meshsave.Functions.toDrc ( meshlib.Mesh mesh,
meshlib.std_ostream out,
meshlib.DracoSaveOptions options )
static

Generated from function MR::MeshSave::toDrc.

Calls MR_MeshSave_toDrc_std_ostream_ref_MR_DracoSaveOptions(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toDrc() [4/4]

void meshlib.meshsave.Functions.toDrc ( meshlib.Mesh mesh,
meshlib.std_ostream out,
meshlib.SaveSettings settings )
static

Generated from function MR::MeshSave::toDrc.

Calls MR_MeshSave_toDrc_std_ostream_ref_MR_SaveSettings(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toModel3mf() [1/2]

void meshlib.meshsave.Functions.toModel3mf ( meshlib.Mesh mesh,
java.lang.String file,
meshlib.SaveSettings settings )
static

saves in 3mf .model file Generated from function MR::MeshSave::toModel3mf.

Calls MR_MeshSave_toModel3mf_std_filesystem_path(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toModel3mf() [2/2]

void meshlib.meshsave.Functions.toModel3mf ( meshlib.Mesh mesh,
meshlib.std_ostream out,
meshlib.SaveSettings settings )
static

Generated from function MR::MeshSave::toModel3mf.

Calls MR_MeshSave_toModel3mf_std_ostream(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toMrmesh() [1/2]

void meshlib.meshsave.Functions.toMrmesh ( meshlib.Mesh mesh,
java.lang.String file,
meshlib.SaveSettings settings )
static

saves in internal file format; SaveSettings.onlyValidPoints = true is ignored Generated from function MR::MeshSave::toMrmesh.

Calls MR_MeshSave_toMrmesh_std_filesystem_path(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toMrmesh() [2/2]

void meshlib.meshsave.Functions.toMrmesh ( meshlib.Mesh mesh,
meshlib.std_ostream out,
meshlib.SaveSettings settings )
static

Generated from function MR::MeshSave::toMrmesh.

Calls MR_MeshSave_toMrmesh_std_ostream(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toObj() [1/4]

void meshlib.meshsave.Functions.toObj ( meshlib.Mesh mesh,
java.lang.String file,
meshlib.SaveSettings settings )
static

Generated from function MR::MeshSave::toObj.

Calls MR_MeshSave_toObj_3_std_filesystem_path(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toObj() [2/4]

void meshlib.meshsave.Functions.toObj ( meshlib.Mesh mesh,
java.lang.String file,
meshlib.SaveSettings settings,
int firstVertId )
static

saves in .obj file

Parameters
firstVertIdis the index of first mesh vertex in the output file (if this object is not the first there) Generated from function MR::MeshSave::toObj.

Calls MR_MeshSave_toObj_4_std_filesystem_path(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toObj() [3/4]

void meshlib.meshsave.Functions.toObj ( meshlib.Mesh mesh,
meshlib.std_ostream out,
meshlib.SaveSettings settings )
static

Generated from function MR::MeshSave::toObj.

Calls MR_MeshSave_toObj_3_std_ostream(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toObj() [4/4]

void meshlib.meshsave.Functions.toObj ( meshlib.Mesh mesh,
meshlib.std_ostream out,
meshlib.SaveSettings settings,
int firstVertId )
static

Generated from function MR::MeshSave::toObj.

Calls MR_MeshSave_toObj_4_std_ostream(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toOff() [1/2]

void meshlib.meshsave.Functions.toOff ( meshlib.Mesh mesh,
java.lang.String file,
meshlib.SaveSettings settings )
static

saves in .off file Generated from function MR::MeshSave::toOff.

Calls MR_MeshSave_toOff_std_filesystem_path(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toOff() [2/2]

void meshlib.meshsave.Functions.toOff ( meshlib.Mesh mesh,
meshlib.std_ostream out,
meshlib.SaveSettings settings )
static

Generated from function MR::MeshSave::toOff.

Calls MR_MeshSave_toOff_std_ostream(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toPly() [1/4]

void meshlib.meshsave.Functions.toPly ( meshlib.Mesh mesh,
java.lang.String file,
meshlib.SaveSettings settings )
static

saves in .ply file Generated from function MR::MeshSave::toPly.

Calls MR_MeshSave_toPly_const_MR_Mesh_ref_std_filesystem_path(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toPly() [2/4]

void meshlib.meshsave.Functions.toPly ( meshlib.Mesh mesh,
meshlib.std_ostream out,
meshlib.SaveSettings settings )
static

Generated from function MR::MeshSave::toPly.

Calls MR_MeshSave_toPly_const_MR_Mesh_ref_std_ostream(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toPly() [3/4]

void meshlib.meshsave.Functions.toPly ( meshlib.TriMesh mesh,
java.lang.String file,
meshlib.SaveSettings settings )
static

saves in .ply file; all vertices and triangles of TriMesh are always saved independently of SaveSettings.onlyValidPoints and SaveSettings.packPrimitives Generated from function MR::MeshSave::toPly.

Calls MR_MeshSave_toPly_const_MR_TriMesh_ref_std_filesystem_path(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toPly() [4/4]

void meshlib.meshsave.Functions.toPly ( meshlib.TriMesh mesh,
meshlib.std_ostream out,
meshlib.SaveSettings settings )
static

Generated from function MR::MeshSave::toPly.

Calls MR_MeshSave_toPly_const_MR_TriMesh_ref_std_ostream(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.


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