Blender V5.0
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()

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 141 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()

◆ create_arc_curve_from_radius()

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()

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

◆ node_layout()

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

Definition at line 119 of file node_geo_curve_primitive_arc.cc.

References uiLayout::prop(), ptr, and UI_ITEM_R_EXPAND.

Referenced by node_register().

◆ node_register()

◆ node_rna()

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

◆ rotate_vector_around_axis()

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