10 b.add_input<
decl::Bool>(
N_(
"Selection")).default_value(
true).hide_value().supports_field();
20 if (domain_size == 0) {
32 evaluator.add_with_destination(tilt_field, tilts.
varray);
51 params.set_output(
"Curve", std::move(geometry_set));
@ GEO_COMPONENT_TYPE_CURVE
#define GEO_NODE_SET_CURVE_TILT
#define NODE_CLASS_GEOMETRY
void nodeRegisterType(struct bNodeType *ntype)
static uint8 component(Color32 c, uint i)
GAttributeWriter lookup_or_add_for_write(const AttributeIDRef &attribute_id, const eAttrDomain domain, const eCustomDataType data_type, const AttributeInit &initializer=AttributeInitDefault())
void set_selection(Field< bool > selection)
static void set_tilt_in_component(GeometryComponent &component, const Field< bool > &selection_field, const Field< float > &tilt_field)
static void node_geo_exec(GeoNodeExecParams params)
static void node_declare(NodeDeclarationBuilder &b)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
void register_node_type_geo_set_curve_tilt()
void geo_node_type_base(bNodeType *ntype, int type, const char *name, short nclass)
GeometryComponent & get_component_for_write(GeometryComponentType component_type)
void modify_geometry_sets(ForeachSubGeometryCallback callback)
NodeGeometryExecFunction geometry_node_execute
NodeDeclareFunction declare
VMutableArray< T > varray