Back to index

salome-smesh  6.5.0
Classes | Defines | Enumerations | Functions
StdMeshers_CompositeHexa_3D.cxx File Reference
#include "StdMeshers_CompositeHexa_3D.hxx"
#include "SMDS_Mesh.hxx"
#include "SMDS_MeshNode.hxx"
#include "SMDS_SetIterator.hxx"
#include "SMESH_Block.hxx"
#include "SMESH_Comment.hxx"
#include "SMESH_ComputeError.hxx"
#include "SMESH_Mesh.hxx"
#include "SMESH_MesherHelper.hxx"
#include "SMESH_subMesh.hxx"
#include <BRepAdaptor_Surface.hxx>
#include <BRep_Tool.hxx>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <TopExp_Explorer.hxx>
#include <TopTools_MapIteratorOfMapOfShape.hxx>
#include <TopTools_MapOfShape.hxx>
#include <TopTools_SequenceOfShape.hxx>
#include <TopoDS.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Face.hxx>
#include <TopoDS_Vertex.hxx>
#include <gp_Pnt.hxx>
#include <gp_Pnt2d.hxx>
#include <gp_Vec.hxx>
#include <gp_XYZ.hxx>
#include <list>
#include <set>
#include <vector>

Go to the source code of this file.

Classes

struct  _Indexer
 Convertor of a pair of integers to a sole index. More...
class  _FaceSide
 Wrapper of a composite or an ordinary edge. More...
class  _QuadFaceGrid
 Class corresponding to a meshed composite face of a box. More...

Defines

#define DUMP_VERT(msg, v)
#define ERR_LI(txt)   SMESH_Comment(txt) << ":" << __LINE__

Enumerations

enum  EQuadSides {
  Q_BOTTOM = 0, Q_RIGHT, Q_TOP, Q_LEFT,
  Q_CHILD, Q_PARENT
}
enum  EBoxSides {
  B_BOTTOM = 0, B_RIGHT, B_TOP, B_LEFT,
  B_FRONT, B_BACK, B_UNDEFINED
}

Functions

int GetNb2d (_QuadFaceGrid *QFG, SMESH_Mesh &theMesh, MapShapeNbElems &aResMap)

Define Documentation

#define DUMP_VERT (   msg,
 
)

Definition at line 70 of file StdMeshers_CompositeHexa_3D.cxx.

#define ERR_LI (   txt)    SMESH_Comment(txt) << ":" << __LINE__

Definition at line 76 of file StdMeshers_CompositeHexa_3D.cxx.


Enumeration Type Documentation

enum EBoxSides
Enumerator:
B_BOTTOM 
B_RIGHT 
B_TOP 
B_LEFT 
B_FRONT 
B_BACK 
B_UNDEFINED 

Definition at line 81 of file StdMeshers_CompositeHexa_3D.cxx.

enum EQuadSides
Enumerator:
Q_BOTTOM 
Q_RIGHT 
Q_TOP 
Q_LEFT 
Q_CHILD 
Q_PARENT 

Definition at line 79 of file StdMeshers_CompositeHexa_3D.cxx.


Function Documentation

int GetNb2d ( _QuadFaceGrid QFG,
SMESH_Mesh &  theMesh,
MapShapeNbElems aResMap 
)

Definition at line 515 of file StdMeshers_CompositeHexa_3D.cxx.

{
  int nb2d = 0;
  _QuadFaceGrid::TChildIterator aCI = QFG->GetChildren();
  while( aCI.more() ) {
    const _QuadFaceGrid& currChild = aCI.next();
    SMESH_subMesh *sm = theMesh.GetSubMesh(currChild.GetFace());
    if( sm ) {
      MapShapeNbElemsItr anIt = aResMap.find(sm);
      if( anIt == aResMap.end() ) continue;
      std::vector<int> aVec = (*anIt).second;
      nb2d += Max(aVec[SMDSEntity_Quadrangle],aVec[SMDSEntity_Quad_Quadrangle]);
    }
  }
  return nb2d;
}

Here is the call graph for this function: