MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::mesh_save Namespace Reference

Classes

struct  BinaryStlSaver
struct  CtmSaveOptions
struct  CtmSaveOptions_MeshCompression
 Generated from enum MR::MeshSave::CtmSaveOptions::MeshCompression. The constants are associated constants of this type. More...
struct  NamedXfMesh

Functions

auto to_ctm_const_std_filesystem_path_ref_mr_mesh_save_ctm_save_options (mesh:&meshlib::Mesh, file:&str, options:&meshlib::mesh_save::CtmSaveOptions) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_ctm_std_ostream_ref_mr_mesh_save_ctm_save_options (mesh:&meshlib::Mesh, out:&mut meshlib::std_ostream, options:&meshlib::mesh_save::CtmSaveOptions) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_ctm_const_std_filesystem_path_ref_mr_save_settings (mesh:&meshlib::Mesh, file:&str, settings:Option<&meshlib::SaveSettings >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_ctm_std_ostream_ref_mr_save_settings (mesh:&meshlib::Mesh, out:&mut meshlib::std_ostream, settings:Option<&meshlib::SaveSettings >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_drc_const_std_filesystem_path_ref_mr_draco_save_options (mesh:&meshlib::Mesh, file:&str, options:&meshlib::DracoSaveOptions) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_drc_std_ostream_ref_mr_draco_save_options (mesh:&meshlib::Mesh, out:&mut meshlib::std_ostream, options:&meshlib::DracoSaveOptions) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_drc_const_std_filesystem_path_ref_mr_save_settings (mesh:&meshlib::Mesh, file:&str, settings:Option<&meshlib::SaveSettings >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_drc_std_ostream_ref_mr_save_settings (mesh:&meshlib::Mesh, out:&mut meshlib::std_ostream, settings:Option<&meshlib::SaveSettings >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_mrmesh_std_filesystem_path (mesh:&meshlib::Mesh, file:&str, settings:Option<&meshlib::SaveSettings >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_mrmesh_std_ostream (mesh:&meshlib::Mesh, out:&mut meshlib::std_ostream, settings:Option<&meshlib::SaveSettings >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_off_std_filesystem_path (mesh:&meshlib::Mesh, file:&str, settings:Option<&meshlib::SaveSettings >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_off_std_ostream (mesh:&meshlib::Mesh, out:&mut meshlib::std_ostream, settings:Option<&meshlib::SaveSettings >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_obj_4_std_filesystem_path (mesh:&meshlib::Mesh, file:&str, settings:&meshlib::SaveSettings, firstVertId:core::ffi::c_int) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_obj_4_std_ostream (mesh:&meshlib::Mesh, out:&mut meshlib::std_ostream, settings:&meshlib::SaveSettings, firstVertId:core::ffi::c_int) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_obj_3_std_filesystem_path (mesh:&meshlib::Mesh, file:&str, settings:Option<&meshlib::SaveSettings >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_obj_3_std_ostream (mesh:&meshlib::Mesh, out:&mut meshlib::std_ostream, settings:Option<&meshlib::SaveSettings >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_binary_stl_std_filesystem_path (mesh:&meshlib::Mesh, file:&str, settings:Option<&meshlib::SaveSettings >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_binary_stl_std_ostream (mesh:&meshlib::Mesh, out:&mut meshlib::std_ostream, settings:Option<&meshlib::SaveSettings >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_ascii_stl_std_filesystem_path (mesh:&meshlib::Mesh, file:&str, settings:Option<&meshlib::SaveSettings >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_ascii_stl_std_ostream (mesh:&meshlib::Mesh, out:&mut meshlib::std_ostream, settings:Option<&meshlib::SaveSettings >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_ply_const_mr_mesh_ref_std_filesystem_path (mesh:&meshlib::Mesh, file:&str, settings:Option<&meshlib::SaveSettings >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_ply_const_mr_mesh_ref_std_ostream (mesh:&meshlib::Mesh, out:&mut meshlib::std_ostream, settings:Option<&meshlib::SaveSettings >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_ply_const_mr_tri_mesh_ref_std_filesystem_path (mesh:&meshlib::TriMesh, file:&str, settings:Option<&meshlib::SaveSettings >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_ply_const_mr_tri_mesh_ref_std_ostream (mesh:&meshlib::TriMesh, out:&mut meshlib::std_ostream, settings:Option<&meshlib::SaveSettings >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_model3mf_std_filesystem_path (mesh:&meshlib::Mesh, file:&str, settings:Option<&meshlib::SaveSettings >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_model3mf_std_ostream (mesh:&meshlib::Mesh, out:&mut meshlib::std_ostream, settings:Option<&meshlib::SaveSettings >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to3mf (mesh:&meshlib::Mesh, file:&str, settings:Option<&meshlib::SaveSettings >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_any_supported_format (mesh:&meshlib::Mesh, file:&str, settings:Option<&meshlib::SaveSettings >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_any_supported_format_stream (mesh:&meshlib::Mesh, extension:&str, out:&mut meshlib::std_ostream, settings:Option<&meshlib::SaveSettings >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto scene_to_obj_std_filesystem_path (objects:&meshlib::std_vector_MR_MeshSave_NamedXfMesh, file:&str, colors:Option<&mut meshlib::VertColors >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto scene_to_obj_std_ostream (objects:&meshlib::std_vector_MR_MeshSave_NamedXfMesh, out:&mut meshlib::std_ostream, colors:Option<&mut meshlib::VertColors >) -> meshlib::Owned< meshlib::expected_void_std_string >

Function Documentation

◆ scene_to_obj_std_filesystem_path()

auto meshlib::mesh_save::scene_to_obj_std_filesystem_path ( objects:&meshlib::std_vector_MR_MeshSave_NamedXfMesh ,
file:& str,
colors:Option<&mut meshlib::VertColors >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::MeshSave::sceneToObj.

Calls MR_MeshSave_sceneToObj_std_filesystem_path().

◆ scene_to_obj_std_ostream()

auto meshlib::mesh_save::scene_to_obj_std_ostream ( objects:&meshlib::std_vector_MR_MeshSave_NamedXfMesh ,
out:&mut meshlib::std_ostream ,
colors:Option<&mut meshlib::VertColors >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::MeshSave::sceneToObj.

Calls MR_MeshSave_sceneToObj_std_ostream().

◆ to3mf()

auto meshlib::mesh_save::to3mf ( mesh:&meshlib::Mesh ,
file:& str,
settings:Option<&meshlib::SaveSettings >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

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

Calls MR_MeshSave_to3mf().

◆ to_any_supported_format()

auto meshlib::mesh_save::to_any_supported_format ( mesh:&meshlib::Mesh ,
file:& str,
settings:Option<&meshlib::SaveSettings >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

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

Calls MR_MeshSave_toAnySupportedFormat().

◆ to_any_supported_format_stream()

auto meshlib::mesh_save::to_any_supported_format_stream ( mesh:&meshlib::Mesh ,
extension:& str,
out:&mut meshlib::std_ostream ,
settings:Option<&meshlib::SaveSettings >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

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

Calls MR_MeshSave_toAnySupportedFormat_stream().

◆ to_ascii_stl_std_filesystem_path()

auto meshlib::mesh_save::to_ascii_stl_std_filesystem_path ( mesh:&meshlib::Mesh ,
file:& str,
settings:Option<&meshlib::SaveSettings >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

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

Calls MR_MeshSave_toAsciiStl_std_filesystem_path().

◆ to_ascii_stl_std_ostream()

auto meshlib::mesh_save::to_ascii_stl_std_ostream ( mesh:&meshlib::Mesh ,
out:&mut meshlib::std_ostream ,
settings:Option<&meshlib::SaveSettings >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::MeshSave::toAsciiStl.

Calls MR_MeshSave_toAsciiStl_std_ostream().

◆ to_binary_stl_std_filesystem_path()

auto meshlib::mesh_save::to_binary_stl_std_filesystem_path ( mesh:&meshlib::Mesh ,
file:& str,
settings:Option<&meshlib::SaveSettings >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

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

Calls MR_MeshSave_toBinaryStl_std_filesystem_path().

◆ to_binary_stl_std_ostream()

auto meshlib::mesh_save::to_binary_stl_std_ostream ( mesh:&meshlib::Mesh ,
out:&mut meshlib::std_ostream ,
settings:Option<&meshlib::SaveSettings >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::MeshSave::toBinaryStl.

Calls MR_MeshSave_toBinaryStl_std_ostream().

◆ to_ctm_const_std_filesystem_path_ref_mr_mesh_save_ctm_save_options()

auto meshlib::mesh_save::to_ctm_const_std_filesystem_path_ref_mr_mesh_save_ctm_save_options ( mesh:&meshlib::Mesh ,
file:& str,
options:&meshlib::mesh_save::CtmSaveOptions  ) -> meshlib::Owned< meshlib::expected_void_std_string >

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

Calls MR_MeshSave_toCtm_const_std_filesystem_path_ref_MR_MeshSave_CtmSaveOptions().

◆ to_ctm_const_std_filesystem_path_ref_mr_save_settings()

auto meshlib::mesh_save::to_ctm_const_std_filesystem_path_ref_mr_save_settings ( mesh:&meshlib::Mesh ,
file:& str,
settings:Option<&meshlib::SaveSettings >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::MeshSave::toCtm.

Calls MR_MeshSave_toCtm_const_std_filesystem_path_ref_MR_SaveSettings().

◆ to_ctm_std_ostream_ref_mr_mesh_save_ctm_save_options()

auto meshlib::mesh_save::to_ctm_std_ostream_ref_mr_mesh_save_ctm_save_options ( mesh:&meshlib::Mesh ,
out:&mut meshlib::std_ostream ,
options:&meshlib::mesh_save::CtmSaveOptions  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::MeshSave::toCtm.

Calls MR_MeshSave_toCtm_std_ostream_ref_MR_MeshSave_CtmSaveOptions().

◆ to_ctm_std_ostream_ref_mr_save_settings()

auto meshlib::mesh_save::to_ctm_std_ostream_ref_mr_save_settings ( mesh:&meshlib::Mesh ,
out:&mut meshlib::std_ostream ,
settings:Option<&meshlib::SaveSettings >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::MeshSave::toCtm.

Calls MR_MeshSave_toCtm_std_ostream_ref_MR_SaveSettings().

◆ to_drc_const_std_filesystem_path_ref_mr_draco_save_options()

auto meshlib::mesh_save::to_drc_const_std_filesystem_path_ref_mr_draco_save_options ( mesh:&meshlib::Mesh ,
file:& str,
options:&meshlib::DracoSaveOptions  ) -> meshlib::Owned< meshlib::expected_void_std_string >

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

Calls MR_MeshSave_toDrc_const_std_filesystem_path_ref_MR_DracoSaveOptions().

◆ to_drc_const_std_filesystem_path_ref_mr_save_settings()

auto meshlib::mesh_save::to_drc_const_std_filesystem_path_ref_mr_save_settings ( mesh:&meshlib::Mesh ,
file:& str,
settings:Option<&meshlib::SaveSettings >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::MeshSave::toDrc.

Calls MR_MeshSave_toDrc_const_std_filesystem_path_ref_MR_SaveSettings().

◆ to_drc_std_ostream_ref_mr_draco_save_options()

auto meshlib::mesh_save::to_drc_std_ostream_ref_mr_draco_save_options ( mesh:&meshlib::Mesh ,
out:&mut meshlib::std_ostream ,
options:&meshlib::DracoSaveOptions  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::MeshSave::toDrc.

Calls MR_MeshSave_toDrc_std_ostream_ref_MR_DracoSaveOptions().

◆ to_drc_std_ostream_ref_mr_save_settings()

auto meshlib::mesh_save::to_drc_std_ostream_ref_mr_save_settings ( mesh:&meshlib::Mesh ,
out:&mut meshlib::std_ostream ,
settings:Option<&meshlib::SaveSettings >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::MeshSave::toDrc.

Calls MR_MeshSave_toDrc_std_ostream_ref_MR_SaveSettings().

◆ to_model3mf_std_filesystem_path()

auto meshlib::mesh_save::to_model3mf_std_filesystem_path ( mesh:&meshlib::Mesh ,
file:& str,
settings:Option<&meshlib::SaveSettings >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

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

Calls MR_MeshSave_toModel3mf_std_filesystem_path().

◆ to_model3mf_std_ostream()

auto meshlib::mesh_save::to_model3mf_std_ostream ( mesh:&meshlib::Mesh ,
out:&mut meshlib::std_ostream ,
settings:Option<&meshlib::SaveSettings >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::MeshSave::toModel3mf.

Calls MR_MeshSave_toModel3mf_std_ostream().

◆ to_mrmesh_std_filesystem_path()

auto meshlib::mesh_save::to_mrmesh_std_filesystem_path ( mesh:&meshlib::Mesh ,
file:& str,
settings:Option<&meshlib::SaveSettings >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

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

Calls MR_MeshSave_toMrmesh_std_filesystem_path().

◆ to_mrmesh_std_ostream()

auto meshlib::mesh_save::to_mrmesh_std_ostream ( mesh:&meshlib::Mesh ,
out:&mut meshlib::std_ostream ,
settings:Option<&meshlib::SaveSettings >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::MeshSave::toMrmesh.

Calls MR_MeshSave_toMrmesh_std_ostream().

◆ to_obj_3_std_filesystem_path()

auto meshlib::mesh_save::to_obj_3_std_filesystem_path ( mesh:&meshlib::Mesh ,
file:& str,
settings:Option<&meshlib::SaveSettings >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::MeshSave::toObj.

Calls MR_MeshSave_toObj_3_std_filesystem_path().

◆ to_obj_3_std_ostream()

auto meshlib::mesh_save::to_obj_3_std_ostream ( mesh:&meshlib::Mesh ,
out:&mut meshlib::std_ostream ,
settings:Option<&meshlib::SaveSettings >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::MeshSave::toObj.

Calls MR_MeshSave_toObj_3_std_ostream().

◆ to_obj_4_std_filesystem_path()

auto meshlib::mesh_save::to_obj_4_std_filesystem_path ( mesh:&meshlib::Mesh ,
file:& str,
settings:&meshlib::SaveSettings ,
firstVertId:core::ffi::c_int  ) -> meshlib::Owned< meshlib::expected_void_std_string >

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

◆ to_obj_4_std_ostream()

auto meshlib::mesh_save::to_obj_4_std_ostream ( mesh:&meshlib::Mesh ,
out:&mut meshlib::std_ostream ,
settings:&meshlib::SaveSettings ,
firstVertId:core::ffi::c_int  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::MeshSave::toObj.

Calls MR_MeshSave_toObj_4_std_ostream().

◆ to_off_std_filesystem_path()

auto meshlib::mesh_save::to_off_std_filesystem_path ( mesh:&meshlib::Mesh ,
file:& str,
settings:Option<&meshlib::SaveSettings >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

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

Calls MR_MeshSave_toOff_std_filesystem_path().

◆ to_off_std_ostream()

auto meshlib::mesh_save::to_off_std_ostream ( mesh:&meshlib::Mesh ,
out:&mut meshlib::std_ostream ,
settings:Option<&meshlib::SaveSettings >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::MeshSave::toOff.

Calls MR_MeshSave_toOff_std_ostream().

◆ to_ply_const_mr_mesh_ref_std_filesystem_path()

auto meshlib::mesh_save::to_ply_const_mr_mesh_ref_std_filesystem_path ( mesh:&meshlib::Mesh ,
file:& str,
settings:Option<&meshlib::SaveSettings >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

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

Calls MR_MeshSave_toPly_const_MR_Mesh_ref_std_filesystem_path().

◆ to_ply_const_mr_mesh_ref_std_ostream()

auto meshlib::mesh_save::to_ply_const_mr_mesh_ref_std_ostream ( mesh:&meshlib::Mesh ,
out:&mut meshlib::std_ostream ,
settings:Option<&meshlib::SaveSettings >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::MeshSave::toPly.

Calls MR_MeshSave_toPly_const_MR_Mesh_ref_std_ostream().

◆ to_ply_const_mr_tri_mesh_ref_std_filesystem_path()

auto meshlib::mesh_save::to_ply_const_mr_tri_mesh_ref_std_filesystem_path ( mesh:&meshlib::TriMesh ,
file:& str,
settings:Option<&meshlib::SaveSettings >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

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

◆ to_ply_const_mr_tri_mesh_ref_std_ostream()

auto meshlib::mesh_save::to_ply_const_mr_tri_mesh_ref_std_ostream ( mesh:&meshlib::TriMesh ,
out:&mut meshlib::std_ostream ,
settings:Option<&meshlib::SaveSettings >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::MeshSave::toPly.

Calls MR_MeshSave_toPly_const_MR_TriMesh_ref_std_ostream().