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{
10
11
13using ThreePoints [[deprecated]] MR_BIND_IGNORE = std::array<Vector3f, 3>;
14
15namespace MeshBuilder
16{
17
20{
21 Triangle() noexcept = default;
22 Triangle( VertId a, VertId b, VertId c, FaceId f ) : f(f) { v[0] = a; v[1] = b; v[2] = c; }
24 FaceId f;
25
26 bool operator==( const Triangle& other )const
27 {
28 return f == other.f && v[0] == other.v[0] && v[1] == other.v[1] && v[2] == other.v[2];
29 }
30};
31
33{
35 FaceBitSet * region = nullptr;
36
38 int shiftFaceId = 0;
39
42
44 int* skippedFaceCount = nullptr;
45};
46
49{
50 int firstVertex = 0;
51 int lastVertex = 0;
52};
53
54}
55
56}
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:35
int * skippedFaceCount
optional output: counter of skipped faces during mesh creation
Definition MRMeshBuilderTypes.h:44
Triangle() noexcept=default
std::array< VertId, 3 > ThreeVertIds
three vertex ids describing a triangle with the corners in vertices given by their ids
Definition MRMeshFwd.h:519
std::array< Vector3f, 3 > MR_BIND_IGNORE
Definition MRMeshBuilderTypes.h:13
int shiftFaceId
this value to be added to every faceId before its inclusion in the topology
Definition MRMeshBuilderTypes.h:38
bool operator==(const Triangle &other) const
Definition MRMeshBuilderTypes.h:26
FaceId f
Definition MRMeshBuilderTypes.h:24
bool allowNonManifoldEdge
whether to permit non-manifold edges in the resulting topology
Definition MRMeshBuilderTypes.h:41
int lastVertex
Definition MRMeshBuilderTypes.h:51
ThreeVertIds v
Definition MRMeshBuilderTypes.h:23
int firstVertex
Definition MRMeshBuilderTypes.h:50
@ other
Angle, normally float. Measure in radians.
Definition MRFeatureObject.h:27
Building topologies by triangles.
Definition MRIdentifyVertices.h:16
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRMeshBuilderTypes.h:33
each face is surrounded by a closed contour of vertices [fistVertex, lastVertex)
Definition MRMeshBuilderTypes.h:49