Blender  V3.3
Nature.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #pragma once
4 
10 namespace Freestyle {
11 
13 namespace Nature {
14 
15 /* XXX Why not using enums??? */
16 /* In order to optimize for space (enum is int) - T.K. */
17 
18 typedef unsigned short VertexNature;
20 static const VertexNature POINT = 0; // 0
22 static const VertexNature S_VERTEX = (1 << 0); // 1
24 static const VertexNature VIEW_VERTEX = (1 << 1); // 2
26 static const VertexNature NON_T_VERTEX = (1 << 2); // 4
28 static const VertexNature T_VERTEX = (1 << 3); // 8
30 static const VertexNature CUSP = (1 << 4); // 16
31 
32 typedef unsigned short EdgeNature;
34 static const EdgeNature NO_FEATURE = 0; // 0
36 static const EdgeNature SILHOUETTE = (1 << 0); // 1
38 static const EdgeNature BORDER = (1 << 1); // 2
40 static const EdgeNature CREASE = (1 << 2); // 4
42 static const EdgeNature RIDGE = (1 << 3); // 8
44 static const EdgeNature VALLEY = (1 << 4); // 16
46 static const EdgeNature SUGGESTIVE_CONTOUR = (1 << 5); // 32
48 static const EdgeNature MATERIAL_BOUNDARY = (1 << 6); // 64
50 static const EdgeNature EDGE_MARK = (1 << 7); // 128
51 
52 } // end of namespace Nature
53 
54 } /* namespace Freestyle */
static const EdgeNature NO_FEATURE
Definition: Nature.h:34
static const EdgeNature BORDER
Definition: Nature.h:38
static const EdgeNature MATERIAL_BOUNDARY
Definition: Nature.h:48
static const VertexNature S_VERTEX
Definition: Nature.h:22
unsigned short VertexNature
Definition: Nature.h:18
static const EdgeNature EDGE_MARK
Definition: Nature.h:50
unsigned short EdgeNature
Definition: Nature.h:32
static const EdgeNature VALLEY
Definition: Nature.h:44
static const VertexNature VIEW_VERTEX
Definition: Nature.h:24
static const EdgeNature CREASE
Definition: Nature.h:40
static const VertexNature T_VERTEX
Definition: Nature.h:28
static const EdgeNature RIDGE
Definition: Nature.h:42
static const VertexNature NON_T_VERTEX
Definition: Nature.h:26
static const VertexNature CUSP
Definition: Nature.h:30
static const EdgeNature SILHOUETTE
Definition: Nature.h:36
static const EdgeNature SUGGESTIVE_CONTOUR
Definition: Nature.h:46
static const VertexNature POINT
Definition: Nature.h:20
inherits from class Rep
Definition: AppCanvas.cpp:18