Back to index

salome-smesh  6.5.0
Public Member Functions | Public Attributes
MESHCUT::Cube Class Reference

#include <MeshCut_Cube.hxx>

List of all members.

Public Member Functions

 Cube (float _x0, float _x1, float _y0, float _y1, float _z0, float _z1)
bool disjoint (Cube *c2)
bool contientNoeud (int ngnoeud, Maillage *MAILLAGE)
void affichage ()

Public Attributes

float x0
float x1
float y0
float y1
float z0
float z1

Detailed Description

Definition at line 27 of file MeshCut_Cube.hxx.


Constructor & Destructor Documentation

Cube::Cube ( float  _x0,
float  _x1,
float  _y0,
float  _y1,
float  _z0,
float  _z1 
)

Definition at line 27 of file MeshCut_Cube.cxx.

{
  x0 = _x0;
  x1 = _x1;
  y0 = _y0;
  y1 = _y1;
  z0 = _z0;
  z1 = _z1;
}

Member Function Documentation

void Cube::affichage ( )

Definition at line 50 of file MeshCut_Cube.cxx.

{
  cout << "x0=" << x0 << " ";
  cout << "x1=" << x1 << " ";
  cout << "y0=" << y0 << " ";
  cout << "y1=" << y1 << " ";
  cout << "z0=" << z0 << " ";
  cout << "z1=" << z1 << " ";
}
bool Cube::contientNoeud ( int  ngnoeud,
Maillage MAILLAGE 
)

Definition at line 42 of file MeshCut_Cube.cxx.

{
  float x = *(MAILLAGE->XX + ngnoeud - 1);
  float y = *(MAILLAGE->YY + ngnoeud - 1);
  float z = *(MAILLAGE->ZZ + ngnoeud - 1);
  return (x >= x0 && x <= x1 && y >= y0 && y <= y1 && z >= z0 && z <= z1);
}
bool Cube::disjoint ( Cube c2)

Definition at line 37 of file MeshCut_Cube.cxx.

{
  return (x0 > c2->x1 || x1 < c2->x0 || y0 > c2->y1 || y1 < c2->y0 || z0 > c2->z1 || z1 < c2->z0);
}

Member Data Documentation

Definition at line 30 of file MeshCut_Cube.hxx.

Definition at line 30 of file MeshCut_Cube.hxx.

Definition at line 30 of file MeshCut_Cube.hxx.

Definition at line 30 of file MeshCut_Cube.hxx.

Definition at line 30 of file MeshCut_Cube.hxx.

Definition at line 30 of file MeshCut_Cube.hxx.


The documentation for this class was generated from the following files: