Blender  V3.3
Namespaces | Functions
blender::ed::curves Namespace Reference

Namespaces

 convert_from_particle_system
 
 convert_to_particle_system
 
 disable_selection
 
 select_all
 
 set_selection_domain
 
 snap_curves_to_surface
 
 surface_set
 

Functions

static bool has_surface_deformation_node (const bNodeTree &ntree)
 
static bool has_surface_deformation_node (const Object &curves_ob)
 
void ensure_surface_deformation_node_exists (bContext &C, Object &curves_ob)
 
bke::CurvesGeometry primitive_random_sphere (const int curves_size, const int points_per_curve)
 
static bool object_has_editable_curves (const Main &bmain, const Object &object)
 
VectorSet< Curves * > get_unique_editable_curves (const bContext &C)
 
static bool curves_poll_impl (bContext *C, const bool check_editable, const bool check_surface)
 
bool editable_curves_with_surface_poll (bContext *C)
 
bool curves_with_surface_poll (bContext *C)
 
bool editable_curves_poll (bContext *C)
 
bool curves_poll (bContext *C)
 
static void CURVES_OT_convert_to_particle_system (wmOperatorType *ot)
 
static void CURVES_OT_convert_from_particle_system (wmOperatorType *ot)
 
static void CURVES_OT_snap_curves_to_surface (wmOperatorType *ot)
 
static void CURVES_OT_set_selection_domain (wmOperatorType *ot)
 
static void CURVES_OT_disable_selection (wmOperatorType *ot)
 
static bool varray_contains_nonzero (const VArray< float > &data)
 
bool has_anything_selected (const Curves &curves_id)
 
static bool any_point_selected (const CurvesGeometry &curves)
 
static bool any_point_selected (const Span< Curves * > curves_ids)
 
static void SCULPT_CURVES_OT_select_all (wmOperatorType *ot)
 
static void CURVES_OT_surface_set (wmOperatorType *ot)
 

Detailed Description

The code below uses a suffix naming convention to indicate the coordinate space: cu: Local space of the curves object that is being edited. su: Local space of the surface object. wo: World space. ha: Local space of an individual hair in the legacy hair system.

Function Documentation

◆ any_point_selected() [1/2]

static bool blender::ed::curves::any_point_selected ( const CurvesGeometry curves)
static

Definition at line 865 of file curves_ops.cc.

References curves, and varray_contains_nonzero().

◆ any_point_selected() [2/2]

static bool blender::ed::curves::any_point_selected ( const Span< Curves * >  curves_ids)
static

◆ CURVES_OT_convert_from_particle_system()

static void blender::ed::curves::CURVES_OT_convert_from_particle_system ( wmOperatorType ot)
static

◆ CURVES_OT_convert_to_particle_system()

static void blender::ed::curves::CURVES_OT_convert_to_particle_system ( wmOperatorType ot)
static

◆ CURVES_OT_disable_selection()

static void blender::ed::curves::CURVES_OT_disable_selection ( wmOperatorType ot)
static

◆ CURVES_OT_set_selection_domain()

static void blender::ed::curves::CURVES_OT_set_selection_domain ( wmOperatorType ot)
static

◆ CURVES_OT_snap_curves_to_surface()

static void blender::ed::curves::CURVES_OT_snap_curves_to_surface ( wmOperatorType ot)
static

◆ CURVES_OT_surface_set()

static void blender::ed::curves::CURVES_OT_surface_set ( wmOperatorType ot)
static

◆ curves_poll()

bool blender::ed::curves::curves_poll ( bContext C)

Definition at line 133 of file curves_ops.cc.

References C, and curves_poll_impl().

Referenced by blender::ed::sculpt_paint::CURVES_OT_sculptmode_toggle().

◆ curves_poll_impl()

static bool blender::ed::curves::curves_poll_impl ( bContext C,
const bool  check_editable,
const bool  check_surface 
)
static

◆ curves_with_surface_poll()

bool blender::ed::curves::curves_with_surface_poll ( bContext C)

◆ editable_curves_poll()

bool blender::ed::curves::editable_curves_poll ( bContext C)

◆ editable_curves_with_surface_poll()

bool blender::ed::curves::editable_curves_with_surface_poll ( bContext C)

Definition at line 118 of file curves_ops.cc.

References C, and curves_poll_impl().

Referenced by CURVES_OT_snap_curves_to_surface().

◆ ensure_surface_deformation_node_exists()

void blender::ed::curves::ensure_surface_deformation_node_exists ( bContext C,
Object curves_ob 
)

◆ get_unique_editable_curves()

VectorSet<Curves *> blender::ed::curves::get_unique_editable_curves ( const bContext C)

◆ has_anything_selected()

bool blender::ed::curves::has_anything_selected ( const Curves curves_id)

◆ has_surface_deformation_node() [1/2]

static bool blender::ed::curves::has_surface_deformation_node ( const bNodeTree ntree)
static

◆ has_surface_deformation_node() [2/2]

static bool blender::ed::curves::has_surface_deformation_node ( const Object curves_ob)
static

◆ object_has_editable_curves()

static bool blender::ed::curves::object_has_editable_curves ( const Main bmain,
const Object object 
)
static

◆ primitive_random_sphere()

bke::CurvesGeometry blender::ed::curves::primitive_random_sphere ( const int  curves_size,
const int  points_per_curve 
)

◆ SCULPT_CURVES_OT_select_all()

static void blender::ed::curves::SCULPT_CURVES_OT_select_all ( wmOperatorType ot)
static

◆ varray_contains_nonzero()

static bool blender::ed::curves::varray_contains_nonzero ( const VArray< float > &  data)
static

Definition at line 838 of file curves_ops.cc.

References data, and blender::devirtualize_varray().

Referenced by any_point_selected(), and has_anything_selected().