Compute the boolean difference of two 2D shapes (first minus second).
Removes the region covered by second from first. When the tool is fully inside the base, the result is a CompoundBlueprint (base with a hole).
second
first
Base shape to cut from.
Tool shape to subtract.
The remaining shape, or null if nothing remains.
null
const withHole = cut2D(outerRect, innerCircle); Copy
const withHole = cut2D(outerRect, innerCircle);
cutBlueprint2D for the functional API wrapper.
Compute the boolean difference of two 2D shapes (first minus second).
Removes the region covered by
secondfromfirst. When the tool is fully inside the base, the result is a CompoundBlueprint (base with a hole).