[OpenSCAD] Preserve "holes" in module objects

hagen temp4pieter at hotmail.com
Sat May 2 08:01:13 EDT 2015


in theory the following works:

union() 
{ 
        difference()
        {
            cube([300,300,300]);  
            position() hull () subpart();
        }
        position() subpart();         
}

module position()
{
    translate([100,100,220]) children(0);
}

module subpart() 
{
    difference()
    { 
        cube([100,100,100]);
        translate([50, 50, 10]) cylinder(r=10, h=100);
    }
}

in practice it is probably a bit expensive and it could lead to non-manifold
models 



--
View this message in context: http://forum.openscad.org/Preserve-holes-in-module-objects-tp12539p12545.html
Sent from the OpenSCAD mailing list archive at Nabble.com.




More information about the Discuss mailing list