Version: 6.3.1
Public Member Functions | Data Fields

MESHCUT.Cube Class Reference

#include <MeshCut_Cube.hxx>

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 ()

Data Fields

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.

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

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

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

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

References ex13_hole1partial.x, ex29_refine.x0, MESHCUT.Maillage.XX, ex13_hole1partial.y, SMESH_fixation.y0, MESHCUT.Maillage.YY, SMESH_fixation.z0, SMESH_fixation.z1, and MESHCUT.Maillage.ZZ.

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

References ex29_refine.x0, MESHCUT.Cube.x1, SMESH_fixation.y0, MESHCUT.Cube.y1, SMESH_fixation.z0, and MESHCUT.Cube.z1.

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

Field Documentation

Definition at line 30 of file MeshCut_Cube.hxx.

Definition at line 30 of file MeshCut_Cube.hxx.

Referenced by MESHCUT.Cube.disjoint().

Definition at line 30 of file MeshCut_Cube.hxx.

Definition at line 30 of file MeshCut_Cube.hxx.

Referenced by MESHCUT.Cube.disjoint().

Definition at line 30 of file MeshCut_Cube.hxx.

Definition at line 30 of file MeshCut_Cube.hxx.

Referenced by MESHCUT.Cube.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