Salome HOME
Merge branch 'V9_9_BR'
[modules/smesh.git] / src / StdMeshers_I / StdMeshers_CartesianParameters3D_i.hxx
index d9f4d603ab046f60107623980b64f47dd031ac42..13ce9dbfc441f7130793df286eecd02067e56ebb 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2022  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -56,15 +56,15 @@ class STDMESHERS_I_EXPORT StdMeshers_CartesianParameters3D_i:
    * it's size is \athreshold times less than the size of the initial hexahedron. 
    * threshold must be > 1.0
    */
-  void SetSizeThreshold(CORBA::Double threshold) throw (SALOME::SALOME_Exception);
+  void SetSizeThreshold(CORBA::Double threshold);
   CORBA::Double GetSizeThreshold();
 
   /*!
    * \brief Set node coordinates along an axis (counterd from zero)
    */
   void SetGrid(const SMESH::double_array& coords,
-               CORBA::Short               axis) throw (SALOME::SALOME_Exception);
-  SMESH::double_array* GetGrid(CORBA::Short axis) throw (SALOME::SALOME_Exception);
+               CORBA::Short               axis);
+  SMESH::double_array* GetGrid(CORBA::Short axis);
 
   /*!
    * \brief Set grid spacing along an axis
@@ -77,17 +77,17 @@ class STDMESHERS_I_EXPORT StdMeshers_CartesianParameters3D_i:
    */
   void SetGridSpacing(const SMESH::string_array& spaceFunctions,
                       const SMESH::double_array& internalPoints,
-                      CORBA::Short               axis) throw (SALOME::SALOME_Exception);
+                      CORBA::Short               axis);
 
   void GetGridSpacing(SMESH::string_array_out xSpaceFunctions,
                       SMESH::double_array_out xInternalPoints,
-                      CORBA::Short            axis) throw (SALOME::SALOME_Exception);
+                      CORBA::Short            axis);
   /*!
    * Set custom direction of axes
    */
   void SetAxesDirs(const SMESH::DirStruct& x,
                    const SMESH::DirStruct& y,
-                   const SMESH::DirStruct& z) throw (SALOME::SALOME_Exception);
+                   const SMESH::DirStruct& z);
   void GetAxesDirs(SMESH::DirStruct& x,
                    SMESH::DirStruct& y,
                    SMESH::DirStruct& z);
@@ -100,7 +100,7 @@ class STDMESHERS_I_EXPORT StdMeshers_CartesianParameters3D_i:
 
 
   /*!
-   * \brief Enables implementation of geometrical edges into the mesh. If this feature
+   * \brief Enable implementation of geometrical edges into the mesh. If this feature
    *        is disabled, sharp edges of the shape are lost ("smoothed") in the mesh if
    *        they don't coincide with the grid lines
    */
@@ -108,21 +108,40 @@ class STDMESHERS_I_EXPORT StdMeshers_CartesianParameters3D_i:
   CORBA::Boolean GetToAddEdges();
 
   /*!
-   * \brief Return true if the grid is defined by spacing functions and 
+   * Enable treatment of geom faces, either shared by solids or internal.
+   */
+  void SetToConsiderInternalFaces(CORBA::Boolean toTreat);
+  CORBA::Boolean GetToConsiderInternalFaces();
+
+  /*!
+   * Enable applying size threshold to grid cells cut by internal geom faces.
+   */
+  void SetToUseThresholdForInternalFaces(CORBA::Boolean toUse);
+  CORBA::Boolean GetToUseThresholdForInternalFaces();
+
+  /*!
+   * Enable creation of mesh faces.
+   */
+  void SetToCreateFaces(CORBA::Boolean toCreate);
+  CORBA::Boolean GetToCreateFaces();
+
+
+  /*!
+   * \brief Return true if the grid is defined by spacing functions and
    *        not by node coordinates
    */
   CORBA::Boolean IsGridBySpacing(CORBA::Short axis);
 
   /*!
-   * Returns axes at which number of hexahedra is maximal
+   * Return axes at which number of hexahedra is maximal
    */
   void ComputeOptimalAxesDirs(GEOM::GEOM_Object_ptr shape,
                               CORBA::Boolean        isOrthogonal,
                               SMESH::DirStruct&     x,
                               SMESH::DirStruct&     y,
-                              SMESH::DirStruct&     z) throw (SALOME::SALOME_Exception);
+                              SMESH::DirStruct&     z);
   /*!
-   * \brief Computes node coordinates by spacing functions
+   * \brief Compute node coordinates by spacing functions
    *  \param x0 - lower coordinate
    *  \param x1 - upper coordinate
    *  \param spaceFuns - space functions
@@ -133,14 +152,20 @@ class STDMESHERS_I_EXPORT StdMeshers_CartesianParameters3D_i:
                                           CORBA::Double              x1,
                                           const SMESH::string_array& spaceFuns,
                                           const SMESH::double_array& points,
-                                          const char*                axisName )
-    throw (SALOME::SALOME_Exception);
+                                          const char*                axisName );
 
   // Get implementation
   ::StdMeshers_CartesianParameters3D* GetImpl();
 
   // Verify whether hypothesis supports given entity type 
   CORBA::Boolean IsDimSupported( SMESH::Dimension type );
+
+
+  // Methods for copying mesh definition to other geometry
+  virtual bool getObjectsDependOn( std::vector< std::string > & /*entryArray*/,
+                                   std::vector< int >         & /*subIDArray*/ ) const { return false; }
+  virtual bool setObjectsDependOn( std::vector< std::string > & /*entryArray*/,
+                                   std::vector< int >         & /*subIDArray*/ ) { return true; }
 };
 
 #endif