#include <Plane.h>
Inherits Primitive.
Public Member Functions | |
Plane (Material *material, const Vector &n, const Point &point) | |
virtual | ~Plane () |
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. | |
void | normal (Vector &normal) |
Definition at line 18 of file Plane.h.
|
Definition at line 13 of file Plane.cc. References Dot(), and Vector::normalize(). |
|
|
|
Implements Object. |
|
Intersect ray with primitive.
Implements Primitive. Definition at line 24 of file Plane.cc. References Ray::direction(), Dot(), HitRecord::hit(), Primitive::matl, and Ray::origin(). Referenced by Cyl::intersect(). |
|
|
|
Return normal for the hit location. Generally called after all ray-geometry intersection to get the normal for the hit point.
Implements Primitive. |