Giter Club home page Giter Club logo

openscad-quarter-circle-torus's Introduction

OpenSCAD Quarter Circle/Torus

This repository hosts an OpenSCAD script with a couple of modules for drawing quarter circles and tori.

The recommended installation method is to add this repository as a submodule in your repository and pull in the script with this line:

use <openscad-quarter-circle-torus/quarter-circle-torus.scad>

The documentation for the available modules follows.

quarter_circle

Parameters:

  • side: the side of the enclosing square (default 10)
  • quadrant: the quadrant of the circle to draw (default 0)
    • 0: top left quarter circle
    • 1: bottom left quarter circle
    • 2: bottom right quarter circle
    • 3: top right quarter circle
  • $fn (facet number): built-in OpenSCAD variable for smoothing the round edge
linear_extrude(height = 1)
quarter_circle(quadrant = 0, $fn = 100);

linear_extrude(height = 1)
quarter_circle(quadrant = 1, $fn = 100);

linear_extrude(height = 1)
quarter_circle(quadrant = 2, $fn = 100);

linear_extrude(height = 1)
quarter_circle(quadrant = 3, $fn = 100);

inverted_quarter_circle

Parameters:

  • side: the side of the enclosing square (default 10)
  • quadrant: the inverted quarter of the circle to draw (default 0)
    • 0: top left inverted quarter circle
    • 1: bottom left inverted quarter circle
    • 2: bottom right inverted quarter circle
    • 3: top right inverted quarter circle
  • $fn (facet number): built-in OpenSCAD variable for smoothing the round edge
linear_extrude(height = 1)
inverted_quarter_circle(quadrant = 0, $fn = 100);

linear_extrude(height = 1)
inverted_quarter_circle(quadrant = 1, $fn = 100);

linear_extrude(height = 1)
inverted_quarter_circle(quadrant = 2, $fn = 100);

linear_extrude(height = 1)
inverted_quarter_circle(quadrant = 3, $fn = 100);

quarter_torus

Parameters:

  • angle: the extrusion angle (0-360)
  • radius: the radius of the torus hole
  • side: the bounding square side of the looped quarter circle making the torus (default 10)
  • quadrant: the orientation and type of the slope of the hole (0-3, difficult to explain - just try it)
  • $fn (facet number): built-in OpenSCAD variable for smoothing the round edge
quarter_torus(quadrant = 0, $fn = 100);

quarter_torus(quadrant = 1, $fn = 100);

quarter_torus(quadrant = 2, $fn = 100);

quarter_torus(quadrant = 3, $fn = 100);

inverted_quarter_torus

Parameters:

  • angle: the extrusion angle (0-360)
  • radius: the radius of the inverted torus hole
  • side: the bounding square side of the looped inverted quarter circle making the torus (default 10)
  • quadrant: the orientation and type of the slope of the hole (0-3, difficult to explain - just try it)
  • $fn (facet number): built-in OpenSCAD variable for smoothing the round edge
inverted_quarter_torus(quadrant = 0, $fn = 100);

inverted_quarter_torus(quadrant = 1, $fn = 100);

inverted_quarter_torus(quadrant = 2, $fn = 100);

inverted_quarter_torus(quadrant = 3, $fn = 100);

openscad-quarter-circle-torus's People

Contributors

tomashubelbauer avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.