#include "SMESH_Mesh.hxx"
#include "Utils_SALOME_Exception.hxx"
+class SMDS_MeshNode;
+
typedef struct uvPtStruct
{
double param;
double v;
double x; // 2d parameter, normalized [0,1]
double y;
- const SMDS_MeshNode * node;
+ const SMDS_MeshNode * node;
} UVPtStruct;
typedef struct faceQuadStruct
double first[4];
double last[4];
bool isEdgeForward[4];
+ bool isEdgeOut[4]; // true, if an edge has more nodes, than the opposite
UVPtStruct* uv_edges[4];
UVPtStruct* uv_grid;
} FaceQuadStruct;
const TopoDS_Shape& aShape)
throw (SALOME_Exception);
- void QuadDelete(FaceQuadStruct* quad);
+ static void QuadDelete(FaceQuadStruct* quad);
ostream & SaveTo(ostream & save);
istream & LoadFrom(istream & load);
throw (SALOME_Exception);
UVPtStruct* LoadEdgePoints(SMESH_Mesh& aMesh,
- const TopoDS_Face& F,
- const TopoDS_Edge& E,
- double first,
- double last);
-// bool isForward);
+ const TopoDS_Face& F, const TopoDS_Edge& E,
+ double first, double last);
+
+ UVPtStruct* MakeEdgePoints(SMESH_Mesh& aMesh,
+ const TopoDS_Face& F, const TopoDS_Edge& E,
+ double first, double last, int nb_segm);
-// FaceQuadStruct _quadDesc;
+ // 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;
};
#endif