38 if (
params.output_is_required(
"Bounding Box")) {
44 if (&sub_geometry == &geometry_set) {
52 if (sub_min ==
float3(FLT_MAX)) {
56 const float3 scale = sub_max - sub_min;
65 params.set_output(
"Bounding Box", std::move(geometry_set));
@ GEO_COMPONENT_TYPE_MESH
#define GEO_NODE_BOUNDING_BOX
#define NODE_CLASS_GEOMETRY
void nodeRegisterType(struct bNodeType *ntype)
NSNotificationCenter * center
Mesh * create_cuboid_mesh(const float3 &size, int verts_x, int verts_y, int verts_z, const bke::AttributeIDRef &uv_id)
static void node_declare(NodeDeclarationBuilder &b)
static void node_geo_exec(GeoNodeExecParams params)
void transform_mesh(Mesh &mesh, const float3 translation, const float3 rotation, const float3 scale)
vec_base< float, 3 > float3
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
void register_node_type_geo_bounding_box()
void geo_node_type_base(bNodeType *ntype, int type, const char *name, short nclass)
void replace_mesh(Mesh *mesh, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)
void keep_only_during_modify(const blender::Span< GeometryComponentType > component_types)
void modify_geometry_sets(ForeachSubGeometryCallback callback)
bool compute_boundbox_without_instances(blender::float3 *r_min, blender::float3 *r_max) const
void remove_geometry_during_modify()
NodeGeometryExecFunction geometry_node_execute
NodeDeclareFunction declare