64 if (TYElement::operator!=(other))
102 for (
int i = 0; i < pOtherFaceSet->
getNbFaces(); i++)
105 pFace->
deepCopy(otherFaces[i], copyId);
121 std::string str =
"TYFaceSet";
122 for (
unsigned int i = 0; i <
_faces.size(); i++)
135 for (
unsigned int i = 0; i <
_faces.size(); i++)
140 pFace->
toXML(domNewElem);
155 QDomNodeList childs = domElement.childNodes();
157 for (
unsigned int i = 0; i < childs.length(); i++)
159 elemCur = childs.item(i).toElement();
225 float x = 0.0f, y = 0.0f, z = 0.0f;
234 for (
size_t i = 0; i < nbPts; i++)
280 int nbIntersects = 0;
282 for (
unsigned int i = 0; i < tabFaces.size(); i++)
295 if ((nbIntersects % 2) != 0)
311 for (
unsigned int i = 0; i <
_faces.size(); i++)
327 for (
unsigned int i = 0; i <
_faces.size(); i++)
346 for (i = 0; i <
_faces.size(); i++)
355 bool notFound =
false;
356 for (i = 0; i <
_faces.size(); i++)
360 for (
int j = 0; j < 4; j++)
364 for (
unsigned int k = 0; k <
_sommets.size(); k++)
387 for (
unsigned int i = 0; i <
_faces.size(); i++)
389 _faces[i]->inverseNormale();
All base classes related to 3D manipulation.
#define INTERS_OUI
The intersection exists.
#define INTERS_NULLE
No intersection.
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)
TY_EXTENSION_INST(TYFaceSet)
TY_EXT_GRAPHIC_INST(TYFaceSet)
double _y
y coordinate of OCoord3D
double _z
z coordinate of OCoord3D
double _x
x coordinate of OCoord3D
virtual const char * getClassName() const
Class to define a segment.
double _sizeX
Dimension en X.
double _sizeZ
Dimension en Z.
double _sizeY
Dimension en Y.
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
virtual DOM_Element toXML(DOM_Element &domElement)
QString _name
Nom courant de l'element.
TYElement & operator=(const TYElement &other)
bool callFromXMLIfEqual(DOM_Element &domElement, int *pRetVal=NULL)
virtual int fromXML(DOM_Element domElement)
virtual void setIsGeometryModified(bool isModified)
virtual DOM_Element toXML(DOM_Element &domElement)
virtual double volume() const
virtual int intersects(const OSegment3D &seg, TYTabPoint &ptList) const
TYTabLPPolygon _faces
Faces.
TYTabVector _normals
Normales.
TYTabPoint _sommets
Sommets.
void transform(const OMatrix &matrix)
virtual TYPoint centreGravite() const
size_t getNbFaces() const
virtual double surface() const
virtual std::string toString() const
bool operator!=(const TYFaceSet &other) const
Operateur !=.
TYFaceSet & operator=(const TYFaceSet &other)
Operateur =.
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
virtual TYTabVector normals() const
virtual void inverseNormales()
bool operator==(const TYFaceSet &other) const
Operateur ==.
virtual int isInside(const TYPoint &pt) const
virtual int fromXML(DOM_Element domElement)
virtual TYTabLPPolygon faces() const
virtual TYTabPoint sommets() const
virtual double activeSurface() const
QString generateName(const char *classname)
Retourne le nom de la classe associe a un nombre.
static TYNameManager * get()
Retourne l'instance singleton.
virtual OVector3D normal() const
OPoint3D getPoint(size_t index) const
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
virtual int intersects(const TYSurfaceInterface *pSurf, OSegment3D &seg) const
void transform(const OMatrix &matrix)
virtual DOM_Element toXML(DOM_Element &domElement)
const TYBox & getVolEnglob() const
virtual int intersects(const OSegment3D &seg, TYTabPoint &ptList) const
virtual TYBox volEnglob() const
void calculRayonSphere(const TYBox &volEnglob)
virtual void calculCentreGravite()
std::string intToStr(int val)