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

Classes

class  ConstNamedMesh
class  ConstObjLoadSettings
class  ConstStepLoadSettings
class  NamedMesh
class  ObjLoadSettings
class  StepLoadSettings

Static Public Member Functions

Mesh fromASCIIStl (os.PathLike|str|bytes file, ConstMeshLoadSettings settings=...)
Mesh fromASCIIStl (typing.Any in_, ConstMeshLoadSettings settings=...)
TriMesh fromASCIIStlAsTriMesh (os.PathLike|str|bytes file, ConstMeshLoadSettings settings=...)
TriMesh fromASCIIStlAsTriMesh (typing.Any in_, ConstMeshLoadSettings settings=...)
Mesh fromAnyStl (os.PathLike|str|bytes file, ConstMeshLoadSettings settings=...)
Mesh fromAnyStl (typing.Any in_, ConstMeshLoadSettings settings=...)
TriMesh fromAnyStlAsTriMesh (os.PathLike|str|bytes file, ConstMeshLoadSettings settings=...)
TriMesh fromAnyStlAsTriMesh (typing.Any in_, ConstMeshLoadSettings settings=...)
Mesh fromAnySupportedFormat (os.PathLike|str|bytes file, ConstMeshLoadSettings settings=...)
Mesh fromAnySupportedFormat (typing.Any in_, str extension, ConstMeshLoadSettings settings=...)
Mesh fromBinaryStl (os.PathLike|str|bytes file, ConstMeshLoadSettings settings=...)
Mesh fromBinaryStl (typing.Any in_, ConstMeshLoadSettings settings=...)
TriMesh fromBinaryStlAsTriMesh (os.PathLike|str|bytes file, ConstMeshLoadSettings settings=...)
TriMesh fromBinaryStlAsTriMesh (typing.Any in_, ConstMeshLoadSettings settings=...)
Mesh fromCtm (os.PathLike|str|bytes file, ConstMeshLoadSettings settings=...)
Mesh fromCtm (typing.Any in_, ConstMeshLoadSettings settings=...)
Mesh fromDrc (os.PathLike|str|bytes file, ConstMeshLoadSettings settings=...)
Mesh fromDrc (typing.Any in_, ConstMeshLoadSettings settings=...)
Mesh fromDxf (os.PathLike|str|bytes path, ConstMeshLoadSettings settings=...)
Mesh fromDxf (typing.Any in_, ConstMeshLoadSettings settings=...)
TriMesh fromDxfAsTriMesh (os.PathLike|str|bytes path, ConstMeshLoadSettings settings=...)
TriMesh fromDxfAsTriMesh (typing.Any in_, ConstMeshLoadSettings settings=...)
Mesh fromMrmesh (os.PathLike|str|bytes file, ConstMeshLoadSettings settings=...)
Mesh fromMrmesh (typing.Any in_, ConstMeshLoadSettings settings=...)
Mesh fromObj (os.PathLike|str|bytes file, ConstMeshLoadSettings settings=...)
Mesh fromObj (typing.Any in_, ConstMeshLoadSettings settings=...)
TriMesh fromObjAsTriMesh (os.PathLike|str|bytes file, ConstMeshLoadSettings settings=...)
TriMesh fromObjAsTriMesh (typing.Any in_, ConstMeshLoadSettings settings=...)
Mesh fromOff (os.PathLike|str|bytes file, ConstMeshLoadSettings settings=...)
Mesh fromOff (typing.Any in_, ConstMeshLoadSettings settings=...)
FaceSoup fromOffAsFaceSoup (os.PathLike|str|bytes file, ConstMeshLoadSettings settings=...)
FaceSoup fromOffAsFaceSoup (typing.Any in_, ConstMeshLoadSettings settings=...)
Mesh fromPly (os.PathLike|str|bytes file, ConstMeshLoadSettings settings=...)
Mesh fromPly (typing.Any in_, ConstMeshLoadSettings settings=...)
TriMesh fromPlyAsTriMesh (os.PathLike|str|bytes file, ConstMeshLoadSettings settings=...)
TriMesh fromPlyAsTriMesh (typing.Any in_, ConstMeshLoadSettings settings=...)
std_vector_MeshLoad_NamedMesh fromSceneObjFile (os.PathLike|str|bytes file, bool combineAllObjects, MeshLoad.ConstObjLoadSettings settings=...)
std_vector_MeshLoad_NamedMesh fromSceneObjFile (str data, int size, bool combineAllObjects, os.PathLike|str|bytes dir, MeshLoad.ConstObjLoadSettings settings=...)
std_vector_MeshLoad_NamedMesh fromSceneObjFile (typing.Any in_, bool combineAllObjects, os.PathLike|str|bytes dir, MeshLoad.ConstObjLoadSettings settings=...)
Object fromSceneStepFile (os.PathLike|str|bytes path, ConstMeshLoadSettings settings=..., MeshLoad.ConstStepLoadSettings stepSettings=...)
Object fromSceneStepFile (typing.Any in_, ConstMeshLoadSettings settings=..., MeshLoad.ConstStepLoadSettings stepSettings=...)
Mesh fromStep (os.PathLike|str|bytes path, ConstMeshLoadSettings settings=..., MeshLoad.ConstStepLoadSettings stepSettings=...)
Mesh fromStep (typing.Any in_, ConstMeshLoadSettings settings=..., MeshLoad.ConstStepLoadSettings stepSettings=...)
LoadedObjects loadObjectFromObj (os.PathLike|str|bytes file, Const_func_bool_from_float cb='{}')

Detailed Description

This is a namespace.

Member Function Documentation

◆ fromAnyStl() [1/2]

Mesh mrmeshpy.MeshLoad.fromAnyStl ( os.PathLike | str | bytes file,
ConstMeshLoadSettings settings = ... )
static
loads mesh from file in any .STL format: both binary and ASCII

◆ fromAnyStl() [2/2]

Mesh mrmeshpy.MeshLoad.fromAnyStl ( typing.Any in_,
ConstMeshLoadSettings 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

◆ fromAnyStlAsTriMesh() [1/2]

TriMesh mrmeshpy.MeshLoad.fromAnyStlAsTriMesh ( os.PathLike | str | bytes file,
ConstMeshLoadSettings settings = ... )
static
loads mesh as TriMesh (without building topology, so no vertex is duplicated) from file in any .STL format: both binary and ASCII;
settings.skippedFaceCount and settings.duplicatedVertexCount are not used

◆ fromAnyStlAsTriMesh() [2/2]

TriMesh mrmeshpy.MeshLoad.fromAnyStlAsTriMesh ( typing.Any in_,
ConstMeshLoadSettings settings = ... )
static
loads mesh as TriMesh (without building topology, so no vertex is duplicated) from stream in any .STL format: both binary and ASCII;
important on Windows: in stream must be open in binary mode;
settings.skippedFaceCount and settings.duplicatedVertexCount are not used

◆ fromAnySupportedFormat() [1/2]

Mesh mrmeshpy.MeshLoad.fromAnySupportedFormat ( os.PathLike | str | bytes file,
ConstMeshLoadSettings settings = ... )
static
loads mesh from file in the format detected from file extension

◆ fromAnySupportedFormat() [2/2]

Mesh mrmeshpy.MeshLoad.fromAnySupportedFormat ( typing.Any in_,
str extension,
ConstMeshLoadSettings 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

◆ fromASCIIStl() [1/2]

Mesh mrmeshpy.MeshLoad.fromASCIIStl ( os.PathLike | str | bytes file,
ConstMeshLoadSettings settings = ... )
static
loads mesh from file in textual .STL format

◆ fromASCIIStl() [2/2]

Mesh mrmeshpy.MeshLoad.fromASCIIStl ( typing.Any in_,
ConstMeshLoadSettings settings = ... )
static
loads mesh from stream in textual .STL format

◆ fromASCIIStlAsTriMesh() [1/2]

TriMesh mrmeshpy.MeshLoad.fromASCIIStlAsTriMesh ( os.PathLike | str | bytes file,
ConstMeshLoadSettings settings = ... )
static
loads mesh as TriMesh (without building topology, so no vertex is duplicated) from file in textual .STL format;
settings.skippedFaceCount and settings.duplicatedVertexCount are not used

◆ fromASCIIStlAsTriMesh() [2/2]

TriMesh mrmeshpy.MeshLoad.fromASCIIStlAsTriMesh ( typing.Any in_,
ConstMeshLoadSettings settings = ... )
static
loads mesh as TriMesh (without building topology, so no vertex is duplicated) from stream in textual .STL format;
settings.skippedFaceCount and settings.duplicatedVertexCount are not used

◆ fromBinaryStl() [1/2]

Mesh mrmeshpy.MeshLoad.fromBinaryStl ( os.PathLike | str | bytes file,
ConstMeshLoadSettings settings = ... )
static
loads mesh from file in binary .STL format

◆ fromBinaryStl() [2/2]

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

◆ fromBinaryStlAsTriMesh() [1/2]

TriMesh mrmeshpy.MeshLoad.fromBinaryStlAsTriMesh ( os.PathLike | str | bytes file,
ConstMeshLoadSettings settings = ... )
static
loads mesh as TriMesh (without building topology, so no vertex is duplicated) from file in binary .STL format;
settings.skippedFaceCount and settings.duplicatedVertexCount are not used

◆ fromBinaryStlAsTriMesh() [2/2]

TriMesh mrmeshpy.MeshLoad.fromBinaryStlAsTriMesh ( typing.Any in_,
ConstMeshLoadSettings settings = ... )
static
loads mesh as TriMesh (without building topology, so no vertex is duplicated) from stream in binary .STL format;
important on Windows: in stream must be open in binary mode;
settings.skippedFaceCount and settings.duplicatedVertexCount are not used

◆ fromCtm() [1/2]

Mesh mrmeshpy.MeshLoad.fromCtm ( os.PathLike | str | bytes file,
ConstMeshLoadSettings settings = ... )
static
loads from .ctm file

◆ fromCtm() [2/2]

Mesh mrmeshpy.MeshLoad.fromCtm ( typing.Any in_,
ConstMeshLoadSettings settings = ... )
static

◆ fromDrc() [1/2]

Mesh mrmeshpy.MeshLoad.fromDrc ( os.PathLike | str | bytes file,
ConstMeshLoadSettings 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

◆ fromDrc() [2/2]

Mesh mrmeshpy.MeshLoad.fromDrc ( typing.Any in_,
ConstMeshLoadSettings settings = ... )
static

◆ fromDxf() [1/2]

Mesh mrmeshpy.MeshLoad.fromDxf ( os.PathLike | str | bytes path,
ConstMeshLoadSettings settings = ... )
static
loads mesh from file in .DXF format;

◆ fromDxf() [2/2]

Mesh mrmeshpy.MeshLoad.fromDxf ( typing.Any in_,
ConstMeshLoadSettings settings = ... )
static
loads mesh from stream in .DXF format;

◆ fromDxfAsTriMesh() [1/2]

TriMesh mrmeshpy.MeshLoad.fromDxfAsTriMesh ( os.PathLike | str | bytes path,
ConstMeshLoadSettings settings = ... )
static
loads mesh as TriMesh (without building topology, so no vertex is duplicated) from file in .DXF format;
settings.skippedFaceCount and settings.duplicatedVertexCount are not used

◆ fromDxfAsTriMesh() [2/2]

TriMesh mrmeshpy.MeshLoad.fromDxfAsTriMesh ( typing.Any in_,
ConstMeshLoadSettings settings = ... )
static
loads mesh as TriMesh (without building topology, so no vertex is duplicated) from stream in .DXF format;
settings.skippedFaceCount and settings.duplicatedVertexCount are not used

◆ fromMrmesh() [1/2]

Mesh mrmeshpy.MeshLoad.fromMrmesh ( os.PathLike | str | bytes file,
ConstMeshLoadSettings settings = ... )
static
loads mesh from file in internal MeshLib format

◆ fromMrmesh() [2/2]

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

◆ fromObj() [1/2]

Mesh mrmeshpy.MeshLoad.fromObj ( os.PathLike | str | bytes file,
ConstMeshLoadSettings settings = ... )
static
loads mesh from file in .OBJ format

◆ fromObj() [2/2]

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

◆ fromObjAsTriMesh() [1/2]

TriMesh mrmeshpy.MeshLoad.fromObjAsTriMesh ( os.PathLike | str | bytes file,
ConstMeshLoadSettings settings = ... )
static
loads mesh as TriMesh (without building topology, so no vertex is duplicated) from file in .OBJ format;
settings.skippedFaceCount and settings.duplicatedVertexCount are not used

◆ fromObjAsTriMesh() [2/2]

TriMesh mrmeshpy.MeshLoad.fromObjAsTriMesh ( typing.Any in_,
ConstMeshLoadSettings settings = ... )
static
loads mesh as TriMesh (without building topology, so no vertex is duplicated) from stream in .OBJ format;
important on Windows: in stream must be open in binary mode;
settings.skippedFaceCount and settings.duplicatedVertexCount are not used

◆ fromOff() [1/2]

Mesh mrmeshpy.MeshLoad.fromOff ( os.PathLike | str | bytes file,
ConstMeshLoadSettings settings = ... )
static
loads mesh from file in textual or binary .OFF format

◆ fromOff() [2/2]

Mesh mrmeshpy.MeshLoad.fromOff ( typing.Any in_,
ConstMeshLoadSettings settings = ... )
static
loads mesh from stream in textual or binary .OFF format
important on Windows: in stream must be open in binary mode

◆ fromOffAsFaceSoup() [1/2]

FaceSoup mrmeshpy.MeshLoad.fromOffAsFaceSoup ( os.PathLike | str | bytes file,
ConstMeshLoadSettings settings = ... )
static
loads polygons (without triangulation and topology building) from file in textual or binary .OFF format;
settings.skippedFaceCount and settings.duplicatedVertexCount are not used

◆ fromOffAsFaceSoup() [2/2]

FaceSoup mrmeshpy.MeshLoad.fromOffAsFaceSoup ( typing.Any in_,
ConstMeshLoadSettings settings = ... )
static
loads polygons (without triangulation and topology building) from stream in textual or binary .OFF format;
important on Windows: in stream must be open in binary mode;
settings.skippedFaceCount and settings.duplicatedVertexCount are not used

◆ fromPly() [1/2]

Mesh mrmeshpy.MeshLoad.fromPly ( os.PathLike | str | bytes file,
ConstMeshLoadSettings settings = ... )
static
loads mesh from file in .PLY format;

◆ fromPly() [2/2]

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

◆ fromPlyAsTriMesh() [1/2]

TriMesh mrmeshpy.MeshLoad.fromPlyAsTriMesh ( os.PathLike | str | bytes file,
ConstMeshLoadSettings settings = ... )
static
loads mesh as TriMesh (without building topology, so no vertex is duplicated) from file in .PLY format;
settings.skippedFaceCount and settings.duplicatedVertexCount are not used

◆ fromPlyAsTriMesh() [2/2]

TriMesh mrmeshpy.MeshLoad.fromPlyAsTriMesh ( typing.Any in_,
ConstMeshLoadSettings settings = ... )
static
loads mesh as TriMesh (without building topology, so no vertex is duplicated) from stream in .PLY format;
important on Windows: in stream must be open in binary mode;
settings.skippedFaceCount and settings.duplicatedVertexCount are not used

◆ fromSceneObjFile() [1/3]

std_vector_MeshLoad_NamedMesh mrmeshpy.MeshLoad.fromSceneObjFile ( os.PathLike | str | bytes file,
bool combineAllObjects,
MeshLoad.ConstObjLoadSettings settings = ... )
static
loads meshes from .obj file

◆ fromSceneObjFile() [2/3]

std_vector_MeshLoad_NamedMesh mrmeshpy.MeshLoad.fromSceneObjFile ( str data,
int size,
bool combineAllObjects,
os.PathLike | str | bytes dir,
MeshLoad.ConstObjLoadSettings settings = ... )
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 mrmeshpy.MeshLoad.fromSceneObjFile ( typing.Any in_,
bool combineAllObjects,
os.PathLike | str | bytes dir,
MeshLoad.ConstObjLoadSettings settings = ... )
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 mrmeshpy.MeshLoad.fromSceneStepFile ( os.PathLike | str | bytes path,
ConstMeshLoadSettings settings = ...,
MeshLoad.ConstStepLoadSettings stepSettings = ... )
static
load scene from STEP file using OpenCASCADE

◆ fromSceneStepFile() [2/2]

Object mrmeshpy.MeshLoad.fromSceneStepFile ( typing.Any in_,
ConstMeshLoadSettings settings = ...,
MeshLoad.ConstStepLoadSettings stepSettings = ... )
static

◆ fromStep() [1/2]

Mesh mrmeshpy.MeshLoad.fromStep ( os.PathLike | str | bytes path,
ConstMeshLoadSettings settings = ...,
MeshLoad.ConstStepLoadSettings stepSettings = ... )
static
load mesh data from STEP file using OpenCASCADE

◆ fromStep() [2/2]

Mesh mrmeshpy.MeshLoad.fromStep ( typing.Any in_,
ConstMeshLoadSettings settings = ...,
MeshLoad.ConstStepLoadSettings stepSettings = ... )
static

◆ loadObjectFromObj()

LoadedObjects mrmeshpy.MeshLoad.loadObjectFromObj ( os.PathLike | str | bytes file,
Const_func_bool_from_float cb = '{}' )
static
reads all objects from .OBJ file

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