• Models
  • Contests
  • Slicer
  • Login
  • Start Here
    thingiverse-iconprintables-iconcults3d-iconmakerworld-iconmyminifactory-icon

    3D GO

    3D ModelsContestsCollectionsSaved ModelsOn a mobile device?

3D GO

Privacy Policy
cylinder2 - extend OpenSCAD sphere/cylinder/circle to other round shapes 3D Printer File Image 1
cylinder2 - extend OpenSCAD sphere/cylinder/circle to other round shapes 3D Printer File Thumbnail 1

cylinder2 - extend OpenSCAD sphere/cylinder/circle to other round shapes

net_id avatarnet_id

July 28, 2021

thingiverse-icon
DescriptionCommentsTags

Description

Drawing footballs, tubes, pipes, pie segments, 'D' shafts and more in 1 line of OpenSCAD ==================================================================== OR Extending OpenSCAD 'sphere', 'cylinder' and 'circle' primitives ---------------------------------------------------------------------------------------- According to Plato "Necessity is the mother of invention" as so it was for me. I needed a 'D' shaped hole to fit over the same shape on a motor shaft. I also needed curved slots to allow mounting bolts, arranged in a cicle, to be adjusted by rotating them as a group. Solution: Extend the 'circle' and 'cylinder' OpenSCAD primitives In cylinder2.scad are 2 new functions 'cylinder2' and 'circle2' 'circle2' can do everything that 'circle' does given the same parameters and much MORE. 'cylinder2' can do everything that 'cylinder' does given the same parameters and much MORE all in one call. Draw a tube or pipe is much easier (no need to use difference): `cylinder2(h=20,d=20,ri=8); // A tube with Radius Inside = 8` Draw a 'D' shaped cylinder: `cylinder2(h=10,d=15,deg=280); // Cylinder with DEG = 280 rounded ` Draw a pie segment: `cylinder2(h=20,d=20,deg=55,efn=2); // Half cylinder (from 0 to 55 DEGrees), End faces number = 2` Draw a curved bar: `cylinder2(h=20,d=20,ri=5,deg=80,sd=45,efn=0,$fn=7); // Tube 45-125, straight ends, 7 faces` To use it: Download cylinder2.scad and place it with your scad files or in your OpenSCAD library directory Add the next line to you .scad file: `use ;` Then use 'sphere2', 'cylinder2' or 'circle2' instead of their original functions. See the other examples and a large list in cylinder2-all Update: ====== Extending 'cylinder2' to 'sphere2' has been the next step. The additional features now include: Spheres ----------- * Stretched spheres (like a football) * Partial spheres (% complete from bottom to top, 50% is a hemisphere) * Hollow spheres * Spheres from circle2 objects Cylinders ------------- * Extended cylinders (curved ends with 1 or 2 straight sides) * Cylinder with concave circle cutout * Optional rounded top and/or bottom edges NB: There has been a change in the results for efn=1

License:

Creative Commons - Attribution

Related Models

Parametric Hinge preview image

Parametric Hinge

rohingosling profile image

rohingosling

51,966

Fillet Radius Finder (Inner/Outer) - Design Reference Ruler 1 to 12mm preview image

Fillet Radius Finder (Inner/Outer) - Design Reference Ruler 1 to 12mm

victornpb profile image

victornpb

16,178

Circle preview image

Circle

repair3D profile image

repair3D

386

The Ultimate box maker preview image

The Ultimate box maker

Heartman profile image

Heartman

24,008

LED Ring Lamp preview image

LED Ring Lamp

Luke's 3D profile image

Luke's 3D

4,827

Circle Marker Tool preview image

Circle Marker Tool

OBE_Design profile image

OBE_Design

732

Sweeping 2-line name plate (text) preview image

Sweeping 2-line name plate (text)

makkuro profile image

makkuro

22,225

Iris Compass Circle Drawing (Easy to assemble) preview image

Iris Compass Circle Drawing (Easy to assemble)

Ishdo profile image

Ishdo

3,572