Skip to content

Commit cda5cd4

Browse files
committed
adding printer offsets to model
1 parent c95f676 commit cda5cd4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compressionSpring.groovy

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ CSG getNut(){
2727
//println "Database loaded "+database
2828
HashMap<String,Object> config = Vitamins.getConfiguration( type,size.getStrValue())
2929
double height = config.relaxedLength
30-
double coreDelta= config.od
31-
30+
double coreDelta= config.od+printerOffset.getMM()
31+
double coreInnerDelta= config.id-printerOffset.getMM()
3232
CSG core =new Cylinder(coreDelta/2,
3333
coreDelta/2,
3434
height,(int)30).toCSG() // a one line Cylinder
35-
.difference(new Cylinder(config.id/2,config.id/2,height,(int)30).toCSG())
35+
.difference(new Cylinder(coreInnerDelta/2,coreInnerDelta/2,height,(int)30).toCSG())
3636

3737
return core
3838
.setParameter(size)

0 commit comments

Comments
 (0)