00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #if defined(_MSC_VER)
00025 #pragma once
00026 #endif
00027
00028 #ifndef PBRT_SHAPES_PARABOLOID_H
00029 #define PBRT_SHAPES_PARABOLOID_H
00030
00031
00032 #include "shape.h"
00033
00034
00035 class Paraboloid : public Shape {
00036 public:
00037
00038 Paraboloid(const Transform *o2w, const Transform *w2o, bool ro, float rad,
00039 float z0, float z1, float tm );
00040 BBox ObjectBound() const;
00041 bool Intersect(const Ray &ray, float *tHit, float *rayEpsilon,
00042 DifferentialGeometry *dg) const;
00043 bool IntersectP(const Ray &ray) const;
00044 float Area() const;
00045 protected:
00046
00047 float radius;
00048 float zmin, zmax;
00049 float phiMax;
00050 };
00051
00052
00053 Paraboloid *CreateParaboloidShape(const Transform *o2w, const Transform *w2o,
00054 bool reverseOrientation, const ParamSet ¶ms);
00055
00056 #endif // PBRT_SHAPES_PARABOLOID_H