This is meshsphere.c in view mode; [Download] [Up]
#include "geom.h"
#include "create.h"
#include "meshP.h"
Geom *MeshBoundSphere(mesh, T, space)
Mesh *mesh;
Transform T;
int space;
{
Geom *sphere;
sphere = GeomCreate("sphere", CR_ENCOMPASS_POINTS, mesh->p,
CR_NENCOMPASS_POINTS, (mesh->nu * mesh->nv),
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.