Antiprism 0.23
Public Member Functions

dihedron Class Reference

Make a dihedron. More...

#include <polygons.h>

Inheritance diagram for dihedron:
Inheritance graph
[legend]
Collaboration diagram for dihedron:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 dihedron (int N, int D=1)
 Constructor.
 dihedron (polygon &pgon)
 Constructor.
void make_poly_part (geom_if &geom)
 Make a part of (or a complete) polygon-based polyhedron.

Detailed Description

Make a dihedron.


Constructor & Destructor Documentation

dihedron::dihedron ( int  N,
int  D = 1 
) [inline]

Constructor.

Base polygon in form {N/D} (with N/D not necessarily in lowest form.)

Parameters:
Nnumber of sides to the (compound) polygon.
Dthe number of vertices stepped by an edge (default 1)
dihedron::dihedron ( polygon pgon) [inline]

Constructor.

Parameters:
pgonpolygon to base the polyhedron on.

Member Function Documentation

void dihedron::make_poly_part ( geom_if geom) [virtual]

Make a part of (or a complete) polygon-based polyhedron.

Make a non-compound polyhedron, using num_sides and step for {n/d}. If parts is greater than 1 then polygon::make_poly will make a compound by repeating this polyhedron parts times.

Parameters:
geoma geometry to return the polyhedron.

Reimplemented from polygon.


The documentation for this class was generated from the following files: