Exit Full View
Up

/Games/ReactionBall.foocad

ReactionBall

Head over to [https://www.thingiverse.com/thing:1040716] and download the stl files for the ball(s) you are interested in. Set "ballName" appropriately.

Then generate the gcode for each "pieceNumber" 0..7

Note, because the stl files above are so detailed, it takes quite a while to build.

FooCAD Source Code
include Sphere8.foocad

class ReactionBall : Sphere8 {
    
    @Custom
    var ballName = "ReactionBall_1"

    val stlBall = STLParser().parseFile( "reactionBalls/${ballName}.stl" ).center()
    override fun ball() : Shape3d {
        return stlBall.scale( diameter / stlBall.size.x )
    }

    override fun build() = stlBall
}