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

Static Public Member Functions

static meshlib.Mesh fromMrmesh (java.lang.String file, meshlib.MeshLoadSettings settings)
static meshlib.Mesh fromMrmesh (meshlib.std_istream in, meshlib.MeshLoadSettings settings)
static meshlib.Mesh fromOff (java.lang.String file, meshlib.MeshLoadSettings settings)
static meshlib.Mesh fromOff (meshlib.std_istream in, meshlib.MeshLoadSettings settings)
static meshlib.Mesh fromObj (java.lang.String file, meshlib.MeshLoadSettings settings)
static meshlib.Mesh fromObj (meshlib.std_istream in, meshlib.MeshLoadSettings settings)
static meshlib.Mesh fromAnyStl (java.lang.String file, meshlib.MeshLoadSettings settings)
static meshlib.Mesh fromAnyStl (meshlib.std_istream in, meshlib.MeshLoadSettings settings)
static meshlib.Mesh fromBinaryStl (java.lang.String file, meshlib.MeshLoadSettings settings)
static meshlib.Mesh fromBinaryStl (meshlib.std_istream in, meshlib.MeshLoadSettings settings)
static meshlib.Mesh fromASCIIStl (java.lang.String file, meshlib.MeshLoadSettings settings)
static meshlib.Mesh fromASCIIStl (meshlib.std_istream in, meshlib.MeshLoadSettings settings)
static meshlib.Mesh fromPly (java.lang.String file, meshlib.MeshLoadSettings settings)
static meshlib.Mesh fromPly (meshlib.std_istream in, meshlib.MeshLoadSettings settings)
static meshlib.Mesh fromDxf (java.lang.String path, meshlib.MeshLoadSettings settings)
static meshlib.Mesh fromDxf (meshlib.std_istream in, meshlib.MeshLoadSettings settings)
static meshlib.Mesh fromAnySupportedFormat (java.lang.String file, meshlib.MeshLoadSettings settings)
static meshlib.Mesh fromAnySupportedFormat (meshlib.std_istream in, java.lang.String extension, meshlib.MeshLoadSettings settings)
static meshlib.std_vector_MR_MeshLoad_NamedMesh fromSceneObjFile (java.lang.String file, boolean combineAllObjects, meshlib.meshload.ObjLoadSettings settings)
static meshlib.std_vector_MR_MeshLoad_NamedMesh fromSceneObjFile (meshlib.std_istream in, boolean combineAllObjects, java.lang.String dir, meshlib.meshload.ObjLoadSettings settings)
static meshlib.std_vector_MR_MeshLoad_NamedMesh fromSceneObjFile (java.lang.Byte data, long size, boolean combineAllObjects, java.lang.String dir, meshlib.meshload.ObjLoadSettings settings)
static meshlib.LoadedObjects loadObjectFromObj (java.lang.String file, meshlib.std_function_bool_from_float cb)
static meshlib.Mesh fromCtm (java.lang.String file, meshlib.MeshLoadSettings settings)
static meshlib.Mesh fromCtm (meshlib.std_istream in, meshlib.MeshLoadSettings settings)
static meshlib.Mesh fromDrc (java.lang.String file, meshlib.MeshLoadSettings settings)
static meshlib.Mesh fromDrc (meshlib.std_istream in, meshlib.MeshLoadSettings settings)
static meshlib.Mesh fromStep (java.lang.String path, meshlib.MeshLoadSettings settings, meshlib.meshload.StepLoadSettings stepSettings)
static meshlib.Mesh fromStep (meshlib.std_istream in, meshlib.MeshLoadSettings settings, meshlib.meshload.StepLoadSettings stepSettings)
static meshlib.std_shared_ptr_MR_Object fromSceneStepFile (java.lang.String path, meshlib.MeshLoadSettings settings, meshlib.meshload.StepLoadSettings stepSettings)
static meshlib.std_shared_ptr_MR_Object fromSceneStepFile (meshlib.std_istream in, meshlib.MeshLoadSettings settings, meshlib.meshload.StepLoadSettings stepSettings)

