MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.MeshLoad Class Reference

Classes

class  NamedMesh
 
class  ObjLoadSettings
 

Static Public Member Functions

Mesh fromASCIIStl (os.PathLike file, MeshLoadSettings settings='MR::MeshLoadSettings{}')
 
Mesh fromASCIIStl (typing.Any in_, MeshLoadSettings settings='MR::MeshLoadSettings{}')
 
Mesh fromAnyStl (os.PathLike file, MeshLoadSettings settings='MR::MeshLoadSettings{}')
 
Mesh fromAnyStl (typing.Any in_, MeshLoadSettings settings='MR::MeshLoadSettings{}')
 
Mesh fromAnySupportedFormat (os.PathLike file, MeshLoadSettings settings='MR::MeshLoadSettings{}')
 
Mesh fromAnySupportedFormat (typing.Any in_, str extension, MeshLoadSettings settings='MR::MeshLoadSettings{}')
 
Mesh fromBinaryStl (os.PathLike file, MeshLoadSettings settings='MR::MeshLoadSettings{}')
 
Mesh fromBinaryStl (typing.Any in_, MeshLoadSettings settings='MR::MeshLoadSettings{}')
 
Mesh fromCtm (os.PathLike file, MeshLoadSettings settings='MR::MeshLoadSettings{}')
 
Mesh fromCtm (typing.Any in_, MeshLoadSettings settings='MR::MeshLoadSettings{}')
 
Mesh fromDxf (os.PathLike path, MeshLoadSettings settings='MR::MeshLoadSettings{}')
 
Mesh fromDxf (typing.Any in_, MeshLoadSettings settings='MR::MeshLoadSettings{}')
 
Mesh fromMrmesh (os.PathLike file, MeshLoadSettings settings='MR::MeshLoadSettings{}')
 
Mesh fromMrmesh (typing.Any in_, MeshLoadSettings settings='MR::MeshLoadSettings{}')
 
Mesh fromObj (os.PathLike file, MeshLoadSettings settings='MR::MeshLoadSettings{}')
 
Mesh fromObj (typing.Any in_, MeshLoadSettings settings='MR::MeshLoadSettings{}')
 
Mesh fromOff (os.PathLike file, MeshLoadSettings settings='MR::MeshLoadSettings{}')
 
Mesh fromOff (typing.Any in_, MeshLoadSettings settings='MR::MeshLoadSettings{}')
 
Mesh fromPly (os.PathLike file, MeshLoadSettings settings='MR::MeshLoadSettings{}')
 
Mesh fromPly (typing.Any in_, MeshLoadSettings settings='MR::MeshLoadSettings{}')
 
std_vector_MeshLoad_NamedMesh fromSceneObjFile (os.PathLike file, bool combineAllObjects, MeshLoad.ObjLoadSettings settings='MR::MeshLoad::ObjLoadSettings{}')
 
std_vector_MeshLoad_NamedMesh fromSceneObjFile (str data, int size, bool combineAllObjects, os.PathLike dir, MeshLoad.ObjLoadSettings settings='MR::MeshLoad::ObjLoadSettings{}')
 
std_vector_MeshLoad_NamedMesh fromSceneObjFile (typing.Any in_, bool combineAllObjects, os.PathLike dir, MeshLoad.ObjLoadSettings settings='MR::MeshLoad::ObjLoadSettings{}')
 
Object fromSceneStepFile (os.PathLike path, MeshLoadSettings settings='MR::MeshLoadSettings{}')
 
Object fromSceneStepFile (typing.Any in_, MeshLoadSettings settings='MR::MeshLoadSettings{}')
 
Mesh fromStep (os.PathLike path, MeshLoadSettings settings='MR::MeshLoadSettings{}')
 
Mesh fromStep (typing.Any in_, MeshLoadSettings settings='MR::MeshLoadSettings{}')
 
LoadedObjects loadObjectFromObj (os.PathLike file, func_bool_from_float cb='MR::ProgressCallback{}')
 

Detailed Description

This is a namespace.

Member Function Documentation

◆ fromAnyStl() [1/2]

