diff options
author | Johnny Matthews <guitargeek> | 2021-07-01 03:17:28 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-07-01 03:22:13 +0300 |
commit | c1fc18086118012637bdc5a32c5ced1742d69dac (patch) | |
tree | b395ce97d2a55eda946573431812f73831d9cd7a /source/blender/makesdna | |
parent | 5a64c687ddccb3012b4fdb5c9cfb5d6459fcf39e (diff) |
Geometry Nodes: Curve Primitive Circle
This node has two modes: the first mode computes a circle from three
locations and a resolution. The second takes radius and resolution.
The first mode also outputs the center of the computed circle as
a vector.
Differential Revision: https://developer.blender.org/D11650
Diffstat (limited to 'source/blender/makesdna')
-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 480a8c03c41..a6de85dd6af 100644 --- a/source/blender/makesdna/DNA_node_types.h +++ b/source/blender/makesdna/DNA_node_types.h @@ -1362,6 +1362,11 @@ typedef struct NodeGeometryCurvePrimitiveBezierSegment { uint8_t mode; } NodeGeometryCurvePrimitiveBezierSegment; +typedef struct NodeGeometryCurvePrimitiveCircle { + /* GeometryNodeCurvePrimitiveMode. */ + uint8_t mode; +} NodeGeometryCurvePrimitiveCircle; + typedef struct NodeGeometryCurveResample { /* GeometryNodeCurveSampleMode. */ uint8_t mode; @@ -1795,6 +1800,11 @@ typedef enum GeometryNodeBooleanOperation { GEO_NODE_BOOLEAN_DIFFERENCE = 2, } GeometryNodeBooleanOperation; +typedef enum GeometryNodeCurvePrimitiveCircleMode { + GEO_NODE_CURVE_PRIMITIVE_CIRCLE_TYPE_POINTS = 0, + GEO_NODE_CURVE_PRIMITIVE_CIRCLE_TYPE_RADIUS = 1 +} GeometryNodeCurvePrimitiveCircleMode; + typedef enum GeometryNodeTriangulateNGons { GEO_NODE_TRIANGULATE_NGON_BEAUTY = 0, GEO_NODE_TRIANGULATE_NGON_EARCLIP = 1, |