CMSC23700 Common Code Library
Support code for CS23700 programming projects
cs237::Sphere Struct Reference

A spherical mesh. More...

#include <cs237-sphere.hxx>

Public Member Functions

 Sphere (float radius=1.0f)
 
 ~Sphere ()
 

Public Attributes

int numTris
 number of triangles in the sphere mesh More...
 
int numVerts
 number of vertices and vertex normals in the mesh More...
 
unsigned short * tris
 array of 3*numTris triangle indices More...
 
vec3fverts
 array of numVerts vertices More...
 
vec3fnorms
 array of numVerts vertex normals More...
 

Detailed Description

A spherical mesh.

Constructor & Destructor Documentation

cs237::Sphere::Sphere ( float  radius = 1.0f)
cs237::Sphere::~Sphere ( )

Member Data Documentation

vec3f* cs237::Sphere::norms

array of numVerts vertex normals

int cs237::Sphere::numTris

number of triangles in the sphere mesh

int cs237::Sphere::numVerts

number of vertices and vertex normals in the mesh

unsigned short* cs237::Sphere::tris

array of 3*numTris triangle indices

vec3f* cs237::Sphere::verts

array of numVerts vertices


The documentation for this struct was generated from the following file: