Blender V4.3
blender::nodes::node_geo_curve_primitive_arc_cc Namespace Reference

Functions

static void node_declare (NodeDeclarationBuilder &b)
 
static void node_layout (uiLayout *layout, bContext *, PointerRNA *ptr)
 
static void node_init (bNodeTree *, bNode *node)
 
static float3 rotate_vector_around_axis (const float3 vector, const float3 axis, const float angle)
 
static bool colinear_f3_f3_f3 (const float3 p1, const float3 p2, const float3 p3)
 
static Curvescreate_arc_curve_from_points (const int resolution, const float3 a, const float3 b, const float3 c, float angle_offset, const bool connect_center, const bool invert_arc, float3 &r_center, float3 &r_normal, float &r_radius)
 
static Curvescreate_arc_curve_from_radius (const int resolution, const float radius, const float start_angle, const float sweep_angle, const bool connect_center, const bool invert_arc)
 
static void node_geo_exec (GeoNodeExecParams params)
 
static void node_rna (StructRNA *srna)
 
static void node_register ()
 

Function Documentation

◆ colinear_f3_f3_f3()

static bool blender::nodes::node_geo_curve_primitive_arc_cc::colinear_f3_f3_f3 ( const float3 p1,
const float3 p2,
const float3 p3 )
static

Definition at line 143 of file node_geo_curve_primitive_arc.cc.

References b, ELEM, and blender::math::normalize().

Referenced by create_arc_curve_from_points().

◆ create_arc_curve_from_points()

static Curves * blender::nodes::node_geo_curve_primitive_arc_cc::create_arc_curve_from_points ( const int resolution,
const float3 a,
const float3 b,
const float3 c,
float angle_offset,
const bool connect_center,
const bool invert_arc,
float3 & r_center,
float3 & r_normal,
float & r_radius )
static

◆ create_arc_curve_from_radius()

static Curves * blender::nodes::node_geo_curve_primitive_arc_cc::create_arc_curve_from_radius ( const int resolution,
const float radius,
const float start_angle,
const float sweep_angle,
const bool connect_center,
const bool invert_arc )
static

◆ node_declare()

◆ node_geo_exec()

◆ node_init()

static void blender::nodes::node_geo_curve_primitive_arc_cc::node_init ( bNodeTree * ,
bNode * node )
static

Definition at line 126 of file node_geo_curve_primitive_arc.cc.

References data, and GEO_NODE_CURVE_PRIMITIVE_ARC_TYPE_RADIUS.

Referenced by node_register().

◆ node_layout()

static void blender::nodes::node_geo_curve_primitive_arc_cc::node_layout ( uiLayout * layout,
bContext * ,
PointerRNA * ptr )
static

Definition at line 121 of file node_geo_curve_primitive_arc.cc.

References ptr, UI_ITEM_R_EXPAND, and uiItemR().

Referenced by node_register().

◆ node_register()

◆ node_rna()

static void blender::nodes::node_geo_curve_primitive_arc_cc::node_rna ( StructRNA * srna)
static

◆ rotate_vector_around_axis()

static float3 blender::nodes::node_geo_curve_primitive_arc_cc::rotate_vector_around_axis ( const float3 vector,
const float3 axis,
const float angle )
static