MeshLib Documentation
Loading...
Searching...
No Matches
MRMeshBuilderTypes.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRId.h"
4#include <array>
5
6namespace MR
7{
8
10using ThreePoints [[deprecated]] = std::array<Vector3f, 3>;
11
12namespace MeshBuilder
13{
14
17{
18 Triangle() noexcept = default;
19 Triangle( VertId a, VertId b, VertId c, FaceId f ) : f(f) { v[0] = a; v[1] = b; v[2] = c; }
21 FaceId f;
22
23 bool operator==( const Triangle& other )const
24 {
25 return f == other.f && v[0] == other.v[0] && v[1] == other.v[1] && v[2] == other.v[2];
26 }
27};
28
30{
32 FaceBitSet * region = nullptr;
33
35 int shiftFaceId = 0;
36
39
41 int* skippedFaceCount = nullptr;
42};
43
44// each face is surrounded by a closed contour of vertices [fistVertex, lastVertex)
46{
47 int firstVertex = 0;
48 int lastVertex = 0;
49};
50
51} //namespace MeshBuilder
52
53} //namespace MR
Definition MRCameraOrientationPlugin.h:8
std::array< VertId, 3 > ThreeVertIds
three vertex ids describing a triangle topology
Definition MRMesh/MRMeshFwd.h:383
Definition MRMeshBuilderTypes.h:30
FaceBitSet * region
if region is given then on input it contains the faces to be added, and on output the faces failed to...
Definition MRMeshBuilderTypes.h:32
int * skippedFaceCount
optional output: counter of skipped faces during mesh creation
Definition MRMeshBuilderTypes.h:41
int shiftFaceId
this value to be added to every faceId before its inclusion in the topology
Definition MRMeshBuilderTypes.h:35
bool allowNonManifoldEdge
whether to permit non-manifold edges in the resulting topology
Definition MRMeshBuilderTypes.h:38
mesh triangle represented by its three vertices and by its face ID
Definition MRMeshBuilderTypes.h:17
Triangle() noexcept=default
bool operator==(const Triangle &other) const
Definition MRMeshBuilderTypes.h:23
FaceId f
Definition MRMeshBuilderTypes.h:21
ThreeVertIds v
Definition MRMeshBuilderTypes.h:20
Definition MRMeshBuilderTypes.h:46
int lastVertex
Definition MRMeshBuilderTypes.h:48
int firstVertex
Definition MRMeshBuilderTypes.h:47