omdl  v0.6.1
OpenSCAD Mechanical Design Library
units_resolution.scad File Reference

An abstraction for arc rendering resolution control. More...

#include <../console.scad>
#include <../constants.scad>
#include <units_length.scad>
+ Include dependency graph for units_resolution.scad:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

function resolution_fn (r)
 Return facets number for the given arc radius. More...
 
function resolution_fs ()
 Return minimum facets size. More...
 
function resolution_fa (r)
 Return the minimum facets angle. More...
 
function resolution_reduced ()
 Return the radius at which arc resolution will begin to degrade. More...
 
module resolution_info (r)
 Output resolution information to the console for given radius. More...
 
function resolution_facets (r)
 Return facet count used to render a radius. More...
 
function resolution_facetsv (r)
 Return facet count information list used to render a radius. More...
 

Variables

 $resolution_mode = "fast"
 <string> Global special variable that configures the arc resolution mode.
 
 $resolution_value = 0
 <number> Global special variable for modes that use custom resolutions.
 

Detailed Description

An abstraction for arc rendering resolution control.

Author
Roy Allen Sutton
Date
2015-2017

This file is part of omdl, an OpenSCAD mechanical design library.

The omdl is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

The omdl is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with the omdl; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA; or see http://www.gnu.org/licenses/.

Test:
Review model for accuracy.

Definition in file units_resolution.scad.