#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.
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 DUMP_VERT | ( | msg, | |
| v | |||
| ) |
Definition at line 70 of file StdMeshers_CompositeHexa_3D.cxx.
Referenced by _QuadFaceGrid.AddContinuousFace(), _QuadFaceGrid.locateChildren(), and _QuadFaceGrid.setBrothers().
| #define ERR_LI | ( | txt | ) | SMESH_Comment(txt) << ":" << __LINE__ |
Definition at line 76 of file StdMeshers_CompositeHexa_3D.cxx.
Referenced by StdMeshers_CompositeHexa_3D.Compute(), _QuadFaceGrid.LoadGrid(), and _QuadFaceGrid.locateChildren().
| enum EBoxSides |
Definition at line 81 of file StdMeshers_CompositeHexa_3D.cxx.
| enum EQuadSides |
| 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;
}