Exit Full View
Up

/Games/CardShufflerSpindle.foocad

CardShufflerSpindle

Steve asked me to print this most tiny thing to fix his card shuffler. I don't think it lasted long, and had to be repaired some other way.

FooCAD Source Code
import static uk.co.nickthecoder.foocad.along.v2.Along.*
class CardShufflerSpindle : Model {
    
    override fun build() : Shape3d {

        val rounded = Square( 5 ).center()
            .roundCorner( 3, 2.5 )
            .roundCorner( 2, 1, 1 ) // Chamfer
            .roundCorner( 1, 1, 1 ) // Chamfer
            .roundCorner( 0, 2.5 )
        

        return ExtrusionBuilder().apply {
            crossSection( rounded )
            forward( 10 )
            crossSection()
            forward( 5 )
            crossSection( Square( 5 ).center() )
            forward( 10 )
            crossSection()
        }.build()
            .alongY().center()
    }
}