import static uk.co.nickthecoder.foocad.layout.v1.Layout2d.* import static uk.co.nickthecoder.foocad.layout.v1.Layout3d.* /** My house's vents have holes large enough for mice to get through, so this prevents the little buggers getting in. Time will tell if the mice chew their way through them. (Haven't for hlaf a year ;-) Using the default settings it is easy to trim the piece to size with scissors. */ class VentCover : Model { @Custom var width = 75 @Custom var length = 180 // Overall thickness var height = 1.2 // Width of a single horizontal/vertical strip var thickness = 2 // Strips across var across = 30 // Strips down var down = 12 override fun build() : Shape3d { val horiz = Cube(length, thickness, height).spreadY(down,width) val vert = Cube(thickness, width, height).spreadX(across,length) return horiz + vert } }