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

Functions

static void node_declare (NodeDeclarationBuilder &b)
 
static GreasePencilcurves_to_grease_pencil_with_one_layer (const Curves &curves_id, const Field< bool > &selection_field, const StringRefNull layer_name, const AttributeFilter &attribute_filter)
 
static GreasePencilcurve_instances_to_grease_pencil_layers (const bke::Instances &instances, const Field< bool > &selection_field, const AttributeFilter &attribute_filter)
 
static void node_geo_exec (GeoNodeExecParams params)
 
static void node_register ()
 

Function Documentation

◆ curve_instances_to_grease_pencil_layers()

static GreasePencil * blender::nodes::node_geo_curves_to_grease_pencil_cc::curve_instances_to_grease_pencil_layers ( const bke::Instances & instances,
const Field< bool > & selection_field,
const AttributeFilter & attribute_filter )
static

Definition at line 60 of file node_geo_curves_to_grease_pencil.cc.

References blender::bke::MutableAttributeAccessor::add(), blender::bke::AttributeFilter::allow_skip(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::bke::CurvesGeometry::attributes_for_write(), BKE_grease_pencil_new_nomain(), CD_PROP_STRING, blender::bke::Curve, blender::VectorSet< Key, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::data(), blender::bke::AttributeIter::data_type, ELEM, blender::bke::GSpanAttributeWriter::finish(), blender::bke::SpanAttributeWriter< T >::finish(), blender::bke::AttributeAccessor::foreach_attribute(), blender::index_mask::IndexMask::foreach_index(), blender::array_utils::gather(), Curves::geometry, blender::bke::AttributeIter::get(), blender::bke::GeometrySet::get_curves(), blender::VectorSet< Key, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::index_of_or_add(), blender::initialized_copy_n(), blender::bke::AttributeAccessor::is_builtin(), blender::bke::AttributeIter::is_builtin, blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::bke::AttributeAccessor::lookup_or_default(), Curves::mat, GreasePencil::material_array, GreasePencil::material_array_num, blender::bke::AttributeIter::name, blender::fn::FieldEvaluator::set_selection(), blender::index_mask::IndexMask::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::VectorSet< Key, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::bke::GSpanAttributeWriter::span, blender::bke::SpanAttributeWriter< T >::span, blender::bke::greasepencil::Drawing::strokes_for_write(), and Curves::totcol.

Referenced by node_geo_exec().

◆ curves_to_grease_pencil_with_one_layer()

static GreasePencil * blender::nodes::node_geo_curves_to_grease_pencil_cc::curves_to_grease_pencil_with_one_layer ( const Curves & curves_id,
const Field< bool > & selection_field,
const StringRefNull layer_name,
const AttributeFilter & attribute_filter )
static

◆ node_declare()

static void blender::nodes::node_geo_curves_to_grease_pencil_cc::node_declare ( NodeDeclarationBuilder & b)
static

◆ node_geo_exec()

◆ node_register()