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

Polytope shapes, conversions, properties, and tests functions. More...

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

Go to the source code of this file.

Functions

General
function polytope_faces2edges (f)
 List the edge coordinate index pairs of a polytope. More...
 
function polytope_line (c, f, e, i, l, r=false)
 Get a line from an edge or any two vetices of a polytope. More...
 
function polytope_limits (c, f, a, d, s=true)
 Determine the bounding limits of a polytope. More...
 
function polytope_bounding_box_pf (c, f, a)
 Generate a bounding box polytope for another polytope in 3d or 2d. More...
 
function polytope_ft_triangulate (f)
 Triangulate the faces of a convex polytope using fan triangulation. More...
 
Adjacents
function polytope_vertex_adjacent_vertices (f, i)
 List the adjacent vertices for a given polytope vertex. More...
 
function polytope_vertex_adjacent_faces (f, i)
 List the adjacent face indexes for a polytope vertex. More...
 
function polytope_edge_adjacent_faces (f, e, i)
 List the adjacent face indexes for a polytope edge. More...
 
Normals
function polytope_vertex_normal (c, f, i)
 Get a normal vector for a polytope vertex. More...
 
function polytope_edge_normal (c, f, e, i)
 Get a normal vector for a polytope edge. More...
 
function polytope_face_normal (c, f, i, l, cw=true)
 Get the normal vector of a polytope face. More...
 
Faces
function polytope_face_mean (c, f, i, l)
 Get the mean coordinate of all vertices of a polytope face. More...
 
function polytope_face_mean_normal (c, f, i, l, cw=true)
 Get the mean coordinate and normal vector of a polytope face. More...
 
function polytope_face_plane (c, f, i, l, cw=true)
 Get a plane for a polytope face. More...
 
function polytope_face_vertex_counts (f)
 List the vertex counts for all polytope faces. More...
 
function polytope_face_angles (c, f)
 List the angles between all adjacent faces of a polyhedron. More...
 
Edges
function polytope_edge_lengths (c, e)
 List the edge lengths of a polytope. More...
 
function polytope_edge_angles (c, f)
 List the adjacent edge angles for each polytope vertex. More...
 
Tests
function polytope_faces_are_regular (c, f, e, d=6)
 Test if the faces of a polytope are all regular. More...
 

Detailed Description

Polytope shapes, conversions, properties, and tests functions.

Author
Roy Allen Sutton
Date
2017-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 polytope.scad.