Bool Operation
Bool Operation
Section titled “Bool Operation ” Category Shape
Is Pair Node: No
The Bool Operation Node is used to perform boolean operations on two vector shapes. It allows you to combine, intersect, or subtract shapes to create complex vector graphics. The resulting shape will inherit the visual properties (like fill and stroke) from the first shape input. This node is useful for creating intricate designs and manipulating vector data in a non-destructive way.
VectorPathOp
Section titled “VectorPathOp”The VectorPathOp
is a enum type that defines the different boolean operations that can be performed on vector shapes. The available operations are:
- Difference: Subtracts the second shape from the first.
- Intersect: Keeps only the overlapping area of the two shapes.
- Union: Combines the two shapes into one.
- Xor: Combines the two shapes, excluding the overlapping area.
- ReverseDifference: Subtracts the first shape from the second.
Inputs
Section titled “Inputs” First Shape
Section titled “ First Shape ” Type: Vector Shape
Default: null
First vector shape to perform the boolean operation on. Any visual data like fill or stroke will be tansferred to the result from this input.
Second Shape
Section titled “ Second Shape ” Type: Vector Shape
Default: null
Second vector shape to perform the boolean operation on.
Operation
Section titled “ Operation ” Type: VectorPathOp (Enum)
Default: Union
The boolean operation to perform on the two shapes. The available operations are Union, Intersect, and Subtract. Union combines the two shapes, Intersect keeps only the overlapping area, and Subtract removes the second shape from the first.
Outputs
Section titled “Outputs” Result
Section titled “ Result ” Type: Vector Shape
Default: null
Resulting vector shape after performing the boolean operation on the two input shapes. The resulting shape will have the visual data (fill, stroke) from the first shape.