Salome HOME
Add full-quadrangles support, available since MeshGems v2.5
[plugins/blsurfplugin.git] / src / BLSURFPlugin / BLSURFPlugin_Hypothesis.hxx
index 1531872641aeb3787c63124c492b9ce55a03f6c9..f44510593f155356210a2d475aba87d5480b4414 100644 (file)
@@ -64,6 +64,12 @@ public:
     GeometricalLocalSize
   };
 
+  enum ElementType {
+    Triangles,
+    QuadrangleDominant,
+    Quadrangles
+  };
+
   static const char* GetHypType(bool hasgeom)
   { return hasgeom ? "MG-CADSurf Parameters" : "MG-CADSurf Parameters_NOGEOM"; }
 
@@ -97,8 +103,8 @@ public:
   void SetVolumeGradation(double theGradation);
   double GetVolumeGradation() const { return _volumeGradation; }
 
-  void SetQuadAllowed(bool theVal);
-  bool GetQuadAllowed() const { return _quadAllowed; }
+  void SetElementType(ElementType theElementType);
+  ElementType GetElementType() const { return _elementType; }
 
   void SetAngleMesh(double theAngle);
   double GetAngleMesh() const { return _angleMesh; }
@@ -425,7 +431,7 @@ public:
   static double          GetDefaultGradation() { return 1.3; }
   static bool            GetDefaultUseVolumeGradation() { return false; }
   static double          GetDefaultVolumeGradation() { return 2; }
-  static bool            GetDefaultQuadAllowed() { return false; }
+  static ElementType     GetDefaultElementType() { return Triangles; }
   static double          GetDefaultAngleMesh() { return 8.0; }
   
   static double          GetDefaultChordalError(double diagonal);
@@ -567,7 +573,7 @@ private:
   double          _gradation;
   bool            _useVolumeGradation;
   double          _volumeGradation;
-  bool            _quadAllowed;
+  ElementType     _elementType;
   double          _angleMesh;
   double          _chordalError;
   bool            _anisotropic;