ftp.nice.ch/pub/next/graphics/3d/geomview.1.4.1.s.tar.gz#/Geomview/src/lib/gprim/mesh/meshsphere.c

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.