discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: [OpenSCAD] Approach to recreate this in OpenSCAD?

R
runsun
Mon, Oct 31, 2016 2:11 PM

Or you can try something similar to this:

difference()
{
difference()
{
cylinder(r=5, h=7,$fn=8);
translate([0,0,1])cylinder(r=4, h=7,$fn=8);
}
translate( [0,-5,4])
cube( size=10, center=true );
rotate([0,0,-360/8])
translate( [0,-5,4])
cube( size=10, center=true );
}


$  Runsun Pan, PhD $ libs: doctest , faces ( git ), offline doc ( git ), runscad.py ( 2 , git ), synwrite ( 2 );   $ tips: hash ( 2 ), matrix ( 2 , 3 ), sweep ( 2 , 3 ), var ( 2 ), lerp , animation ( gif , prodVid , animlib ), precision ( 2 ), xl-control , type , rounded polygon , chfont , tailRecur ( 2, 3 ), isosphere ( 2 ), area , vol/center , RGB , CurvedImg , tests ( 2 ); $ Apps: rollApp , blockscad , openjscad , on AWS ( pdf )

View this message in context: http://forum.openscad.org/Approach-to-recreate-this-in-OpenSCAD-tp18813p18839.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Or you can try something similar to this: > difference() > { > difference() > { > cylinder(r=5, h=7,$fn=8); > translate([0,0,1])cylinder(r=4, h=7,$fn=8); > } > translate( [0,-5,4]) > cube( size=10, center=true ); > rotate([0,0,-360/8]) > translate( [0,-5,4]) > cube( size=10, center=true ); > } ----- $ Runsun Pan, PhD $ libs: doctest , faces ( git ), offline doc ( git ), runscad.py ( 2 , git ), synwrite ( 2 );   $ tips: hash ( 2 ), matrix ( 2 , 3 ), sweep ( 2 , 3 ), var ( 2 ), lerp , animation ( gif , prodVid , animlib ), precision ( 2 ), xl-control , type , rounded polygon , chfont , tailRecur ( 2, 3 ), isosphere ( 2 ), area , vol/center , RGB , CurvedImg , tests ( 2 ); $ Apps: rollApp , blockscad , openjscad , on AWS ( pdf ) -- View this message in context: http://forum.openscad.org/Approach-to-recreate-this-in-OpenSCAD-tp18813p18839.html Sent from the OpenSCAD mailing list archive at Nabble.com.