#include "prism.h"
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. | |
| 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.
1.7.1