MeshLib C++ Docs
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]] MR_BIND_IGNORE = std::array<Vector3f, 3>;
11
12namespace MeshBuilder
13{
14
16struct Triangle
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
29struct BuildSettings
30{
32 FaceBitSet * region = nullptr;
33
35 int shiftFaceId = 0;
36
38 bool allowNonManifoldEdge = true;
39
41 int* skippedFaceCount = nullptr;
42};
43
44// each face is surrounded by a closed contour of vertices [fistVertex, lastVertex)
45struct VertSpan
46{
47 int firstVertex = 0;
48 int lastVertex = 0;
49};
50
51} //namespace MeshBuilder
52
53} //namespace MR
new unsafe MR.? FaceBitSet region
new unsafe MR.Misc.? Box< int > skippedFaceCount
new unsafe ref bool allowNonManifoldEdge
new unsafe ref int shiftFaceId
Definition MRCameraOrientationPlugin.h:8