Functions

prism.cpp File Reference

#include "prism.h"
Include dependency graph for prism.cpp:

Go to the source code of this file.

Functions

void createRegularPrism (IN int nSides, IN float radius, IN float height, IO point3d_t *points)
 creates a 3D prism whose base is a regular N-polygon, with specified radius and height.

Function Documentation

void createRegularPrism ( IN int  nSides,
IN float  radius,
IN float  height,
IO point3d_t points 
)

creates a 3D prism whose base is a regular N-polygon, with specified radius and height.

Caller must provide an array big enough to hold 2*nSides points. That array is populated on output. The polygons are in the xz plane, separated by distance height in the y direction.

Definition at line 55 of file prism.cpp.