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

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 62 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::Instances::attributes(), blender::bke::CurvesGeometry::attributes_for_write(), BKE_grease_pencil_new_nomain(), blender::bke::Curve, blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::data(), blender::bke::AttributeIter::data_type, ELEM, blender::fn::FieldEvaluator::evaluate(), 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::fn::FieldEvaluator::get_evaluated_selection_as_mask(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::index_of_or_add(), blender::initialized_copy_n(), blender::bke::Instances::instances_num(), blender::bke::AttributeAccessor::is_builtin(), blender::bke::AttributeIter::is_builtin, blender::GVArrayCommon::is_span(), 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, MEM_calloc_arrayN(), blender::bke::AttributeIter::name, blender::bke::InstanceReference::name(), blender::bke::Instances::reference_handles(), blender::bke::Instances::references(), blender::bke::greasepencil::Layer::set_local_transform(), blender::fn::FieldEvaluator::set_selection(), blender::bke::GAttributeReader::sharing_info, blender::index_mask::IndexMask::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::bke::GSpanAttributeWriter::span, blender::bke::SpanAttributeWriter< T >::span, blender::bke::String, blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::InstanceReference::to_geometry_set(), Curves::totcol, blender::bke::Instances::transforms(), and blender::bke::GAttributeReader::varray.

Referenced by node_geo_exec().

◆ curves_to_grease_pencil_with_one_layer()

◆ node_declare()

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

◆ node_geo_exec()

◆ node_register()