FooCAD Source Codeimport static uk.co.nickthecoder.foocad.layout.v1.Layout2d.*
import static uk.co.nickthecoder.foocad.layout.v1.Layout3d.*
class LevelCalibration : Model {
@Custom
var bedSize = Vector2( 150, 150 )
@Custom
var dotSize = 30
@Custom
var across = 3
@Custom
var down = 3
// If there is only 1 layer, then we don't want only 1 perimeter (it won't stick well).
@Slice( onlyOnePerimeterTop=0 )
override fun build() : Shape3d {
val dot = Square(dotSize).extrude(0.2)
return dot
.spreadX(across, bedSize.x)
.spreadY(down, bedSize.y)
}
}