discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: [OpenSCAD] Is there a better way of doing it?

S
stonysmith
Tue, Jan 24, 2017 7:46 PM

My own preference is to center about the origin:

module box(){
difference(){
cube([width,depth,length],center=true);
//translate([thickness,thickness,thickness])  // no longer needed

cube([width-2thickness,depth-2thickness,length-2*thickness],center=true);
}
}

--
View this message in context: http://forum.openscad.org/Is-there-a-better-way-of-doing-it-tp20212p20215.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

My own preference is to center about the origin: module box(){ difference(){ cube([width,depth,length],center=true); //translate([thickness,thickness,thickness]) // no longer needed cube([width-2*thickness,depth-2*thickness,length-2*thickness],center=true); } } -- View this message in context: http://forum.openscad.org/Is-there-a-better-way-of-doing-it-tp20212p20215.html Sent from the OpenSCAD mailing list archive at Nabble.com.