Version: 6.3.1
Data Structures | Defines | Enumerations | Functions

src/StdMeshers/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>
Include dependency graph for StdMeshers_CompositeHexa_3D.cxx:

Go to the source code of this file.

Data Structures

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,
 
)
#define ERR_LI (   txt)    SMESH_Comment(txt) << ":" << __LINE__

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.

References _QuadFaceGrid.GetChildren(), _QuadFaceGrid.GetFace(), SMESH_Mesh.GetSubMesh(), Max(), SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR >.more(), SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR >.next(), SMDSEntity_Quad_Quadrangle, and SMDSEntity_Quadrangle.

Referenced by StdMeshers_CompositeHexa_3D.Evaluate().

{
  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;
}
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