Detailed Description

The free functions of this namespace.

Member Function Documentation

◆ fromAnyStl() [1/2]

meshlib.Mesh meshlib.meshload.Functions.fromAnyStl ( java.lang.String file,
meshlib.MeshLoadSettings settings )
static

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(). The C++ function returns expected<MR::Mesh, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromAnyStl() [2/2]

meshlib.Mesh meshlib.meshload.Functions.fromAnyStl ( meshlib.std_istream in,
meshlib.MeshLoadSettings settings )
static

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(). The C++ function returns expected<MR::Mesh, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromAnySupportedFormat() [1/2]

meshlib.Mesh meshlib.meshload.Functions.fromAnySupportedFormat ( java.lang.String file,
meshlib.MeshLoadSettings settings )
static

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

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

◆ fromAnySupportedFormat() [2/2]

meshlib.Mesh meshlib.meshload.Functions.fromAnySupportedFormat ( meshlib.std_istream in,
java.lang.String extension,
meshlib.MeshLoadSettings settings )
static

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(). The C++ function returns expected<MR::Mesh, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromASCIIStl() [1/2]

meshlib.Mesh meshlib.meshload.Functions.fromASCIIStl ( java.lang.String file,
meshlib.MeshLoadSettings settings )
static

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

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

◆ fromASCIIStl() [2/2]

meshlib.Mesh meshlib.meshload.Functions.fromASCIIStl ( meshlib.std_istream in,
meshlib.MeshLoadSettings settings )
static

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

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

◆ fromBinaryStl() [1/2]

meshlib.Mesh meshlib.meshload.Functions.fromBinaryStl ( java.lang.String file,
meshlib.MeshLoadSettings settings )
static

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

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

◆ fromBinaryStl() [2/2]

meshlib.Mesh meshlib.meshload.Functions.fromBinaryStl ( meshlib.std_istream in,
meshlib.MeshLoadSettings settings )
static

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(). The C++ function returns expected<MR::Mesh, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromCtm() [1/2]

meshlib.Mesh meshlib.meshload.Functions.fromCtm ( java.lang.String file,
meshlib.MeshLoadSettings settings )
static

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

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

◆ fromCtm() [2/2]

meshlib.Mesh meshlib.meshload.Functions.fromCtm ( meshlib.std_istream in,
meshlib.MeshLoadSettings settings )
static

Generated from function MR::MeshLoad::fromCtm.

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

◆ fromDrc() [1/2]

meshlib.Mesh meshlib.meshload.Functions.fromDrc ( java.lang.String file,
meshlib.MeshLoadSettings settings )
static

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(). The C++ function returns expected<MR::Mesh, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromDrc() [2/2]

meshlib.Mesh meshlib.meshload.Functions.fromDrc ( meshlib.std_istream in,
meshlib.MeshLoadSettings settings )
static

Generated from function MR::MeshLoad::fromDrc.

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

◆ fromDxf() [1/2]

meshlib.Mesh meshlib.meshload.Functions.fromDxf ( java.lang.String path,
meshlib.MeshLoadSettings settings )
static

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

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

◆ fromDxf() [2/2]

meshlib.Mesh meshlib.meshload.Functions.fromDxf ( meshlib.std_istream in,
meshlib.MeshLoadSettings settings )
static

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

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

◆ fromMrmesh() [1/2]

meshlib.Mesh meshlib.meshload.Functions.fromMrmesh ( java.lang.String file,
meshlib.MeshLoadSettings settings )
static

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

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

◆ fromMrmesh() [2/2]

meshlib.Mesh meshlib.meshload.Functions.fromMrmesh ( meshlib.std_istream in,
meshlib.MeshLoadSettings settings )
static

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(). The C++ function returns expected<MR::Mesh, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromObj() [1/2]

