Create OpenSCAD primitives with 45° chamfers
A library to create primitives with 45° chamfers in OpenSCAD.
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.
Additionally
chamferCylinder
can also produce a circular sector (wedge), what the cylinder command cannotcircleSegments
function calculates the amount of segments needed for a certain circle radius, it reproduces a much better quality than $fa and $fs settingsglobalCircleQuality
variable can be set to globally override the standard setting of 1.0, but the quality setting in chamferCylinder
stil has precedence over this variableFirst find out where your library folder is by opening OpenSCAD and clicking "File -> Show Library Folder", then do:
OR
git clone https://github.com/SebiTimeWaster/Chamfers-for-OpenSCAD.git
Don't forget to import the library to your script by adding this to the first line:
include <Chamfers-for-OpenSCAD/Chamfer.scad>;
Please read the documentation in Demo.scad to see how to use it.
v1.2:
v1.1:
v1.0:
chamferCube
and chamferCylinder
to work similar to the original cube
and cylinder
commands. This is not a breaking change, but please contact me should you encounter compatibility problems.v0.4:
v0.3:
v0.2: