The spica renderer
|
#include <sphere.h>
Public Member Functions | |
Sphere (const Point3d ¢er, double radius, const Transform &objectToWorld=Transform()) | |
Sphere (const Sphere &sphere) | |
Sphere & | operator= (const Sphere &sphere) |
bool | intersect (const Ray &ray, double *tHit, SurfaceInteraction *isect) const override |
bool | intersect (const Ray &ray) const override |
Interaction | sample (const Point2d &rands) const override |
Interaction | sample (const Interaction &isect, const Point2d &rands) const override |
double | pdf (const Interaction &pObj, const Vector3d &wi) const override |
Bounds3d | objectBound () const override |
double | area () const override |
std::vector< Triangle > | triangulate () const override |
Point3d | center () const |
double | radius () const |
![]() | |
Shape (const Transform &objectToWorld, ShapeType type) | |
Shape (const Shape &s) | |
Shape & | operator= (const Shape &s) |
virtual double | pdf (const Interaction &pObj) const |
virtual Bounds3d | worldBound () const |
ShapeType | type () const |
Additional Inherited Members | |
![]() | |
Transform | objectToWorld_ |
Transform | worldToObject_ |
ShapeType | type_ |
Sphere class.