meshlib.Mesh meshlib.meshload.Functions.fromObj ( java.lang.String file,
meshlib.MeshLoadSettings settings )
static

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

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

◆ fromObj() [2/2]

meshlib.Mesh meshlib.meshload.Functions.fromObj ( meshlib.std_istream in,
meshlib.MeshLoadSettings settings )
static

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(). The C++ function returns expected<MR::Mesh, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromOff() [1/2]

meshlib.Mesh meshlib.meshload.Functions.fromOff ( java.lang.String file,
meshlib.MeshLoadSettings settings )
static

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

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

◆ fromOff() [2/2]

meshlib.Mesh meshlib.meshload.Functions.fromOff ( meshlib.std_istream in,
meshlib.MeshLoadSettings settings )
static

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(). The C++ function returns expected<MR::Mesh, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromPly() [1/2]

meshlib.Mesh meshlib.meshload.Functions.fromPly ( java.lang.String file,
meshlib.MeshLoadSettings settings )
static

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

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

◆ fromPly() [2/2]

meshlib.Mesh meshlib.meshload.Functions.fromPly ( meshlib.std_istream in,
meshlib.MeshLoadSettings settings )
static

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(). The C++ function returns expected<MR::Mesh, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromSceneObjFile() [1/3]

meshlib.std_vector_MR_MeshLoad_NamedMesh meshlib.meshload.Functions.fromSceneObjFile ( java.lang.Byte data,
long size,
boolean combineAllObjects,
java.lang.String dir,
meshlib.meshload.ObjLoadSettings settings )
static

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(). The C++ function returns expected<std::vector<MR::MeshLoad::NamedMesh>, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromSceneObjFile() [2/3]

meshlib.std_vector_MR_MeshLoad_NamedMesh meshlib.meshload.Functions.fromSceneObjFile ( java.lang.String file,
boolean combineAllObjects,
meshlib.meshload.ObjLoadSettings settings )
static

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

Calls MR_MeshLoad_fromSceneObjFile_3(). The C++ function returns expected<std::vector<MR::MeshLoad::NamedMesh>, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromSceneObjFile() [3/3]

meshlib.std_vector_MR_MeshLoad_NamedMesh meshlib.meshload.Functions.fromSceneObjFile ( meshlib.std_istream in,
boolean combineAllObjects,
java.lang.String dir,
meshlib.meshload.ObjLoadSettings settings )
static

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(). The C++ function returns expected<std::vector<MR::MeshLoad::NamedMesh>, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromSceneStepFile() [1/2]

meshlib.std_shared_ptr_MR_Object meshlib.meshload.Functions.fromSceneStepFile ( java.lang.String path,
meshlib.MeshLoadSettings settings,
meshlib.meshload.StepLoadSettings stepSettings )
static

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

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

◆ fromSceneStepFile() [2/2]

meshlib.std_shared_ptr_MR_Object meshlib.meshload.Functions.fromSceneStepFile ( meshlib.std_istream in,
meshlib.MeshLoadSettings settings,
meshlib.meshload.StepLoadSettings stepSettings )
static

Generated from function MR::MeshLoad::fromSceneStepFile.

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

◆ fromStep() [1/2]

meshlib.Mesh meshlib.meshload.Functions.fromStep ( java.lang.String path,
meshlib.MeshLoadSettings settings,
meshlib.meshload.StepLoadSettings stepSettings )
static

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

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

◆ fromStep() [2/2]

meshlib.Mesh meshlib.meshload.Functions.fromStep ( meshlib.std_istream in,
meshlib.MeshLoadSettings settings,
meshlib.meshload.StepLoadSettings stepSettings )
static

Generated from function MR::MeshLoad::fromStep.

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

◆ loadObjectFromObj()

meshlib.LoadedObjects meshlib.meshload.Functions.loadObjectFromObj ( java.lang.String file,
meshlib.std_function_bool_from_float cb )
static

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

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


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