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

Drafting base functions and primitives. More...

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

Go to the source code of this file.

Functions

Layers
function draft_layers_any_active (layers=draft_get_config("layers-default"))
 Check if any identified layers are active. More...
 
Placement
function draft_sheet_get_zone (rx, ry, ix, iy, zp=0, window=false, frame=false)
 Get sheet, sheet-frame, or sheet-zone reference coordinates. More...
 
Tables
function draft_table_get_cell (ix, iy, zp=0, limits=false, window=false, map, fmap)
 Get table cell coordinates given a column and row. More...
 
module draft_table_text (ix, iy, text, size, dfmt, map, fmap)
 Add text to table cell at a given a column and row. More...
 
function draft_ztable_get_zone (i, zp=0, limits=false, window=false, map)
 Get ztable zone coordinates given a zone index. More...
 
module draft_ztable_text (i, text, size, fmt, dfmt, map)
 Add text to ztable at a given zone index. More...
 
Shapes
module draft_line_pp (i, t, w=1)
 Draft a simple line from an initial to a terminal point. More...
 
module draft_arrow (l=x_axis2d_ul, w=1, s=1)
 Draft an arrowhead at the terminal point of a line. More...
 
module draft_line (l=x_axis2d_ul, w=1, s=1, a1=0, a2=0)
 Draft a line with configurable style and optional arrowheads. More...
 
module draft_arc (r=1, c=origin2d, v1=x_axis2d_uv, v2=x_axis2d_uv, fn, cw=true, w=1, s=1, a1=0, a2=0)
 Draft an arc with configurable style and optional arrowheads. More...
 
module draft_rectangle (d=1, c=origin2d, w=1, s=1)
 Draft a rectangle with configurable style. More...
 
module draft_polygon (c, p, e, i=true, w=1, s=1)
 Draft a polygon with configurable style. More...
 
Miscellaneous
module draft_make_3d_if_configured ()
 Extrude 2D drafted constructions to 3D if configured. More...
 

Detailed Description

Drafting base functions and primitives.

Author
Roy Allen Sutton
Date
2019

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 primitive.scad.