Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_curve_to_points.cc
| Show All 24 Lines | |||||
| #include "UI_resources.h" | #include "UI_resources.h" | ||||
| #include "node_geometry_util.hh" | #include "node_geometry_util.hh" | ||||
| namespace blender::nodes { | namespace blender::nodes { | ||||
| static void geo_node_curve_to_points_declare(NodeDeclarationBuilder &b) | static void geo_node_curve_to_points_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.add_input<decl::Geometry>("Curve").supported_type(GEO_COMPONENT_TYPE_CURVE); | b.add_input<decl::Geometry>(N_("Curve")).supported_type(GEO_COMPONENT_TYPE_CURVE); | ||||
| b.add_input<decl::Int>("Count").default_value(10).min(2).max(100000); | b.add_input<decl::Int>(N_("Count")).default_value(10).min(2).max(100000); | ||||
| b.add_input<decl::Float>("Length").default_value(0.1f).min(0.001f).subtype(PROP_DISTANCE); | b.add_input<decl::Float>(N_("Length")).default_value(0.1f).min(0.001f).subtype(PROP_DISTANCE); | ||||
| b.add_output<decl::Geometry>("Points"); | b.add_output<decl::Geometry>(N_("Points")); | ||||
| b.add_output<decl::Vector>("Tangent").field_source(); | b.add_output<decl::Vector>(N_("Tangent")).field_source(); | ||||
| b.add_output<decl::Vector>("Normal").field_source(); | b.add_output<decl::Vector>(N_("Normal")).field_source(); | ||||
| b.add_output<decl::Vector>("Rotation").field_source(); | b.add_output<decl::Vector>(N_("Rotation")).field_source(); | ||||
| } | } | ||||
| static void geo_node_curve_to_points_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void geo_node_curve_to_points_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| uiItemR(layout, ptr, "mode", 0, "", ICON_NONE); | uiItemR(layout, ptr, "mode", 0, "", ICON_NONE); | ||||
| } | } | ||||
| static void geo_node_curve_to_points_init(bNodeTree *UNUSED(tree), bNode *node) | static void geo_node_curve_to_points_init(bNodeTree *UNUSED(tree), bNode *node) | ||||
| ▲ Show 20 Lines • Show All 346 Lines • Show Last 20 Lines | |||||