80 return _vertices[index];
85 return _colors[index];
96 _vertices[index] = iVertex;
101 _colors[index] = iColor;
122 v.visitTriangleRep(*
this);
Base class for all shapes. Inherits from BasicObjects for references counter management (addRef,...
ATTR_WARN_UNUSED_RESULT const BMVert * v2
ATTR_WARN_UNUSED_RESULT const BMVert * v
virtual void accept(SceneVisitor &v)
void setColor(int index, const Vec3r &iColor)
TriangleRep(const Vec3r &v0, const Vec3r &v1, const Vec3r &v2)
void setStyle(const TRIANGLE_STYLE iStyle)
TriangleRep(const Vec3r &v0, const Vec3r &c0, const Vec3r &v1, const Vec3r &c1, const Vec3r &v2, const Vec3r &c2)
virtual void ComputeBBox()
const Vec3r & vertex(int index) const
const TRIANGLE_STYLE style() const
void setColors(const Vec3r &c0, const Vec3r &c1, const Vec3r &c2)
void setVertices(const Vec3r &v0, const Vec3r &v1, const Vec3r &v2)
virtual void accept(SceneVisitor &v)
const Vec3r & color(int index) const
void setVertex(int index, const Vec3r &iVertex)