1 #include "MeshCut_Cube.hxx"
5 using namespace MESHCUT;
8 Cube::Cube(float _x0, float _x1, float _y0, float _y1, float _z0, float _z1)
18 bool Cube::disjoint(Cube* c2)
20 return (x0 > c2->x1 || x1 < c2->x0 || y0 > c2->y1 || y1 < c2->y0 || z0 > c2->z1 || z1 < c2->z0);
23 bool Cube::contientNoeud(int ngnoeud, Maillage *MAILLAGE)
25 float x = *(MAILLAGE->XX + ngnoeud - 1);
26 float y = *(MAILLAGE->YY + ngnoeud - 1);
27 float z = *(MAILLAGE->ZZ + ngnoeud - 1);
28 return (x >= x0 && x <= x1 && y >= y0 && y <= y1 && z >= z0 && z <= z1);
31 void Cube::affichage()
33 cout << "x0=" << x0 << " ";
34 cout << "x1=" << x1 << " ";
35 cout << "y0=" << y0 << " ";
36 cout << "y1=" << y1 << " ";
37 cout << "z0=" << z0 << " ";
38 cout << "z1=" << z1 << " ";