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

Roundable polygons generated in 2D space. More...

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

Go to the source code of this file.

Functions

Rounding
module pg_corner_round (r=1, m=1, c=origin2d, v1=x_axis2d_uv, v2=y_axis2d_uv)
 A polygon edge round with constant radius between two vectors. More...
 
Round side general
module pg_rectangle_rs (size=1, o, sr, center=false)
 A polygon rectangle with side rounding. More...
 
Round vertex general
module pg_elliptical_sector (r=1, c=origin2d, v1=x_axis2d_uv, v2=x_axis2d_uv, s=true)
 A polygon elliptical sector. More...
 
module pg_trapezoid (b=1, h, l=1, a=90, o=origin2d, vr, vrm=1, vfn, center=false)
 A polygon trapezoid with individual vertex rounding and arc facets. More...
 
module pg_rectangle (size=1, o, vr, vrm=1, vfn, center=false)
 A polygon rectangle with vertex rounding. More...
 
module pg_rhombus (size=1, o, vr, vrm=1, vfn, center=false)
 A polygon rhombus with vertex rounding. More...
 
module pg_ngon (n=3, r=1, o, vr, vrm=1, vfn, center=true)
 A n-sided regular polygon with vertex rounding. More...
 
Round vertex triangles
module pg_triangle_ppp (c, o, vr, vrm=1, vfn, cm=0)
 A polygon triangle specified by three coordinate points with vertex rounding. More...
 
module pg_triangle_sss (v, a=x_axis_ci, o, vr, vrm=1, vfn, cm=0)
 A polygon triangle specified by three side lengths with vertex rounding. More...
 
module pg_triangle_sas (v, a=x_axis_ci, o, vr, vrm=1, vfn, cm=0)
 A polygon triangle specified by size-angle-size with vertex rounding. More...
 
module pg_triangle_asa (v, a=x_axis_ci, o, vr, vrm=1, vfn, cm=0)
 A polygon triangle specified by angle-size-angle with vertex rounding. More...
 
module pg_triangle_aas (v, a=x_axis_ci, o, vr, vrm=1, vfn, cm=0)
 A polygon triangle specified by angle-angle-size with vertex rounding. More...
 

Detailed Description

Roundable polygons generated in 2D space.

Author
Roy Allen Sutton
Date
2019-2024

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