Add bounding box node (#1376)

* Add bounding box node

Generates a rectangle based on the bounding box of the input vector data

* Remove redundant <>

* Fix formatting

---------

Co-authored-by: Dennis Kobert <dennis@kobert.dev>
This commit is contained in:
isiko
2023-08-08 18:44:14 +02:00
committed by GitHub
parent f57fa2e7c9
commit 77e5ec9d4f
4 changed files with 23 additions and 1 deletions

View File

@@ -1867,6 +1867,15 @@ fn static_nodes() -> Vec<DocumentNodeType> {
properties: node_properties::repeat_properties,
..Default::default()
},
DocumentNodeType {
name: "Bounding Box",
category: "Vector",
identifier: NodeImplementation::proto("graphene_core::vector::BoundingBoxNode"),
inputs: vec![DocumentInputType::value("Vector Data", TaggedValue::VectorData(graphene_core::vector::VectorData::empty()), true)],
outputs: vec![DocumentOutputType::new("Vector", FrontendGraphDataType::Subpath)],
properties: node_properties::no_properties,
..Default::default()
},
DocumentNodeType {
name: "Circular Repeat",
category: "Vector",