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.
Parameters:
side
: the side of the enclosing square (default10
)quadrant
: the quadrant of the circle to draw (default0
)0
: top left quarter circle1
: bottom left quarter circle2
: bottom right quarter circle3
: 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);
Parameters:
side
: the side of the enclosing square (default10
)quadrant
: the inverted quarter of the circle to draw (default0
)0
: top left inverted quarter circle1
: bottom left inverted quarter circle2
: bottom right inverted quarter circle3
: 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);
Parameters:
angle
: the extrusion angle (0-360)radius
: the radius of the torus holeside
: the bounding square side of the looped quarter circle making the torus (default10
)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);
Parameters:
angle
: the extrusion angle (0-360)radius
: the radius of the inverted torus holeside
: the bounding square side of the looped inverted quarter circle making the torus (default10
)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);