Date:2011-07-23 19:34:26 (8 years 4 months ago)
Author:Werner Almesberger
Commit:521f0315bb0dbb7d33735e82e94d2a9b185c94f1
Message:cad/test2/button.scad: added overlaps to eliminate artefacts at coincident faces

Files: cad/test2/button.scad (3 diffs)

Change Details

cad/test2/button.scad
3535{
3636    translate([-x/2, 0, 0])
3737        difference() {
38        cube([x, r, r]);
38        translate([0, -epsilon, -epsilon])
39            cube([x, r+epsilon, r+epsilon]);
3940        translate([0, r, r])
4041            rotate([0, 90, 0])
4142            translate([0, 0, -epsilon])
...... 
191192{
192193    translate([0, 0, -but_base_z])
193194        difference() {
194        rbox(but_base_x, but_base_y, but_base_z, but_corner_r);
195        rbox_chamfer_top(but_base_x, but_base_y, but_base_z,
195        rbox(but_base_x, but_base_y, but_base_z+epsilon, but_corner_r);
196        rbox_chamfer_top(but_base_x, but_base_y, but_base_z+epsilon,
196197            but_corner_r, but_chamfer_r);
197        rbox_chamfer_bottom(but_base_x, but_base_y, but_base_z,
198        rbox_chamfer_bottom(but_base_x, but_base_y, but_base_z+epsilon,
198199            but_corner_r, but_chamfer_r);
199200    }
200201}
...... 
204205{
205206    union() {
206207        button_top();
208
209        /* Comment out this line to make CSG previews work */
207210        button_base();
208211    }
209212}

Archive Download the corresponding diff file

Branches:
master



interactive