Blender  V2.93
Namespaces | Functions | Variables
node_geo_align_rotation_to_vector.cc File Reference
#include "BLI_math_rotation.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "node_geometry_util.hh"

Go to the source code of this file.

Namespaces

 blender
 
 blender::nodes
 

Functions

static void geo_node_align_rotation_to_vector_layout (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void blender::nodes::align_rotations_auto_pivot (const Float3ReadAttribute &vectors, const FloatReadAttribute &factors, const float3 local_main_axis, MutableSpan< float3 > rotations)
 
static void blender::nodes::align_rotations_fixed_pivot (const Float3ReadAttribute &vectors, const FloatReadAttribute &factors, const float3 local_main_axis, const float3 local_pivot_axis, MutableSpan< float3 > rotations)
 
static void blender::nodes::align_rotations_on_component (GeometryComponent &component, const GeoNodeExecParams &params)
 
static void blender::nodes::geo_node_align_rotation_to_vector_exec (GeoNodeExecParams params)
 
static void blender::nodes::geo_node_align_rotation_to_vector_init (bNodeTree *UNUSED(ntree), bNode *node)
 
static void blender::nodes::geo_node_align_rotation_to_vector_update (bNodeTree *UNUSED(ntree), bNode *node)
 
void register_node_type_geo_align_rotation_to_vector ()
 

Variables

static bNodeSocketTemplate geo_node_align_rotation_to_vector_in []
 
static bNodeSocketTemplate geo_node_align_rotation_to_vector_out []
 

Function Documentation

◆ geo_node_align_rotation_to_vector_layout()

static void geo_node_align_rotation_to_vector_layout ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ register_node_type_geo_align_rotation_to_vector()

void register_node_type_geo_align_rotation_to_vector ( void  )

Variable Documentation

◆ geo_node_align_rotation_to_vector_in

bNodeSocketTemplate geo_node_align_rotation_to_vector_in[]
static
Initial value:
= {
{SOCK_GEOMETRY, N_("Geometry")},
{SOCK_STRING, N_("Factor")},
{SOCK_FLOAT, N_("Factor"), 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, PROP_FACTOR},
{SOCK_STRING, N_("Vector")},
{SOCK_VECTOR, N_("Vector"), 0.0, 0.0, 1.0, 0.0, -FLT_MAX, FLT_MAX, PROP_ANGLE},
{-1, ""},
}
#define N_(msgid)
@ SOCK_VECTOR
@ SOCK_FLOAT
@ SOCK_GEOMETRY
@ SOCK_STRING
@ PROP_ANGLE
Definition: RNA_types.h:132
@ PROP_FACTOR
Definition: RNA_types.h:131

Definition at line 24 of file node_geo_align_rotation_to_vector.cc.

Referenced by register_node_type_geo_align_rotation_to_vector().

◆ geo_node_align_rotation_to_vector_out

bNodeSocketTemplate geo_node_align_rotation_to_vector_out[]
static
Initial value:
= {
{SOCK_GEOMETRY, N_("Geometry")},
{-1, ""},
}

Definition at line 33 of file node_geo_align_rotation_to_vector.cc.

Referenced by register_node_type_geo_align_rotation_to_vector().