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

Classes

struct  NamedMesh
struct  ObjLoadSettings
struct  StepLoadSettings

Functions

auto from_ctm_std_filesystem_path (file:&str, settings:Option<&meshlib::MeshLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto from_ctm_std_istream (in:&mut meshlib::std_istream, settings:Option<&meshlib::MeshLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto from_drc_std_filesystem_path (file:&str, settings:Option<&meshlib::MeshLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto from_drc_std_istream (in:&mut meshlib::std_istream, settings:Option<&meshlib::MeshLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto from_step_std_filesystem_path (path:&str, settings:Option<&meshlib::MeshLoadSettings >, stepSettings:Option<&meshlib::mesh_load::StepLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto from_step_std_istream (in:&mut meshlib::std_istream, settings:Option<&meshlib::MeshLoadSettings >, stepSettings:Option<&meshlib::mesh_load::StepLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto from_scene_step_file_std_filesystem_path (path:&str, settings:Option<&meshlib::MeshLoadSettings >, stepSettings:Option<&meshlib::mesh_load::StepLoadSettings >) -> meshlib::Owned< meshlib::expected_std_shared_ptr_MR_Object_std_string >
auto from_scene_step_file_std_istream (in:&mut meshlib::std_istream, settings:Option<&meshlib::MeshLoadSettings >, stepSettings:Option<&meshlib::mesh_load::StepLoadSettings >) -> meshlib::Owned< meshlib::expected_std_shared_ptr_MR_Object_std_string >
auto from_mrmesh_std_filesystem_path (file:&str, settings:Option<&meshlib::MeshLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto from_mrmesh_std_istream (in:&mut meshlib::std_istream, settings:Option<&meshlib::MeshLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto from_off_std_filesystem_path (file:&str, settings:Option<&meshlib::MeshLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto from_off_std_istream (in:&mut meshlib::std_istream, settings:Option<&meshlib::MeshLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto from_obj_std_filesystem_path (file:&str, settings:Option<&meshlib::MeshLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto from_obj_std_istream (in:&mut meshlib::std_istream, settings:Option<&meshlib::MeshLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto from_any_stl_std_filesystem_path (file:&str, settings:Option<&meshlib::MeshLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto from_any_stl_std_istream (in:&mut meshlib::std_istream, settings:Option<&meshlib::MeshLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto from_binary_stl_std_filesystem_path (file:&str, settings:Option<&meshlib::MeshLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto from_binary_stl_std_istream (in:&mut meshlib::std_istream, settings:Option<&meshlib::MeshLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto from_ascii_stl_std_filesystem_path (file:&str, settings:Option<&meshlib::MeshLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto from_ascii_stl_std_istream (in:&mut meshlib::std_istream, settings:Option<&meshlib::MeshLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto from_ply_std_filesystem_path (file:&str, settings:Option<&meshlib::MeshLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto from_ply_std_istream (in:&mut meshlib::std_istream, settings:Option<&meshlib::MeshLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto from_dxf_std_filesystem_path (path:&str, settings:Option<&meshlib::MeshLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto from_dxf_std_istream (in:&mut meshlib::std_istream, settings:Option<&meshlib::MeshLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto from_any_supported_format (file:&str, settings:Option<&meshlib::MeshLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto from_any_supported_format_stream (in:&mut meshlib::std_istream, extension:&str, settings:Option<&meshlib::MeshLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto from_scene_obj_file_3 (file:&str, combineAllObjects:bool, settings:Option<&meshlib::mesh_load::ObjLoadSettings >) -> meshlib::Owned< meshlib::expected_std_vector_MR_MeshLoad_NamedMesh_std_string >
auto from_scene_obj_file_4 (in:&mut meshlib::std_istream, combineAllObjects:bool, dir:&str, settings:Option<&meshlib::mesh_load::ObjLoadSettings >) -> meshlib::Owned< meshlib::expected_std_vector_MR_MeshLoad_NamedMesh_std_string >
auto from_scene_obj_file_5 (data:Option<&core::ffi::c_char >, size:usize, combineAllObjects:bool, dir:&str, settings:Option<&meshlib::mesh_load::ObjLoadSettings >) -> meshlib::Owned< meshlib::expected_std_vector_MR_MeshLoad_NamedMesh_std_string >
auto load_object_from_obj (file:&str, cb:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_MR_LoadedObjects_std_string >

Function Documentation

◆ from_any_stl_std_filesystem_path()

auto meshlib::mesh_load::from_any_stl_std_filesystem_path ( file:& str,
settings:Option<&meshlib::MeshLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

loads mesh from file in any .STL format: both binary and ASCII Generated from function MR::MeshLoad::fromAnyStl.

Calls MR_MeshLoad_fromAnyStl_std_filesystem_path().

◆ from_any_stl_std_istream()

auto meshlib::mesh_load::from_any_stl_std_istream ( in:&mut meshlib::std_istream ,
settings:Option<&meshlib::MeshLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

loads mesh from stream in any .STL format: both binary and ASCII; important on Windows: in stream must be open in binary mode Generated from function MR::MeshLoad::fromAnyStl.

Calls MR_MeshLoad_fromAnyStl_std_istream().

◆ from_any_supported_format()

auto meshlib::mesh_load::from_any_supported_format ( file:& str,
settings:Option<&meshlib::MeshLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

loads mesh from file in the format detected from file extension Generated from function MR::MeshLoad::fromAnySupportedFormat.

Calls MR_MeshLoad_fromAnySupportedFormat().

◆ from_any_supported_format_stream()

auto meshlib::mesh_load::from_any_supported_format_stream ( in:&mut meshlib::std_istream ,
extension:& str,
settings:Option<&meshlib::MeshLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

loads mesh from stream in the format detected from given extension-string (*.ext); important on Windows: in stream must be open in binary mode Generated from function MR::MeshLoad::fromAnySupportedFormat.

Calls MR_MeshLoad_fromAnySupportedFormat_stream().

◆ from_ascii_stl_std_filesystem_path()

auto meshlib::mesh_load::from_ascii_stl_std_filesystem_path ( file:& str,
settings:Option<&meshlib::MeshLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

loads mesh from file in textual .STL format Generated from function MR::MeshLoad::fromASCIIStl.

Calls MR_MeshLoad_fromASCIIStl_std_filesystem_path().

◆ from_ascii_stl_std_istream()

auto meshlib::mesh_load::from_ascii_stl_std_istream ( in:&mut meshlib::std_istream ,
settings:Option<&meshlib::MeshLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

loads mesh from stream in textual .STL format Generated from function MR::MeshLoad::fromASCIIStl.

Calls MR_MeshLoad_fromASCIIStl_std_istream().

◆ from_binary_stl_std_filesystem_path()

auto meshlib::mesh_load::from_binary_stl_std_filesystem_path ( file:& str,
settings:Option<&meshlib::MeshLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

loads mesh from file in binary .STL format Generated from function MR::MeshLoad::fromBinaryStl.

Calls MR_MeshLoad_fromBinaryStl_std_filesystem_path().

◆ from_binary_stl_std_istream()

auto meshlib::mesh_load::from_binary_stl_std_istream ( in:&mut meshlib::std_istream ,
settings:Option<&meshlib::MeshLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

loads mesh from stream in binary .STL format; important on Windows: in stream must be open in binary mode Generated from function MR::MeshLoad::fromBinaryStl.

Calls MR_MeshLoad_fromBinaryStl_std_istream().

◆ from_ctm_std_filesystem_path()

auto meshlib::mesh_load::from_ctm_std_filesystem_path ( file:& str,
settings:Option<&meshlib::MeshLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

loads from .ctm file Generated from function MR::MeshLoad::fromCtm.

Calls MR_MeshLoad_fromCtm_std_filesystem_path().

◆ from_ctm_std_istream()

auto meshlib::mesh_load::from_ctm_std_istream ( in:&mut meshlib::std_istream ,
settings:Option<&meshlib::MeshLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

Generated from function MR::MeshLoad::fromCtm.

Calls MR_MeshLoad_fromCtm_std_istream().

◆ from_drc_std_filesystem_path()

auto meshlib::mesh_load::from_drc_std_filesystem_path ( file:& str,
settings:Option<&meshlib::MeshLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

loads from Google Draco .drc file; the vertices with exactly the same coordinates are merged; if the file contains a point cloud, then the mesh without triangles is returned Generated from function MR::MeshLoad::fromDrc.

Calls MR_MeshLoad_fromDrc_std_filesystem_path().

◆ from_drc_std_istream()

auto meshlib::mesh_load::from_drc_std_istream ( in:&mut meshlib::std_istream ,
settings:Option<&meshlib::MeshLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

Generated from function MR::MeshLoad::fromDrc.

Calls MR_MeshLoad_fromDrc_std_istream().

◆ from_dxf_std_filesystem_path()

auto meshlib::mesh_load::from_dxf_std_filesystem_path ( path:& str,
settings:Option<&meshlib::MeshLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

loads mesh from file in .DXF format; Generated from function MR::MeshLoad::fromDxf.

Calls MR_MeshLoad_fromDxf_std_filesystem_path().

◆ from_dxf_std_istream()

auto meshlib::mesh_load::from_dxf_std_istream ( in:&mut meshlib::std_istream ,
settings:Option<&meshlib::MeshLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

loads mesh from stream in .DXF format; Generated from function MR::MeshLoad::fromDxf.

Calls MR_MeshLoad_fromDxf_std_istream().

◆ from_mrmesh_std_filesystem_path()

auto meshlib::mesh_load::from_mrmesh_std_filesystem_path ( file:& str,
settings:Option<&meshlib::MeshLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

loads mesh from file in internal MeshLib format Generated from function MR::MeshLoad::fromMrmesh.

Calls MR_MeshLoad_fromMrmesh_std_filesystem_path().

◆ from_mrmesh_std_istream()

auto meshlib::mesh_load::from_mrmesh_std_istream ( in:&mut meshlib::std_istream ,
settings:Option<&meshlib::MeshLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

loads mesh from stream in internal MeshLib format; important on Windows: in stream must be open in binary mode Generated from function MR::MeshLoad::fromMrmesh.

Calls MR_MeshLoad_fromMrmesh_std_istream().

◆ from_obj_std_filesystem_path()

auto meshlib::mesh_load::from_obj_std_filesystem_path ( file:& str,
settings:Option<&meshlib::MeshLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

loads mesh from file in .OBJ format Generated from function MR::MeshLoad::fromObj.

Calls MR_MeshLoad_fromObj_std_filesystem_path().

◆ from_obj_std_istream()

auto meshlib::mesh_load::from_obj_std_istream ( in:&mut meshlib::std_istream ,
settings:Option<&meshlib::MeshLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

loads mesh from stream in .OBJ format; important on Windows: in stream must be open in binary mode Generated from function MR::MeshLoad::fromObj.

Calls MR_MeshLoad_fromObj_std_istream().

◆ from_off_std_filesystem_path()

auto meshlib::mesh_load::from_off_std_filesystem_path ( file:& str,
settings:Option<&meshlib::MeshLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

loads mesh from file in textual or binary .OFF format Generated from function MR::MeshLoad::fromOff.

Calls MR_MeshLoad_fromOff_std_filesystem_path().

◆ from_off_std_istream()

auto meshlib::mesh_load::from_off_std_istream ( in:&mut meshlib::std_istream ,
settings:Option<&meshlib::MeshLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

loads mesh from stream in textual or binary .OFF format important on Windows: in stream must be open in binary mode Generated from function MR::MeshLoad::fromOff.

Calls MR_MeshLoad_fromOff_std_istream().

◆ from_ply_std_filesystem_path()

auto meshlib::mesh_load::from_ply_std_filesystem_path ( file:& str,
settings:Option<&meshlib::MeshLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

loads mesh from file in .PLY format; Generated from function MR::MeshLoad::fromPly.

Calls MR_MeshLoad_fromPly_std_filesystem_path().

◆ from_ply_std_istream()

auto meshlib::mesh_load::from_ply_std_istream ( in:&mut meshlib::std_istream ,
settings:Option<&meshlib::MeshLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

loads mesh from stream in .PLY format; important on Windows: in stream must be open in binary mode Generated from function MR::MeshLoad::fromPly.

Calls MR_MeshLoad_fromPly_std_istream().

◆ from_scene_obj_file_3()

auto meshlib::mesh_load::from_scene_obj_file_3 ( file:& str,
combineAllObjects:bool ,
settings:Option<&meshlib::mesh_load::ObjLoadSettings >  ) -> meshlib::Owned< meshlib::expected_std_vector_MR_MeshLoad_NamedMesh_std_string >

loads meshes from .obj file Generated from function MR::MeshLoad::fromSceneObjFile.

Calls MR_MeshLoad_fromSceneObjFile_3().

◆ from_scene_obj_file_4()

auto meshlib::mesh_load::from_scene_obj_file_4 ( in:&mut meshlib::std_istream ,
combineAllObjects:bool ,
dir:& str,
settings:Option<&meshlib::mesh_load::ObjLoadSettings >  ) -> meshlib::Owned< meshlib::expected_std_vector_MR_MeshLoad_NamedMesh_std_string >

loads meshes from a stream with .obj file contents important on Windows: in stream must be open in binary mode

Parameters
dirworking directory where materials and textures are located Generated from function MR::MeshLoad::fromSceneObjFile.

Calls MR_MeshLoad_fromSceneObjFile_4().

◆ from_scene_obj_file_5()

auto meshlib::mesh_load::from_scene_obj_file_5 ( data:Option<&core::ffi::c_char > ,
size:usize ,
combineAllObjects:bool ,
dir:& str,
settings:Option<&meshlib::mesh_load::ObjLoadSettings >  ) -> meshlib::Owned< meshlib::expected_std_vector_MR_MeshLoad_NamedMesh_std_string >

loads meshes from memory array with .obj file contents

Parameters
dirworking directory where materials and textures are located Generated from function MR::MeshLoad::fromSceneObjFile.

Calls MR_MeshLoad_fromSceneObjFile_5().

◆ from_scene_step_file_std_filesystem_path()

auto meshlib::mesh_load::from_scene_step_file_std_filesystem_path ( path:& str,
settings:Option<&meshlib::MeshLoadSettings > ,
stepSettings:Option<&meshlib::mesh_load::StepLoadSettings >  ) -> meshlib::Owned< meshlib::expected_std_shared_ptr_MR_Object_std_string >

load scene from STEP file using OpenCASCADE Generated from function MR::MeshLoad::fromSceneStepFile.

Calls MR_MeshLoad_fromSceneStepFile_std_filesystem_path().

◆ from_scene_step_file_std_istream()

auto meshlib::mesh_load::from_scene_step_file_std_istream ( in:&mut meshlib::std_istream ,
settings:Option<&meshlib::MeshLoadSettings > ,
stepSettings:Option<&meshlib::mesh_load::StepLoadSettings >  ) -> meshlib::Owned< meshlib::expected_std_shared_ptr_MR_Object_std_string >

Generated from function MR::MeshLoad::fromSceneStepFile.

Calls MR_MeshLoad_fromSceneStepFile_std_istream().

◆ from_step_std_filesystem_path()

auto meshlib::mesh_load::from_step_std_filesystem_path ( path:& str,
settings:Option<&meshlib::MeshLoadSettings > ,
stepSettings:Option<&meshlib::mesh_load::StepLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

load mesh data from STEP file using OpenCASCADE Generated from function MR::MeshLoad::fromStep.

Calls MR_MeshLoad_fromStep_std_filesystem_path().

◆ from_step_std_istream()

auto meshlib::mesh_load::from_step_std_istream ( in:&mut meshlib::std_istream ,
settings:Option<&meshlib::MeshLoadSettings > ,
stepSettings:Option<&meshlib::mesh_load::StepLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

Generated from function MR::MeshLoad::fromStep.

Calls MR_MeshLoad_fromStep_std_istream().

◆ load_object_from_obj()

auto meshlib::mesh_load::load_object_from_obj ( file:& str,
cb:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_MR_LoadedObjects_std_string >

reads all objects from .OBJ file Generated from function MR::MeshLoad::loadObjectFromObj.

Calls MR_MeshLoad_loadObjectFromObj().