Skip to content

Conversation

@mathurojus
Copy link

@mathurojus mathurojus commented Dec 31, 2025

Adds a combined parameter to control whether the box warp treats all subpaths as a single object (when true) or warps them individually (when false).

Fixes #3551

@mathurojus
Copy link
Author

@Keavon could you please approve the workflows when ready? If everything looks good, feel free to merge. Thanks!

Added logic to compute combined bounding box for vectors.

#[node_macro::node(category("Vector: Modifier"), path(core_types::vector))]
async fn box_warp(_: impl Ctx, content: Table<Vector>, #[expose] rectangle: Table<Vector>) -> Table<Vector> {
async fn box_warp(_: impl Ctx, content: Table<Vector>, #[expose] rectangle: Table<Vector>, #[expose] combined: bool) -> Table<Vector> {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@0HyperCube
Added the implementation for the combined parameter. When combined=true, the function now computes a unified bounding box for all vectors and applies the warp uniformly. When combined=false, it uses individual bounding boxes (original behavior).

Does this approach look correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Box warp doesn't treat subpaths as unified object

1 participant