15 .
description(
"The control point to retrieve data from")
16 .structure_type(StructureType::Field);
18 .structure_type(StructureType::Field)
19 .propagate_references()
20 .
description(
"The curve the control point is part of");
22 .structure_type(StructureType::Field)
23 .propagate_references()
24 .
description(
"How far along the control point is along its curve");
35 if (domain != AttrDomain::Point) {
43 static constexpr int8_t id = 0;
49 return AttrDomain::Point;
61 if (domain != AttrDomain::Point) {
68 [offsets, point_to_curve_map = std::move(point_to_curve_map)](
const int point_i) {
69 const int curve_i = point_to_curve_map[point_i];
70 return point_i - offsets[curve_i];
76 static constexpr int8_t id = 0;
82 return AttrDomain::Point;
97 "Index in Curve"_ustr,
108 ntype.
ui_name =
"Curve of Point";
109 ntype.
ui_description =
"Retrieve the curve a control point is part of";
Low-level operations for curves.
#define GEO_NODE_CURVE_TOPOLOGY_CURVE_OF_POINT
#define NOD_REGISTER_NODE(REGISTER_FUNC)
static VArray from_func(const int64_t size, GetFunc get_func)
static VArray from_container(ContainerT container)
static Field from_input(Args &&...args)
T extract_input(const UString identifier)
bool output_is_required(const UString identifier) const
void set_output(const UString identifier, T &&value)
void node_register_type(bNodeType &ntype)
static void node_geo_exec(GeoNodeExecParams params)
static void node_register()
static void node_declare(NodeDeclarationBuilder &b)
@ NODE_DEFAULT_INPUT_INDEX_FIELD
void geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
const char * enum_name_legacy
NodeDeclareFunction declare