MeshLib C++ Docs
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
10struct GridSettings
11{
14 Vector2i dim;
15
18 BMap<VertId, size_t> vertIds;
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 };
31 BMap<UndirectedEdgeId, size_t> uedgeIds;
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 };
41 BMap<FaceId, size_t> faceIds;
42};
43
44} // namespace MR
new unsafe MR.BMap_MRVertId_MRUint64T vertIds
new unsafe ref MR.Vector2i dim
new unsafe MR.BMap_MRUndirectedEdgeId_MRUint64T uedgeIds
new unsafe MR.BMap_MRFaceId_MRUint64T faceIds
Definition MRCameraOrientationPlugin.h:8