44 size_t nbPts = sommets.size();
46 for (
size_t i = 0; i < nbPts; i++)
58 glGetFloatv(GL_CURRENT_COLOR, color);
65 if (mode == GL_COMPILE)
69 glColor3f(color[0], color[1], color[2]);
76 size_t nbFaces = faces.size();
85 for (
int i = 0; i < nbFaces; i++)
89 if ((pFace != NULL) && (pFace->
getNbPts() == 4))
92 for (
int j = 0; j < 4; j++)
95 glVertex3f(sommet.
_x, sommet.
_y, sommet.
_z);
102 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)
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(TYElement *pModelerElement=nullptr)
static OBox _globalBoundingBox
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)
void drawLineBoundingBox()
virtual void update(bool force=false)
TYFaceSetGraphic(TYFaceSet *pElement)
virtual void display(TYElement *pModelerElement=nullptr, GLenum mode=GL_RENDER)
virtual ~TYFaceSetGraphic()
virtual void computeBoundingBox()
OPoint3D getPoint(size_t index) const
OPoint3D getCenter() const