Image Component Library (ICL)
|
triangle primitive More...
#include <Primitive.h>
Public Types | |
typedef math::FixedColVector < int, 6 > | super |
super type | |
Public Member Functions | |
TrianglePrimitive (int a, int b, int c, const GeomColor &color, int na=-1, int nb=-1, int nc=-1) | |
constructor | |
virtual ICLGeom_API void | render (const Primitive::RenderContext &ctx) |
render method | |
int | i (int idx) const |
direct access to the i-th vertex/normal index | |
virtual Primitive * | copy () const |
deep copy implementation (trivial) | |
ICLGeom_API Vec | computeNormal (const std::vector< Vec > &vertices) const |
computes the normal for this triangle |
triangle primitive
typedef math::FixedColVector<int,6> icl::geom::TrianglePrimitive::super |
super type
Reimplemented from icl::math::FixedColVector< int, 6 >.
icl::geom::TrianglePrimitive::TrianglePrimitive | ( | int | a, |
int | b, | ||
int | c, | ||
const GeomColor & | color, | ||
int | na = -1 , |
||
int | nb = -1 , |
||
int | nc = -1 |
||
) | [inline] |
constructor
ICLGeom_API Vec icl::geom::TrianglePrimitive::computeNormal | ( | const std::vector< Vec > & | vertices | ) | const |
computes the normal for this triangle
Given the parent SceneObject's vertex vector
virtual Primitive* icl::geom::TrianglePrimitive::copy | ( | ) | const [inline, virtual] |
deep copy implementation (trivial)
Implements icl::geom::Primitive.
int icl::geom::TrianglePrimitive::i | ( | int | idx | ) | const [inline] |
direct access to the i-th vertex/normal index
virtual ICLGeom_API void icl::geom::TrianglePrimitive::render | ( | const Primitive::RenderContext & | ctx | ) | [virtual] |
render method
Implements icl::geom::Primitive.