12 b.add_input<
decl::Bool>(
N_(
"Selection")).default_value(
true).hide_value().supports_field();
22 if (
mesh ==
nullptr) {
32 const IndexMask selection = evaluator.get_evaluated_as_mask(0);
33 if (selection.
size() == 0) {
43 params.set_output(
"Curve", std::move(geometry_set));
@ GEO_COMPONENT_TYPE_MESH
@ GEO_COMPONENT_TYPE_CURVE
#define NODE_CLASS_GEOMETRY
#define GEO_NODE_MESH_TO_CURVE
void nodeRegisterType(struct bNodeType *ntype)
static uint8 component(Color32 c, uint i)
Group Output data from inside of a node group A color picker Mix two input colors RGB to Convert a color s luminance to a grayscale value Generate a normal vector and a dot product Bright Control the brightness and contrast of the input color Vector Map an input vectors to curves
Curves * curves_new_nomain(int points_num, int curves_num)
bke::CurvesGeometry mesh_to_curve_convert(const Mesh &mesh, const IndexMask selection)
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_mesh_to_curve()
void geo_node_type_base(bNodeType *ntype, int type, const char *name, short nclass)
void replace_curves(Curves *curves, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)
void keep_only_during_modify(const blender::Span< GeometryComponentType > component_types)
const GeometryComponent * get_component_for_read(GeometryComponentType component_type) const
const Mesh * get_mesh_for_read() const
void modify_geometry_sets(ForeachSubGeometryCallback callback)
void remove_geometry_during_modify()
NodeGeometryExecFunction geometry_node_execute
NodeDeclareFunction declare