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() } }