Main Page Class Hierarchy Compound List Compound Members Related Pages
Triangle Class ReferenceTriangle is a non-solid object described by three point in space.
More...
#include <Triangle.h>
Inheritance diagram for Triangle
[legend]Collaboration diagram for Triangle:
[legend]List of all members.
Public Types |
| enum | { PROPERTY_POINT1 = 0x0300,
PROPERTY_POINT2 = 0x0301,
PROPERTY_POINT3 = 0x0302
} |
Public Methods |
|
| DECLARE_CLASS (Triangle,Primitive) |
|
| Triangle () |
|
virtual | ~Triangle () |
|
void | update () |
|
virtual void | setProperty (int nProperty,const Variant &value) |
|
virtual void | getProperty (int nProperty,Variant &vValue)const |
|
virtual bool | intersect (Ray *ray,IntersectionList *intersectionList) |
|
virtual Vector3 | getNormalVector (Intersection *intersection) |
|
virtual bool | getBounds (Bounds &bounds)const |
Public Attributes |
|
Vector3 | p1 |
|
Vector3 | p2 |
|
Vector3 | p3 |
Protected Attributes |
|
Vector3 | normal |
|
Vector3 | u |
|
Vector3 | v |
|
double | distance |
Detailed Description
Triangle is a non-solid object described by three point in space.
By using 4 or more triangles a solid object can be described.
The documentation for this class was generated from the following file:
|