MeshLib Documentation
Loading...
Searching...
No Matches
MRGridSettings.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRVector2.h"
4#include "MRBuffer.h"
5
6namespace MR
7{
8
11{
14 Vector2i dim;
15
19
20 enum class EdgeType
21 {
22 Horizontal, // (x,y) - (x+1,y)
23 Vertical, // (x,y) - (x,y+1)
24 DiagonalA, // (x,y) - (x+1,y+1)
25 DiagonalB // (x+1,y) - (x,y+1)
26 // both DiagonalA and DiagonalB cannot return valid edges
27 };
32
33 enum class TriType
34 {
35 Lower, // (x,y), (x+1,y), (x+1,y+1) if DiagonalA or (x,y), (x+1,y), (x,y+1) if DiagonalB
36 Upper // (x,y), (x+1,y+1), (x,y+1) if DiagonalA or (x+1,y), (x+1,y+1), (x,y+1) if DiagonalB
37 };
42};
43
44} // namespace MR
Definition MRCameraOrientationPlugin.h:8
flat map: I -> T
Definition MRBuffer.h:143
settings defining regular grid, where each quadrangular cell is split on two triangles in one of two ...
Definition MRGridSettings.h:11
Vector2i dim
Definition MRGridSettings.h:14
EdgeType
Definition MRGridSettings.h:21
BMap< FaceId, size_t > faceIds
Definition MRGridSettings.h:41
BMap< VertId, size_t > vertIds
Definition MRGridSettings.h:18
BMap< UndirectedEdgeId, size_t > uedgeIds
Definition MRGridSettings.h:31
TriType
Definition MRGridSettings.h:34