omdl  v0.9.5
OpenSCAD Mechanical Design Library
constants.scad File Reference

Constant definitions. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Variables

 eps = 0.001
 <decimal> Epsilon, small distance to deal with overlapping shapes.
 
 pi = 3.14159265358979323
 <decimal> The ratio of a circle's circumference to its diameter.
 
 tau = 2*pi
 <decimal> The ratio of a circle's circumference to its radius.
 
 phi = (1 + sqrt(5)) / 2
 <decimal> The golden ratio.
 
 number_max = 1e308
 <decimal> The largest representable number in OpenSCAD scripts.
 
 number_min = -1e308
 <decimal> The smallest representable number in OpenSCAD scripts.
 
 number_inf = 1/0
 The OpenSCAD inf value (infinity).
 
 number_nan = 0/0
 The OpenSCAD nan value (not a number).
 
 empty_str = ""
 <string> A string with no characters (the empty string).
 
 empty_lst = []
 <list> A list with no values (the empty list).
 
 grid_coarse = 0.001
 OpenSCAD coarse grid limit.
 
 grid_fine = 0.000001
 OpenSCAD fine grid limit.
 
 x_axis_ci = 0
 <integer> The coordinate axis index for the Euclidean space x-axis.
 
 y_axis_ci = 1
 <integer> The coordinate axis index for the Euclidean space y-axis.
 
 z_axis_ci = 2
 <integer> The coordinate axis index for the Euclidean space z-axis.
 
 zero2d = [0, 0]
 <decimal-list-2> A 2d zero vector (a list with two zeros).
 
 origin2d = [0, 0]
 <point-2d> The origin point coordinate in 2d Euclidean space.
 
 x_axis2d_uv = [1, 0]
 <vector-2d> The unit vector of the positive x-axis in 2d Euclidean space.
 
 y_axis2d_uv = [0, 1]
 <vector-2d> The unit vector of the positive y-axis in 2d Euclidean space.
 
 x_axis2d_ul = [-x_axis2d_uv, +x_axis2d_uv]
 <line-2d> A positively-directed unit line centered on the x-axis in 2d Euclidean space.
 
 y_axis2d_ul = [-y_axis2d_uv, +y_axis2d_uv]
 <line-2d> A positively-directed unit line centered on the y-axis in 2d Euclidean space.
 
 zero3d = [0, 0, 0]
 <decimal-list-2> A 3d zero vector (a list with three zeros).
 
 origin3d = [0, 0, 0]
 <point-3d> The origin point coordinate in 3-dimensional Euclidean space.
 
 x_axis3d_uv = [1, 0, 0]
 <vector-3d> The unit vector of the positive x-axis in 3d Euclidean space.
 
 y_axis3d_uv = [0, 1, 0]
 <vector-3d> The unit vector of the positive y-axis in 3d Euclidean space.
 
 z_axis3d_uv = [0, 0, 1]
 <vector-3d> The unit vector of the positive z-axis in 3d Euclidean space.
 
 x_axis3d_ul = [-x_axis3d_uv, +x_axis3d_uv]
 <line-3d> A positively-directed unit line centered on the x-axis in 3d Euclidean space.
 
 y_axis3d_ul = [-y_axis3d_uv, +y_axis3d_uv]
 <line-3d> A positively-directed unit line centered on the y-axis in 3d Euclidean space.
 
 z_axis3d_ul = [-z_axis3d_uv, +z_axis3d_uv]
 <line-3d> A positively-directed unit line centered on the z-axis in 3d Euclidean space.
 
 xy_plane_on = [origin3d, z_axis3d_uv]
 <plane> The right-handed xy plane centered at the origin with normal vector.
 
 yz_plane_on = [origin3d, x_axis3d_uv]
 <plane> The right-handed yz plane centered at the origin with normal vector.
 
 zx_plane_on = [origin3d, y_axis3d_uv]
 <plane> The right-handed zx plane centered at the origin with normal vector.
 
 xy_plane_os = [origin3d, [for (r=[[1,1],[1,-1],[-1,-1],[-1,1]]) [r[0],r[1],0]]]
 <plane> The right-handed xy plane centered at the origin with coplanar unit square points.
 
 yz_plane_os = [origin3d, [for (r=[[1,1],[1,-1],[-1,-1],[-1,1]]) [0,r[0],r[1]]]]
 <plane> The right-handed yz plane centered at the origin with coplanar unit square points.
 
 zx_plane_os = [origin3d, [for (r=[[1,1],[1,-1],[-1,-1],[-1,1]]) [r[1],0,r[0]]]]
 <plane> The right-handed zx plane centered at the origin with coplanar unit square points.
 

Detailed Description

Constant definitions.

Author
Roy Allen Sutton
Date
2015-2018

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

Definition in file constants.scad.