Cork Pals are toys that utilize 3D printing and recycling. Use a wine cork to connect two 3D printed pieces and there you have it. In my experience not all corks were always fitting: one cork side might be too big or too small - so I decided to make it customizable.
All my designs can be found on Thingiverse.
In this Gist I demonstrate my models with the help of the Scad4J library.
%classpath config resolver maven-public https://software.pschatzmann.ch/repository/maven-public/
%classpath add mvn ch.pschatzmann:scad4j:0.0.1-SNAPSHOT
import ch.pschatzmann.scad4j._
import java.io.File
import java.net.URL
import ch.pschatzmann.scad4j._ import java.io.File import java.net.URL
SCAD.setFormatter(new ch.pschatzmann.scad4j.format.OpenSCADFormatter())
SCAD.setDisplay3D(false)
var model = new SCAD()
scad4j V0.1
We load all models from the same path and all models are supporting the following parameters:
var path = "https://raw.githubusercontent.com/pschatzmann/openscad-models/master/"
model.setParameterValue("corkRadiusFront","10")
model.setParameterValue("corkRadiusBack","10")
scad4j V0.1
Parameters:
corkRadiusFront=11.5;
corkRadiusBack=10;
mouthLen = 16;
mountR1 = 4;
mouthR2 = 9;
legHeight=15;
cylinderHeight=8;
var url = new URL(path+"Pig.scad")
var pig = model.scad(url)
pig.display
Compiling design (CSG Products normalization)... Normalized CSG tree has 26 elements
Parameters:
corkDiameterFront=21;
corkDiameterBack=21;
legHeight=10;
cylinderLength=6;
neck=3;
var url = new URL(path+"Sheep.scad")
var sheep = model.scad(url)
sheep.display
Compiling design (CSG Products normalization)... Normalized CSG tree has 20 elements
Parameters:
corkDiameterFront=21;
corkDiameterBack=22;
legHeight=40;
neck=40;
cylinderHeight=6;
var url = new URL(path+"Giraffe.scad")
var giraffe = model.scad(url)
giraffe.display
Compiling design (CSG Products normalization)... Normalized CSG tree has 21 elements
Parameters:
corkDiameterFront=21;
corkDiameterBack=21;
legHeight=19;
neck=25;
cylinderHeight=6;
var url = new URL(path+"Lama.scad")
var lama = model.scad(url)
lama.display
Compiling design (CSG Products normalization)... Normalized CSG tree has 21 elements