Git Product home page Git Product logo

chamfers-for-openscad's Introduction

Chamfered primitives for OpenSCAD

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.

Demo of possiblities with chamfers

Additionally

  • 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

Installation

First find out where your library folder is by opening OpenSCAD and clicking "File -> Show Library Folder", then do:

  • Download the library
  • Unpack it to the library folder
  • Restart OpenSCAD

OR

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

Usage

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.

Changelog

v1.1:

v1.0:

  • Changed parameters of 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.
  • Changed license from GPL 3.0 to Creative Commons license to give users more freedom.

v0.4:

  • Added separate chamfer parameters for the top and bottom sides of cylinders

v0.3:

  • Added a global override for the standard circle quality

v0.2:

  • Added new circle quality feature (segment calculator) which introduces an incompatibility with v0.1
  • Prevented cylinders with height 0 from being created when setting chamferHeight to 0

chamfers-for-openscad's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.