MeshLib C# Docs
Loading...
Searching...
No Matches
MR.MeshLoad Class Reference

Public Types

typedef Expected< MR::Mesh >(*)(const std::filesystem::path &, const MeshLoadSettingsMeshFileLoader)
 
typedef Expected< MR::Mesh >(*)(std::istream &, const MeshLoadSettingsMeshStreamLoader)
 
typedef Expected< MR::Mesh >(*)(const std::filesystem::path &, const MeshLoadSettingsMeshFileLoader)
 
typedef Expected< MR::Mesh >(*)(std::istream &, const MeshLoadSettingsMeshStreamLoader)
 

Static Public Member Functions

static unsafe MR.Mesh fromCtm (string file, MR.Const_MeshLoadSettings? settings=null)
 loads from .ctm file Generated from function MR.MeshLoad.fromCtm. Parameter settings defaults to {}.
 
static unsafe MR.Mesh fromCtm (MR.Std.Istream in_, MR.Const_MeshLoadSettings? settings=null)
 Generated from function MR.MeshLoad.fromCtm. Parameter settings defaults to {}.
 
static unsafe MR.Mesh fromStep (string path, MR.Const_MeshLoadSettings? settings=null)
 load mesh data from STEP file using OpenCASCADE Generated from function MR.MeshLoad.fromStep. Parameter settings defaults to {}.
 
static unsafe MR.Mesh fromStep (MR.Std.Istream in_, MR.Const_MeshLoadSettings? settings=null)
 Generated from function MR.MeshLoad.fromStep. Parameter settings defaults to {}.
 
static unsafe MR.Object fromSceneStepFile (string path, MR.Const_MeshLoadSettings? settings=null)
 load scene from STEP file using OpenCASCADE Generated from function MR.MeshLoad.fromSceneStepFile. Parameter settings defaults to {}.
 
static unsafe MR.Object fromSceneStepFile (MR.Std.Istream in_, MR.Const_MeshLoadSettings? settings=null)
 Generated from function MR.MeshLoad.fromSceneStepFile. Parameter settings defaults to {}.
 
static unsafe MR.Mesh fromMrmesh (string file, MR.Const_MeshLoadSettings? settings=null)
 loads mesh from file in internal MeshLib format Generated from function MR.MeshLoad.fromMrmesh. Parameter settings defaults to {}.
 
static unsafe MR.Mesh fromMrmesh (MR.Std.Istream in_, MR.Const_MeshLoadSettings? settings=null)
 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. Parameter settings defaults to {}.
 
static unsafe MR.Mesh fromOff (string file, MR.Const_MeshLoadSettings? settings=null)
 loads mesh from file in .OFF format Generated from function MR.MeshLoad.fromOff. Parameter settings defaults to {}.
 
static unsafe MR.Mesh fromOff (MR.Std.Istream in_, MR.Const_MeshLoadSettings? settings=null)
 loads mesh from stream in .OFF format Generated from function MR.MeshLoad.fromOff. Parameter settings defaults to {}.
 
static unsafe MR.Mesh fromObj (string file, MR.Const_MeshLoadSettings? settings=null)
 loads mesh from file in .OBJ format Generated from function MR.MeshLoad.fromObj. Parameter settings defaults to {}.
 
static unsafe MR.Mesh fromObj (MR.Std.Istream in_, MR.Const_MeshLoadSettings? settings=null)
 loads mesh from stream in .OBJ format; important on Windows: in stream must be open in binary mode Generated from function MR.MeshLoad.fromObj. Parameter settings defaults to {}.
 
static unsafe MR.Mesh fromAnyStl (string file, MR.Const_MeshLoadSettings? settings=null)
 loads mesh from file in any .STL format: both binary and ASCII Generated from function MR.MeshLoad.fromAnyStl. Parameter settings defaults to {}.
 
static unsafe MR.Mesh fromAnyStl (MR.Std.Istream in_, MR.Const_MeshLoadSettings? settings=null)
 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. Parameter settings defaults to {}.
 
static unsafe MR.Mesh fromBinaryStl (string file, MR.Const_MeshLoadSettings? settings=null)
 loads mesh from file in binary .STL format Generated from function MR.MeshLoad.fromBinaryStl. Parameter settings defaults to {}.
 
