Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_separate_components.cc
| /* SPDX-License-Identifier: GPL-2.0-or-later */ | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||||
| #include "node_geometry_util.hh" | #include "node_geometry_util.hh" | ||||
| namespace blender::nodes::node_geo_separate_components_cc { | namespace blender::nodes::node_geo_separate_components_cc { | ||||
| static void node_declare(NodeDeclarationBuilder &b) | static void node_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.add_input<decl::Geometry>(N_("Geometry")); | b.add_input<decl::Geometry>(N_("Geometry")); | ||||
| b.add_output<decl::Geometry>(N_("Mesh")); | b.add_output<decl::Geometry>(N_("Mesh")).propagate_from_auto(); | ||||
| b.add_output<decl::Geometry>(N_("Point Cloud")); | b.add_output<decl::Geometry>(N_("Point Cloud")).propagate_from_auto(); | ||||
| b.add_output<decl::Geometry>(N_("Curve")); | b.add_output<decl::Geometry>(N_("Curve")).propagate_from_auto(); | ||||
| b.add_output<decl::Geometry>(N_("Volume")); | b.add_output<decl::Geometry>(N_("Volume")).propagate_from_auto(); | ||||
| b.add_output<decl::Geometry>(N_("Instances")); | b.add_output<decl::Geometry>(N_("Instances")).propagate_from_auto(); | ||||
| } | } | ||||
| static void node_geo_exec(GeoNodeExecParams params) | static void node_geo_exec(GeoNodeExecParams params) | ||||
| { | { | ||||
| GeometrySet geometry_set = params.extract_input<GeometrySet>("Geometry"); | GeometrySet geometry_set = params.extract_input<GeometrySet>("Geometry"); | ||||
| GeometrySet meshes; | GeometrySet meshes; | ||||
| GeometrySet point_clouds; | GeometrySet point_clouds; | ||||
| ▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines | |||||