Blender V5.3
DNA_curveprofile_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2019 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "BLI_enum_flags.hh"
12
13#include "DNA_vec_types.h"
14
15namespace blender {
16
19 PROF_SELECT = (1 << 0),
20 PROF_H1_SELECT = (1 << 1),
21 PROF_H2_SELECT = (1 << 2),
22 PROF_ACTIVE = (1 << 3),
23 PROF_H1_ACTIVE = (1 << 4),
24 PROF_H2_ACTIVE = (1 << 5),
25};
27
28
30 PROF_USE_CLIP = (1 << 0), /* Keep control points inside bounding rectangle. */
31 /* PROF_SYMMETRY_MODE = (1 << 1), Unused for now. */
32 PROF_SAMPLE_STRAIGHT_EDGES = (1 << 2), /* Sample extra points on straight edges. */
33 PROF_SAMPLE_EVEN_LENGTHS = (1 << 3), /* Put segments evenly spaced along the path. */
34 PROF_DIRTY_PRESET = (1 << 4), /* Marks when the dynamic preset has been changed. */
35};
37
39 PROF_PRESET_LINE = 0, /* Default simple line between end points. */
40 PROF_PRESET_SUPPORTS = 1, /* Support loops for a regular curved profile. */
41 PROF_PRESET_CORNICE = 2, /* Molding type example. */
42 PROF_PRESET_CROWN = 3, /* Second molding example. */
43 PROF_PRESET_STEPS = 4, /* Dynamic number of steps defined by segments_len. */
44};
45
53 float x = 0, y = 0;
57 char h1 = 0, h2 = 0;
60 float h1_loc[2] = {};
61 float h2_loc[2] = {};
62 char _pad[4] = {};
64 struct CurveProfile *profile = nullptr;
65};
66
88
89} // namespace blender
#define ENUM_OPERATORS(_enum_type)
BMesh Iterators.
CurveProfilePoint * segments
eCurveProfilePresets preset