Mesh meshlib.mrmeshpy.MeshLoad.fromAnyStl ( os.PathLike file,
MeshLoadSettings settings = 'MR::MeshLoadSettings{}' )
static
loads mesh from file in any .STL format: both binary and ASCII

◆ fromAnyStl() [2/2]

Mesh meshlib.mrmeshpy.MeshLoad.fromAnyStl ( typing.Any in_,
MeshLoadSettings settings = 'MR::MeshLoadSettings{}' )
static
loads mesh from stream in any .STL format: both binary and ASCII;
important on Windows: in stream must be open in binary mode

◆ fromAnySupportedFormat() [1/2]

Mesh meshlib.mrmeshpy.MeshLoad.fromAnySupportedFormat ( os.PathLike file,
MeshLoadSettings settings = 'MR::MeshLoadSettings{}' )
static
loads mesh from file in the format detected from file extension

◆ fromAnySupportedFormat() [2/2]

Mesh meshlib.mrmeshpy.MeshLoad.fromAnySupportedFormat ( typing.Any in_,
str extension,
MeshLoadSettings settings = 'MR::MeshLoadSettings{}' )
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

◆ fromASCIIStl() [1/2]

Mesh meshlib.mrmeshpy.MeshLoad.fromASCIIStl ( os.PathLike file,
MeshLoadSettings settings = 'MR::MeshLoadSettings{}' )
static
loads mesh from file in textual .STL format

◆ fromASCIIStl() [2/2]

Mesh meshlib.mrmeshpy.MeshLoad.fromASCIIStl ( typing.Any in_,
MeshLoadSettings settings = 'MR::MeshLoadSettings{}' )
static
loads mesh from stream in textual .STL format

◆ fromBinaryStl() [1/2]

Mesh meshlib.mrmeshpy.MeshLoad.fromBinaryStl ( os.PathLike file,
MeshLoadSettings settings = 'MR::MeshLoadSettings{}' )
static
loads mesh from file in binary .STL format

◆ fromBinaryStl() [2/2]

Mesh meshlib.mrmeshpy.MeshLoad.fromBinaryStl ( typing.Any in_,
MeshLoadSettings settings = 'MR::MeshLoadSettings{}' )
static
loads mesh from stream in binary .STL format;
important on Windows: in stream must be open in binary mode

◆ fromCtm() [1/2]

Mesh meshlib.mrmeshpy.MeshLoad.fromCtm ( os.PathLike file,
MeshLoadSettings settings = 'MR::MeshLoadSettings{}' )
static
loads from .ctm file

◆ fromCtm() [2/2]

Mesh meshlib.mrmeshpy.MeshLoad.fromCtm ( typing.Any in_,
MeshLoadSettings settings = 'MR::MeshLoadSettings{}' )
static

◆ fromDxf() [1/2]

Mesh meshlib.mrmeshpy.MeshLoad.fromDxf ( os.PathLike path,
MeshLoadSettings settings = 'MR::MeshLoadSettings{}' )
static
loads mesh from file in .DXF format;

◆ fromDxf() [2/2]

Mesh meshlib.mrmeshpy.MeshLoad.fromDxf ( typing.Any in_,
MeshLoadSettings settings = 'MR::MeshLoadSettings{}' )
static
loads mesh from stream in .DXF format;

◆ fromMrmesh() [1/2]

Mesh meshlib.mrmeshpy.MeshLoad.fromMrmesh ( os.PathLike file,
MeshLoadSettings settings = 'MR::MeshLoadSettings{}' )
static
loads mesh from file in internal MeshLib format

◆ fromMrmesh() [2/2]

Mesh meshlib.mrmeshpy.MeshLoad.fromMrmesh ( typing.Any in_,
MeshLoadSettings settings = 'MR::MeshLoadSettings{}' )
static
loads mesh from stream in internal MeshLib format;
important on Windows: in stream must be open in binary mode

◆ fromObj() [1/2]

Mesh meshlib.mrmeshpy.MeshLoad.fromObj ( os.PathLike file,
MeshLoadSettings settings = 'MR::MeshLoadSettings{}' )
static
loads mesh from file in .OBJ format

