discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: [OpenSCAD] how to make this object

R
runsun
Wed, Sep 30, 2015 8:56 PM
  1. Make a cylinder

  2. Make a cube, with the z-side longer than the cylinder

  3. Move cube to the edge of cylinder

  4. Use the difference() function to subtract the cube from the cylinder


$  Runsun Pan, PhD

$ libs: doctest , faces ( git ), offliner ( git ), runscad.py ;

$ tips: hash( 1 , 2 ), sweep , var , lerp , animGif

--
View this message in context: http://forum.openscad.org/how-to-make-this-object-tp14039p14040.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

1) Make a cylinder 2) Make a cube, with the z-side longer than the cylinder 3) Move cube to the edge of cylinder 4) Use the difference() function to subtract the cube from the cylinder ----- $ Runsun Pan, PhD $ libs: doctest , faces ( git ), offliner ( git ), runscad.py ; $ tips: hash( 1 , 2 ), sweep , var , lerp , animGif -- View this message in context: http://forum.openscad.org/how-to-make-this-object-tp14039p14040.html Sent from the OpenSCAD mailing list archive at Nabble.com.
U
ufomorace
Fri, Oct 2, 2015 12:52 AM

this will do it, to regulate the angle prefectly you can make a cube that
cuts the cylinder in half and then union two half cylinders, with one
rotated 0-180 degrees to get 0-180 pie sections.

add this to windows sidebar: http://www.openscad.org/cheatsheet/

check these codes:
http://forum.openscad.org/Creating-pie-pizza-slice-shape-need-a-dynamic-length-array-td3148.html

--
View this message in context: http://forum.openscad.org/how-to-make-this-object-tp14039p14043.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

this will do it, to regulate the angle prefectly you can make a cube that cuts the cylinder in half and then union two half cylinders, with one rotated 0-180 degrees to get 0-180 pie sections. add this to windows sidebar: http://www.openscad.org/cheatsheet/ check these codes: http://forum.openscad.org/Creating-pie-pizza-slice-shape-need-a-dynamic-length-array-td3148.html -- View this message in context: http://forum.openscad.org/how-to-make-this-object-tp14039p14043.html Sent from the OpenSCAD mailing list archive at Nabble.com.
U
ufomorace
Fri, Oct 2, 2015 9:18 AM

here is the same as the sketch with a diameter of 4mm, change one of the cube
resize values to change the notch width. check the cylinder in the manual to
change the number of vertices on it.

--
View this message in context: http://forum.openscad.org/how-to-make-this-object-tp14039p14044.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

here is the same as the sketch with a diameter of 4mm, change one of the cube resize values to change the notch width. check the cylinder in the manual to change the number of vertices on it. -- View this message in context: http://forum.openscad.org/how-to-make-this-object-tp14039p14044.html Sent from the OpenSCAD mailing list archive at Nabble.com.