Chamfered primitives for OpenSCAD (Also: Wedges)

by TimeWaster, published

Chamfered primitives for OpenSCAD (Also: Wedges) by TimeWaster Jan 30, 2016


A part of these Groups

View All


Liked By

View All

Give a Shout Out

If you print this Thing and display it in public proudly give attribution by printing and displaying this tag.

Print Thing Tag

Thing Statistics

3287Views 711Downloads Found in 3D Printing


A library to create primitives with 45° chamfers in OpenSCAD.

What it does

The commands chamferCube and chamferCylinder can be used to create chamfered versions of the existing cube and cylinder commands.

The Chamfers are always at a 45° angle to the ground plane and are printable on Fused deposition modelling (FDM) printers in a good quality.


  • The chamferCylinder can also produce a circular sector (wedge), what the cylinder command cannot
  • The circleSegments function calculates the amount of segments needed for a certain circle radius, it reproduces a much better quality than $fa and $fs settings
  • A globalCircleQuality variable can be set to globally override the standard setting of 1.0, but the quality setting in chamferCylinder stil has precedence over this variable

GitHub repo


  • Download the library from GitHub
  • Unpack it to OpenSCAD\libraries
  • Restart OpenSCAD


  • Open your console
  • Go to OpenSCAD\libraries
  • Run git clone https://github.com/SebiTimeWaster/Chamfers-for-OpenSCAD.git
  • Restart OpenSCAD


Don't forget to import the library to your script by adding this to the first line:
use <Chamfers-for-OpenSCAD/Chamfer.scad>;

Please read the documentation in Demo.scad to see how to use it.


These things where built with this library:
Yet Another Bottle Opener (YABO)
YACFS - Yet Another Coin Fidget Spinner (Parameterizable)
Box, Chamfered, Parameterizable, 1.5 mm wall thickness

More from 3D Printing

view more

All Apps

Upgrade this Thing with Thingiverse Apps

No results.

thanks for your job, all is perfect, a real help to design

Thanks for the effort creating this library, it is very useful.