Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_curve_to_mesh.cc
| Show All 21 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_mesh_declare(NodeDeclarationBuilder &b) | static void geo_node_curve_to_mesh_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::Geometry>("Profile Curve") | b.add_input<decl::Geometry>(N_("Profile Curve")) | ||||
| .only_realized_data() | .only_realized_data() | ||||
| .supported_type(GEO_COMPONENT_TYPE_CURVE); | .supported_type(GEO_COMPONENT_TYPE_CURVE); | ||||
| b.add_input<decl::Bool>("Fill Caps") | b.add_input<decl::Bool>(N_("Fill Caps")) | ||||
| .description( | .description( | ||||
| "If the profile spline is cyclic, fill the ends of the generated mesh with N-gons"); | N_("If the profile spline is cyclic, fill the ends of the generated mesh with N-gons")); | ||||
| b.add_output<decl::Geometry>("Mesh"); | b.add_output<decl::Geometry>(N_("Mesh")); | ||||
| } | } | ||||
| static void geometry_set_curve_to_mesh(GeometrySet &geometry_set, | static void geometry_set_curve_to_mesh(GeometrySet &geometry_set, | ||||
| const GeometrySet &profile_set, | const GeometrySet &profile_set, | ||||
| const bool fill_caps) | const bool fill_caps) | ||||
| { | { | ||||
| const CurveEval *curve = geometry_set.get_curve_for_read(); | const CurveEval *curve = geometry_set.get_curve_for_read(); | ||||
| const CurveEval *profile_curve = profile_set.get_curve_for_read(); | const CurveEval *profile_curve = profile_set.get_curve_for_read(); | ||||
| Show All 40 Lines | |||||