[OpenSCAD] Why is this so heavy to OpenScad?

MVAckel Mvackel at yahoo.com
Sun Nov 10 15:19:41 EST 2019


Hello,

I'm trying to build a cage that will be later subtracted from a rounded box,
but the cage is so heavy to  OpenScad (version 2019/05) that I'm not being
able to do anything further.

Is this a bug? Any other way of building the cage to be lighter?

Marcos



use <./MCAD/boxes.scad>;

$fa=1;
$fs=1;


//----------------------
cage();
//----------------------

cubW = 100;
cubL = 100;
cubH = 80;
wall = 2.5;
//--------------------------------------------------------------------------

module cage()
{
	
	difference() {
		curv = 26;
		
		difference() {
			roundedBox( [cubH, cubL, cubW], curv, true );
			roundedBox( [cubH-2.0*wall,cubL-2.0*wall, cubW-2.0*wall], curv-2, true);
		}

		
		dl = -1.0;

		dx = cubW/3+2;
		dy = cubL/3+2;
		dz = cubH/3+2;
		for ( sdx = [ -1, 0, +1 ] ) {
			for ( sdy = [ -1, 0, +1] ) {
				for ( sdz = [ -1, 0, +1] ) {
					translate([sdx*dx, sdy*dy, sdz*dz])
roundedBox([cubW/3-dl,cubL/3-dl,cubH/3-dl],3, false);
				}
			}
		}
	}
}
//--------------------------------------------------------------------------
//--------------------------------------------------------------------------





--
Sent from: http://forum.openscad.org/



More information about the Discuss mailing list