#include <Vertex.h>
Public Member Functions | |
Vertex () | |
Vertex (const Point3D &pos) | |
Vertex (const Point3D &pos, const Vec3D no) | |
Vertex (const Point3D &pos, const Vec3D no, const Point2D te) | |
virtual | ~Vertex () |
void | setPos (const Point3D &pos) |
void | setNormal (const Vec3D no) |
void | setUV (const Point2D te) |
const Point3D & | pos () |
const Vec3D & | normal () |
const Point2D & | uv () |
Private Attributes | |
Point3D | p |
Vec3D | n |
Point2D | tex |
Definition at line 12 of file Vertex.h.
rcrt::Vertex::Vertex | ( | ) |
Definition at line 7 of file Vertex.cpp.
rcrt::Vertex::Vertex | ( | const Point3D & | pos | ) |
Definition at line 12 of file Vertex.cpp.
Definition at line 17 of file Vertex.cpp.
Definition at line 22 of file Vertex.cpp.
rcrt::Vertex::~Vertex | ( | ) | [virtual] |
Definition at line 27 of file Vertex.cpp.
void rcrt::Vertex::setPos | ( | const Point3D & | pos | ) |
void rcrt::Vertex::setNormal | ( | const Vec3D | no | ) |
void rcrt::Vertex::setUV | ( | const Point2D | te | ) |
const Point3D & rcrt::Vertex::pos | ( | ) |
Definition at line 50 of file Vertex.cpp.
References p.
Referenced by rcrt::DisplacedTriangle::baseIntersect(), rcrt::Triangle::clipPlane(), rcrt::DisplacedTriangle::DisplacedTriangle(), rcrt::Triangle::getPoint(), rcrt::Triangle::intersect(), rcrt::DisplacedTriangle::intersect(), rcrt::Triangle::Triangle(), and rcrt::Triangle::updateBox().
const Vec3D & rcrt::Vertex::normal | ( | ) |
Definition at line 56 of file Vertex.cpp.
References n.
Referenced by rcrt::DisplacedTriangle::DisplacedTriangle(), and rcrt::Triangle::getSNormal().
const Point2D & rcrt::Vertex::uv | ( | ) |
Definition at line 62 of file Vertex.cpp.
References tex.
Referenced by rcrt::Triangle::getUV(), and rcrt::Triangle::Triangle().
Point3D rcrt::Vertex::p [private] |
Vec3D rcrt::Vertex::n [private] |
Point2D rcrt::Vertex::tex [private] |