45 size_t nbPts = sommets.size();
47 for (
size_t i = 0; i < nbPts; i++)
60 glGetFloatv(GL_CURRENT_COLOR, color);
65 glColor3f(color[0], color[1], color[2]);
72 size_t nbFaces = faces.size();
81 for (
int i = 0; i < nbFaces; i++)
85 if ((pFace != NULL) && (pFace->
getNbPts() == 4))
88 for (
int j = 0; j < 4; j++)
91 glVertex3f(sommet.
_x, sommet.
_y, sommet.
_z);
98 glNormal3f(normal.
_x, normal.
_y, normal.
_z);
std::vector< TYPoint > TYTabPoint
Collection de TYPoint.
std::vector< OVector3D > TYTabVector
Collection de OVector3D.
std::vector< LPTYPolygon > TYTabLPPolygon
Collection de pointeurs de TYPolygon.
Representation d'un ensemble de faces (fichier header)
Contexte de rendu utilisé par les fonctions d'affichage.
@ Overlay
The current render pass is for overlay elements.
virtual void Enlarge(const OPoint3D &pt)
Enlarge the box with the point if the point is outside the box.
double _y
y coordinate of OCoord3D
double _z
z coordinate of OCoord3D
double _x
x coordinate of OCoord3D
classe graphique pour un element de base
void drawName(TYRenderContext &renderContext)
bool _visible
Inique si l'element est visible.
static bool _gDrawNormals
Indique si les normals doivent etre visible.
bool _highlight
Indique si le highlight est active pour cet element.
void displayNormal(OVector3D normal, OPoint3D p1)
virtual void update(bool force=false)
virtual void update(bool force=false)
virtual void display(TYRenderContext &renderContext)
TYFaceSetGraphic(TYFaceSet *pElement)
virtual ~TYFaceSetGraphic()
virtual OBox computeBoundingBox() const
OPoint3D getPoint(size_t index) const
OPoint3D getCenter() const