MeshLib
 
Loading...
Searching...
No Matches
MRDotNet/MRMeshLoad.h
Go to the documentation of this file.
1#pragma once
2#include "MRMeshFwd.h"
3
5
6public value struct ObjLoadSettings
7{
9 bool customXf;
10
13};
14
15public value struct NamedMesh
16{
17 System::String^ name;
25};
26
27public ref class MeshLoad
28{
29public:
31 static List<NamedMesh>^ FromSceneObjFile( System::String^ path, bool combineAllObjects, ObjLoadSettings settings );
32};
33
#define MR_DOTNET_NAMESPACE_BEGIN
Definition MRDotNet/MRMeshFwd.h:42
#define MR_DOTNET_NAMESPACE_END
Definition MRDotNet/MRMeshFwd.h:43
affine transformation: y = A*x + b, where A in VxV, and b in V
Definition MRDotNet/MRAffineXf.h:8
Definition MRDotNet/MRMeshLoad.h:28
static List< NamedMesh > FromSceneObjFile(System::String^ path, bool combineAllObjects, ObjLoadSettings settings)
loads meshes from .obj file
represents a mesh, including topology (connectivity) information and point coordinates,
Definition MRDotNet/MRMesh.h:30
Definition MRDotNet/MRMeshLoad.h:16
System::String name
Definition MRDotNet/MRMeshLoad.h:17
int skippedFaceCount
counter of skipped faces (faces than can't be created), not zero only if ObjLoadSettings....
Definition MRDotNet/MRMeshLoad.h:22
Mesh mesh
Definition MRDotNet/MRMeshLoad.h:18
int duplicatedVertexCount
counter of duplicated vertices (that created for resolve non-manifold geometry)
Definition MRDotNet/MRMeshLoad.h:24
AffineXf3f xf
transform of the loaded mesh, not identity only if ObjLoadSettings.customXf
Definition MRDotNet/MRMeshLoad.h:20
Definition MRDotNet/MRMeshLoad.h:7
bool countSkippedFaces
if true, the number of skipped faces (faces than can't be created) will be counted
Definition MRDotNet/MRMeshLoad.h:12
bool customXf
if true then vertices will be returned relative to some transformation to avoid precision loss
Definition MRDotNet/MRMeshLoad.h:9