#include <Sphere.h>
Inheritance diagram for Sphere:
Public Member Functions | |
Sphere () | |
default constructor | |
Sphere (const Vector3 &c, double r) void~Sphere() const Vector3 ¢er() const | |
the sphere center accessor | |
double | radius () const |
the sphere radius accessor | |
int | id (PrimitiveRep *p) const Box3d bbox() const virtual int classify(Vector3 q) const virtual Vector3 point(Real u |
enumeration operator | |
int Real v virtual const Vector3 | normal (Real u, Real v) const virtual Vector3 gradient(const Vector3 &q) const virtual Inode *intersect(const Ray &r) const virtual Polygon *uv_decomp(Real level) const |
parametric decomposition operator | |
virtual Vector3 | texc (Real u, Real v) const virtual Vector3 du(Real u |
first partial derivative operator | |
Static Public Member Functions | |
static Val | parse (int c, Pval *pl) |
parsing operator | |
Data Fields | |
virtual Vector3 Real v virtual const Vector3 dv(Real u, Real v) const virtual AffineTransform local(PrimitiveRep *p) const virtual ofstream &operator< <(ofstream &out) private double | r |
the sphere radius |
The Sphere class implements the Sphere modeling primitive.