#include #include "polygon3d.h" void Polygon3D::init(float r, int nv) { n_points = nv; radius = r; normal.setValue(0.0, 0.0, 1.0); center.setValue(0.0, 0.0, 0.0); points = new SbVec3f[n_points]; float dfi = (M_PI * 2) / n_points; for (int i=0; i