margin

open fun margin(leftFrontBottom: Vector3, rightBackTop: Vector3): Shape3d

Does not change the shape, only the axis aligned bounding box defined by corner and size.

For example, if we add a margin around a shape, and then tile it, the gaps between the shapes will be margin*2.

You can also apply a negative margin, in which case, tiling may cause the shapes to overlap.

Example usage : If you have a cube, with small knobbly bits, but when aligning the shape, you don't care about the knobbly bits, you can use negative margins


open fun margin(margin: Vector3): Shape3d
open fun margin(xyz: Double): Shape3d
open fun margin(x: Double, y: Double, z: Double): Shape3d