Exit Full View
Up

/Tools/SharpeningStoneBox.foocad

SharpeningStoneBox
FooCAD Source Code
include ThickWalledBox.foocad

class SharpeningStoneBox : Model  {
    
    var size = Vector3( 210, 55, 30 )
    
    
    fun box() =  ThickWalledBox().apply {
        width = size.x
        depth = size.y
        middleHeight = 0
        bottomHeight = size.z / 2
        topHeight = size.z / 2
    }

    @Piece
    fun top() = box().top()

    @Piece
    fun bottom() = box().bottom()
    
    override fun build() : Shape3d {
        
        return box().build()
    }
}