Version: 6.3.1
Public Member Functions | Data Fields

MESHCUT.Carre Class Reference

#include <MeshCut_Carre.hxx>

Public Member Functions

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

Data Fields

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.

References ex29_refine.x0, ex29_refine.x1, SMESH_fixation.y0, and SMESH_fixation.y1.

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

Member Function Documentation

void Carre::affichage ( )

Definition at line 47 of file MeshCut_Carre.cxx.

References ex29_refine.x0, ex29_refine.x1, SMESH_fixation.y0, and SMESH_fixation.y1.

{
  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.

References ex13_hole1partial.x, ex29_refine.x0, MESHCUT.Maillage.XX, ex13_hole1partial.y, SMESH_fixation.y0, SMESH_fixation.y1, and MESHCUT.Maillage.YY.

{
  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.

References ex29_refine.x0, MESHCUT.Carre.x1, SMESH_fixation.y0, and MESHCUT.Carre.y1.

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

Field Documentation

Definition at line 30 of file MeshCut_Carre.hxx.

Definition at line 30 of file MeshCut_Carre.hxx.

Referenced by MESHCUT.Carre.disjoint().

Definition at line 30 of file MeshCut_Carre.hxx.

Definition at line 30 of file MeshCut_Carre.hxx.

Referenced by MESHCUT.Carre.disjoint().

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS