MeshLib C++ Docs
Loading...
Searching...
No Matches
MRTriMesh.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRVector.h"
4#include "MRId.h"
5#include "MRVector3.h"
6
7namespace MR
8{
11
12
15struct [[nodiscard]] TriMesh
16{
17 Triangulation tris;
18 VertCoords points;
19
21 [[nodiscard]] MRMESH_API static TriMesh fromMesh( const Mesh & mesh );
22
24 [[nodiscard]] MRMESH_API static TriMesh fromMesh( Mesh && mesh );
25};
26
27}
#define MRMESH_API
Definition MRMeshFwd.h:85
Triangulation tris
Definition MRTriMesh.h:17
VertCoords points
Definition MRTriMesh.h:18
static TriMesh fromMesh(Mesh &&mesh)
constructs TriMesh from valid triangles of given mesh; points of the mesh will be moved in the result
static TriMesh fromMesh(const Mesh &mesh)
constructs TriMesh from valid triangles of given mesh; invalid faces get invalid vertex ids in the re...
Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
Definition MRCameraOrientationPlugin.h:8
Definition MRMesh.h:24
Definition MRTriMesh.h:16