This is vectsphere.c in view mode; [Download] [Up]
#include "geom.h"
#include "create.h"
#include "vectP.h"
Geom *VectBoundSphere(vect, T, space)
Vect *vect;
Transform T;
int space;
{
Geom *sphere;
sphere = GeomCreate("sphere", CR_ENCOMPASS_POINTS, vect->p,
CR_NENCOMPASS_POINTS, vect->nvert,
CR_AXIS, T, CR_SPACE, space, CR_END);
return sphere;
}
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.