X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FStdMeshers%2FStdMeshers_Quadrangle_2D.hxx;h=82f507d6ef005172204f9de8f747121c607595bb;hp=1ecad92d5116b8af821aa2a430439a672b3b90fc;hb=57b43b4d010e2d0a1529d3c131bbb9d416e63258;hpb=e4737e85f0da6d3f90fd08f6be1c2825195fe16f diff --git a/src/StdMeshers/StdMeshers_Quadrangle_2D.hxx b/src/StdMeshers/StdMeshers_Quadrangle_2D.hxx index 1ecad92d5..82f507d6e 100644 --- a/src/StdMeshers/StdMeshers_Quadrangle_2D.hxx +++ b/src/StdMeshers/StdMeshers_Quadrangle_2D.hxx @@ -34,7 +34,11 @@ #include "SMESH_Mesh.hxx" #include "Utils_SALOME_Exception.hxx" -class SMDS_MeshNode; +#include "gp_XY.hxx" + +#include "SMESH_MesherHelper.hxx" + +//class SMDS_MeshNode; typedef struct uvPtStruct { @@ -75,10 +79,16 @@ public: throw (SALOME_Exception); FaceQuadStruct* CheckAnd2Dcompute(SMESH_Mesh& aMesh, - const TopoDS_Shape& aShape) + const TopoDS_Shape& aShape, + const bool CreateQuadratic) throw (SALOME_Exception); - void QuadDelete(FaceQuadStruct* quad); + static void QuadDelete(FaceQuadStruct* quad); + + /** + * Returns NLinkNodeMap from myTool + */ + const NLinkNodeMap& GetNLinkNodeMap() { return myTool->GetNLinkNodeMap(); } ostream & SaveTo(ostream & save); istream & LoadFrom(istream & load); @@ -87,11 +97,27 @@ public: protected: + FaceQuadStruct* CheckNbEdges(SMESH_Mesh& aMesh, + const TopoDS_Shape& aShape) + throw (SALOME_Exception); + void SetNormalizedGrid(SMESH_Mesh& aMesh, const TopoDS_Shape& aShape, FaceQuadStruct* quad) throw (SALOME_Exception); + /** + * Special function for creation only quandrangle faces + */ + bool ComputeQuadPref(SMESH_Mesh& aMesh, + const TopoDS_Shape& aShape, + FaceQuadStruct* quad) + throw (SALOME_Exception); + + UVPtStruct* LoadEdgePoints2(SMESH_Mesh& aMesh, + const TopoDS_Face& F, const TopoDS_Edge& E, + bool IsReverse); + UVPtStruct* LoadEdgePoints(SMESH_Mesh& aMesh, const TopoDS_Face& F, const TopoDS_Edge& E, double first, double last); @@ -99,6 +125,13 @@ protected: UVPtStruct* MakeEdgePoints(SMESH_Mesh& aMesh, const TopoDS_Face& F, const TopoDS_Edge& E, double first, double last, int nb_segm); + + // true if QuadranglePreference hypothesis is assigned that forces + // construction of quadrangles if the number of nodes on opposite edges + // is not the same in the case where the global number of nodes on edges is even + bool myQuadranglePreference; + + SMESH_MesherHelper* myTool; // toll for working with quadratic elements }; #endif