Back to index

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

#include <MeshCut_Carre.hxx>

List of all members.

Public Member Functions

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

Public Attributes

float x0
float x1
float y0
float y1

Detailed Description

Definition at line 27 of file MeshCut_Carre.hxx.


Constructor & Destructor Documentation

Carre::Carre ( float  _x0,
float  _x1,
float  _y0,
float  _y1 
)

Definition at line 27 of file MeshCut_Carre.cxx.

{
  x0 = _x0;
  x1 = _x1;
  y0 = _y0;
  y1 = _y1;
}

Member Function Documentation

void Carre::affichage ( )

Definition at line 47 of file MeshCut_Carre.cxx.

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

Definition at line 40 of file MeshCut_Carre.cxx.

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

Definition at line 35 of file MeshCut_Carre.cxx.

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

Member Data Documentation

Definition at line 30 of file MeshCut_Carre.hxx.

Definition at line 30 of file MeshCut_Carre.hxx.

Definition at line 30 of file MeshCut_Carre.hxx.

Definition at line 30 of file MeshCut_Carre.hxx.


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