diff options
author | Johnny Matthews <guitargeek> | 2021-06-30 08:03:55 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-06-30 08:03:55 +0300 |
commit | 8884d2d61b3d60d44d4f8aecaba1d0fd121b0bf3 (patch) | |
tree | 261d52300cd907ec19db9a43e53909c682123e75 /source/blender/makesdna/DNA_node_types.h | |
parent | c36d2a9a7a2a01fdaeea98270ef1eb2314dfada3 (diff) |
Geometry Nodes: Curve Primitive Bezier Segment
Creates a Curve with 1 Bezier Spline from four positions (start,
start handle, end handle, end) and a resolution. The handles are
aligned and mirrored automatically. An "Offset" mode is also included
to allow specifying the handles relative to the control points.
The default settings recreate the existing default Bezier Curve in the
3D viewport add menu.
Differential Revision: https://developer.blender.org/D11648
Diffstat (limited to 'source/blender/makesdna/DNA_node_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_node_types.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_node_types.h b/source/blender/makesdna/DNA_node_types.h index 12625d3408d..480a8c03c41 100644 --- a/source/blender/makesdna/DNA_node_types.h +++ b/source/blender/makesdna/DNA_node_types.h @@ -1357,6 +1357,11 @@ typedef struct NodeSwitch { uint8_t input_type; } NodeSwitch; +typedef struct NodeGeometryCurvePrimitiveBezierSegment { + /* GeometryNodeCurvePrimitiveBezierSegmentMode. */ + uint8_t mode; +} NodeGeometryCurvePrimitiveBezierSegment; + typedef struct NodeGeometryCurveResample { /* GeometryNodeCurveSampleMode. */ uint8_t mode; @@ -1889,6 +1894,11 @@ typedef enum GeometryNodeMeshLineCountMode { GEO_NODE_MESH_LINE_COUNT_RESOLUTION = 1, } GeometryNodeMeshLineCountMode; +typedef enum GeometryNodeCurvePrimitiveBezierSegmentMode { + GEO_NODE_CURVE_PRIMITIVE_BEZIER_SEGMENT_POSITION = 0, + GEO_NODE_CURVE_PRIMITIVE_BEZIER_SEGMENT_OFFSET = 1, +} GeometryNodeCurvePrimitiveBezierSegmentMode; + typedef enum GeometryNodeCurveSampleMode { GEO_NODE_CURVE_SAMPLE_COUNT = 0, GEO_NODE_CURVE_SAMPLE_LENGTH = 1, |