static unsafe MR.Mesh fromBinaryStl (MR.Std.Istream in_, MR.Const_MeshLoadSettings? settings=null)
 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. Parameter settings defaults to {}.
 
static unsafe MR.Mesh fromASCIIStl (string file, MR.Const_MeshLoadSettings? settings=null)
 loads mesh from file in textual .STL format Generated from function MR.MeshLoad.fromASCIIStl. Parameter settings defaults to {}.
 
static unsafe MR.Mesh fromASCIIStl (MR.Std.Istream in_, MR.Const_MeshLoadSettings? settings=null)
 loads mesh from stream in textual .STL format Generated from function MR.MeshLoad.fromASCIIStl. Parameter settings defaults to {}.
 
static unsafe MR.Mesh fromPly (string file, MR.Const_MeshLoadSettings? settings=null)
 loads mesh from file in .PLY format; Generated from function MR.MeshLoad.fromPly. Parameter settings defaults to {}.
 
static unsafe MR.Mesh fromPly (MR.Std.Istream in_, MR.Const_MeshLoadSettings? settings=null)
 loads mesh from stream in .PLY format; important on Windows: in stream must be open in binary mode Generated from function MR.MeshLoad.fromPly. Parameter settings defaults to {}.
 
static unsafe MR.Mesh fromDxf (string path, MR.Const_MeshLoadSettings? settings=null)
 loads mesh from file in .DXF format; Generated from function MR.MeshLoad.fromDxf. Parameter settings defaults to {}.
 
static unsafe MR.Mesh fromDxf (MR.Std.Istream in_, MR.Const_MeshLoadSettings? settings=null)
 loads mesh from stream in .DXF format; Generated from function MR.MeshLoad.fromDxf. Parameter settings defaults to {}.
 
static unsafe MR.Mesh fromAnySupportedFormat (string file, MR.Const_MeshLoadSettings? settings=null)
 loads mesh from file in the format detected from file extension Generated from function MR.MeshLoad.fromAnySupportedFormat. Parameter settings defaults to {}.
 
static unsafe MR.Mesh fromAnySupportedFormat (MR.Std.Istream in_, string extension, MR.Const_MeshLoadSettings? settings=null)
 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. Parameter settings defaults to {}.
 
static unsafe MR.Std.Vector_MRMeshLoadNamedMesh fromSceneObjFile (string file, bool combineAllObjects, MR.MeshLoad.Const_ObjLoadSettings? settings=null)
 loads meshes from .obj file Generated from function MR.MeshLoad.fromSceneObjFile. Parameter settings defaults to {}.
 
static unsafe MR.Std.Vector_MRMeshLoadNamedMesh fromSceneObjFile (MR.Std.Istream in_, bool combineAllObjects, string dir, MR.MeshLoad.Const_ObjLoadSettings? settings=null)
 loads meshes from a stream with .obj file contents important on Windows: in stream must be open in binary mode
 
static unsafe MR.Std.Vector_MRMeshLoadNamedMesh fromSceneObjFile (byte? data, ulong size, bool combineAllObjects, string dir, MR.MeshLoad.Const_ObjLoadSettings? settings=null)
 loads meshes from memory array with .obj file contents
 
static unsafe MR.LoadedObjects loadObjectFromObj (string file, MR.Std.Const_Function_BoolFuncFromFloat? cb=null)
 reads all objects from .OBJ file Generated from function MR.MeshLoad.loadObjectFromObj. Parameter cb defaults to {}.
 

Member Function Documentation

◆ fromSceneObjFile() [1/2]

static unsafe MR.Std.Vector_MRMeshLoadNamedMesh MR.MeshLoad.fromSceneObjFile ( byte? data,
ulong size,
bool combineAllObjects,
string dir,
MR.MeshLoad.Const_ObjLoadSettings? settings = null )
inlinestatic

loads meshes from memory array with .obj file contents

Parameters
dirworking directory where materials and textures are located Generated from function MR.MeshLoad.fromSceneObjFile. Parameter settings defaults to {}.

◆ fromSceneObjFile() [2/2]

static unsafe MR.Std.Vector_MRMeshLoadNamedMesh MR.MeshLoad.fromSceneObjFile ( MR.Std.Istream in_,
bool combineAllObjects,
string dir,
MR.MeshLoad.Const_ObjLoadSettings? settings = null )
inlinestatic

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. Parameter settings defaults to {}.

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