#include <Ring.h>
Inherits Primitive.
Public Member Functions | |
Ring (Material *material, const Point ¢er, const Vector &n, const double r1, const double r2=0.0) | |
virtual | ~Ring () |
virtual void | getBounds (BoundingBox &bbox) const |
virtual void | intersect (HitRecord &hit, const RenderContext &context, const Ray &ray) const |
Intersect ray with primitive. | |
virtual void | normal (Vector &normal, const RenderContext &context, const Point &hitpos, const Ray &ray, const HitRecord &hit) const |
Return normal for the hit location. Generally called after all ray-geometry intersection to get the normal for the hit point. |
Definition at line 19 of file Ring.h.
|
Definition at line 14 of file Ring.cc. References Dot(), and Vector::normalize(). |
|
|
|
Implements Object. Definition at line 53 of file Ring.cc. References BoundingBox::extend(). |
|
Intersect ray with primitive.
Implements Primitive. Definition at line 28 of file Ring.cc. References Ray::direction(), Dot(), HitRecord::hit(), Vector::length2(), Primitive::matl, and Ray::origin(). |
|
Return normal for the hit location. Generally called after all ray-geometry intersection to get the normal for the hit point.
Implements Primitive. |