Companion

object Companion

Functions

Link copied to clipboard
infix fun Shape2d.and(other: Shape2d): Shape2d

infix fun Shape3d.and(other: Shape3d): Shape3d

Combine two shapes, so that the solid parts and cavities are both considered. If you use the more normal Shape3d.union method instead (or the plus operator), then the cavity won't be treated in a special way, and the result will be the same as if remove was not used.

Link copied to clipboard

Similar to and, but if other overlaps cavities in this shape, then cavity will be filled.

Link copied to clipboard
infix fun Shape2d.remove(cavity: Shape2d): Shape2d

Similar to Shape2d.difference (or the minus operator), but the cavity remains as a 1st class object, which will remain as a cavity after using two or more shapes via the and method.

infix fun Shape3d.remove(cavity: Shape3d): Shape3d

Make a cavity within another shape.