◆ fromObj() [2/2]

Mesh meshlib.mrmeshpy.MeshLoad.fromObj ( typing.Any in_,
MeshLoadSettings settings = 'MR::MeshLoadSettings{}' )
static
loads mesh from stream in .OBJ format;
important on Windows: in stream must be open in binary mode

◆ fromOff() [1/2]

Mesh meshlib.mrmeshpy.MeshLoad.fromOff ( os.PathLike file,
MeshLoadSettings settings = 'MR::MeshLoadSettings{}' )
static
loads mesh from file in .OFF format

◆ fromOff() [2/2]

Mesh meshlib.mrmeshpy.MeshLoad.fromOff ( typing.Any in_,
MeshLoadSettings settings = 'MR::MeshLoadSettings{}' )
static
loads mesh from stream in .OFF format

◆ fromPly() [1/2]

Mesh meshlib.mrmeshpy.MeshLoad.fromPly ( os.PathLike file,
MeshLoadSettings settings = 'MR::MeshLoadSettings{}' )
static
loads mesh from file in .PLY format;

◆ fromPly() [2/2]

Mesh meshlib.mrmeshpy.MeshLoad.fromPly ( typing.Any in_,
MeshLoadSettings settings = 'MR::MeshLoadSettings{}' )
static
loads mesh from stream in .PLY format;
important on Windows: in stream must be open in binary mode

◆ fromSceneObjFile() [1/3]

std_vector_MeshLoad_NamedMesh meshlib.mrmeshpy.MeshLoad.fromSceneObjFile ( os.PathLike file,
bool combineAllObjects,
MeshLoad.ObjLoadSettings settings = 'MR::MeshLoad::ObjLoadSettings{}' )
static
loads meshes from .obj file

◆ fromSceneObjFile() [2/3]

std_vector_MeshLoad_NamedMesh meshlib.mrmeshpy.MeshLoad.fromSceneObjFile ( str data,
int size,
bool combineAllObjects,
os.PathLike dir,
MeshLoad.ObjLoadSettings settings = 'MR::MeshLoad::ObjLoadSettings{}' )
static
loads meshes from memory array with .obj file contents
\\param dir working directory where materials and textures are located

◆ fromSceneObjFile() [3/3]

std_vector_MeshLoad_NamedMesh meshlib.mrmeshpy.MeshLoad.fromSceneObjFile ( typing.Any in_,
bool combineAllObjects,
os.PathLike dir,
MeshLoad.ObjLoadSettings settings = 'MR::MeshLoad::ObjLoadSettings{}' )
static
loads meshes from a stream with .obj file contents
important on Windows: in stream must be open in binary mode
\\param dir working directory where materials and textures are located

◆ fromSceneStepFile() [1/2]

Object meshlib.mrmeshpy.MeshLoad.fromSceneStepFile ( os.PathLike path,
MeshLoadSettings settings = 'MR::MeshLoadSettings{}' )
static
load scene from STEP file using OpenCASCADE

◆ fromSceneStepFile() [2/2]

Object meshlib.mrmeshpy.MeshLoad.fromSceneStepFile ( typing.Any in_,
MeshLoadSettings settings = 'MR::MeshLoadSettings{}' )
static

◆ fromStep() [1/2]

Mesh meshlib.mrmeshpy.MeshLoad.fromStep ( os.PathLike path,
MeshLoadSettings settings = 'MR::MeshLoadSettings{}' )
static
load mesh data from STEP file using OpenCASCADE

◆ fromStep() [2/2]

Mesh meshlib.mrmeshpy.MeshLoad.fromStep ( typing.Any in_,
MeshLoadSettings settings = 'MR::MeshLoadSettings{}' )
static

◆ loadObjectFromObj()

LoadedObjects meshlib.mrmeshpy.MeshLoad.loadObjectFromObj ( os.PathLike file,
func_bool_from_float cb = 'MR::ProgressCallback{}' )
static
reads all objects from .OBJ file

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