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