Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_separate_components.cc
| Show All 14 Lines | |||||
| */ | */ | ||||
| #include "node_geometry_util.hh" | #include "node_geometry_util.hh" | ||||
| namespace blender::nodes { | namespace blender::nodes { | ||||
| static void geo_node_join_geometry_declare(NodeDeclarationBuilder &b) | static void geo_node_join_geometry_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.add_input<decl::Geometry>("Geometry"); | b.add_input<decl::Geometry>(N_("Geometry")); | ||||
| b.add_output<decl::Geometry>("Mesh"); | b.add_output<decl::Geometry>(N_("Mesh")); | ||||
| b.add_output<decl::Geometry>("Point Cloud"); | b.add_output<decl::Geometry>(N_("Point Cloud")); | ||||
| b.add_output<decl::Geometry>("Curve"); | b.add_output<decl::Geometry>(N_("Curve")); | ||||
| b.add_output<decl::Geometry>("Volume"); | b.add_output<decl::Geometry>(N_("Volume")); | ||||
| b.add_output<decl::Geometry>("Instances"); | b.add_output<decl::Geometry>(N_("Instances")); | ||||
| } | } | ||||
| static void geo_node_separate_components_exec(GeoNodeExecParams params) | static void geo_node_separate_components_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 All 39 Lines | |||||