next up previous contents
Next: Metode Up: A.7 Polygon Previous: A.7 Polygon Vsebina: contents

Definicija

class Polygon : public Primitive
{
protected:
vec3 *vList; // seznam vozlisc mnogokotnika
int vertexN; // stevilo vozlisc

public:

Polygon(Vec *vList, int vertices, double color[3],
double prop[5]);
~ Polygon();
virtual double nearestIntersection( vec3& rayDir) const;
virtual vec3& p) const;
virtual void Describe(int indent);
};



Copyright © 1995 Leon Kos, Univerza v Ljubljani