1 // Copyright (C) 2007-2019 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // File : SMESH_BasicHypothesis.idl
24 // Author : Paul RASCLE, EDF
26 #ifndef _SMESH_BASICHYPOTHESIS_IDL_
27 #define _SMESH_BASICHYPOTHESIS_IDL_
29 #include "SALOME_Exception.idl"
30 #include "SMESH_Hypothesis.idl"
31 #include "SMESH_Mesh.idl"
34 * StdMeshers: interfaces to standard hypotheses and algorithms
39 * StdMeshers_LocalLength: interface of "Average length" hypothesis
41 interface StdMeshers_LocalLength : SMESH::SMESH_Hypothesis
44 * Sets <length> parameter value
46 void SetLength(in double length)
47 raises (SALOME::SALOME_Exception);
50 * Sets <precision> parameter value
52 * Precision parameter is used to allow rounding a number of segments,
53 * calculated from the edge length and average length of segment,
54 * to the lower integer, if this value outstands from it in bounds of the precision.
55 * Otherwise, the number of segments is rounded to the higher integer.
56 * Use value 0.5 to provide rounding to the nearest integer,
57 * 1.0 for the lower integer, 0.0 for the higher integer.
58 * Default value is 1e-07. In old studies, restored from file,
59 * this value will be set to zero, what corresponds to the old behaviour.
61 void SetPrecision(in double precision)
62 raises (SALOME::SALOME_Exception);
65 * Returns <length> parameter value
70 * Returns <precision> parameter value
72 double GetPrecision();
76 * StdMeshers_MaxLength: interface of "Max length" hypothesis
78 interface StdMeshers_MaxLength : SMESH::SMESH_Hypothesis
81 * Sets <length> parameter value
83 void SetLength(in double length)
84 raises (SALOME::SALOME_Exception);
86 * Returns <length> parameter value
90 * Returns true if preestemated length is defined
92 boolean HavePreestimatedLength();
94 * Returns preestemated length
96 double GetPreestimatedLength();
98 * Sets preestemated length
100 void SetPreestimatedLength(in double length);
102 * Sets boolean parameter enabling/desabling usage of length computed
103 * basing on size of bounding box of shape to mesh
105 void SetUsePreestimatedLength(in boolean toUse);
107 * Returns value of boolean parameter enabling/desabling usage of length computed
108 * basing on size of bounding box of shape to mesh
110 boolean GetUsePreestimatedLength();
114 * StdMeshers_AutomaticLength: interface of "Automatic length" hypothesis
116 interface StdMeshers_AutomaticLength : SMESH::SMESH_Hypothesis
119 * Sets Fineness parameter value
121 void SetFineness(in double theFineness)
122 raises (SALOME::SALOME_Exception);
125 * Returns <Fineness> parameter value
127 double GetFineness();
131 * Common interface of 1D hypotheses that can be reversed
133 interface Reversible1D
136 * Set list of edges to reverse
138 void SetReversedEdges( in SMESH::long_array list );
141 * Returns list of edges to reverse
143 SMESH::long_array GetReversedEdges();
146 * Set entry of the main object
148 void SetObjectEntry( in string entry );
151 * Get the entry of the main object
153 string GetObjectEntry();
157 * StdMeshers_NumberOfSegments: interface of "Nb. Segments" hypothesis
159 interface StdMeshers_NumberOfSegments : SMESH::SMESH_Hypothesis, Reversible1D
162 * Builds and returns point distribution according to passed density function
164 SMESH::double_array BuildDistributionExpr( in string func, in long nbSeg, in long conv )
165 raises (SALOME::SALOME_Exception);
166 SMESH::double_array BuildDistributionTab( in SMESH::double_array func, in long nbSeg, in long conv )
167 raises (SALOME::SALOME_Exception);
170 * Sets <number of segments> parameter value
172 void SetNumberOfSegments(in long segmentsNumber)
173 raises (SALOME::SALOME_Exception);
176 * Returns <number of segments> parameter value
178 long GetNumberOfSegments();
181 * Sets <distribution type> parameter value
183 void SetDistrType(in long typ)
184 raises (SALOME::SALOME_Exception);
187 * Returns <distribution type> parameter value
192 * Sets <scale factor> parameter value
194 void SetScaleFactor(in double scaleFactor)
195 raises (SALOME::SALOME_Exception);
198 * Returns <scale factor> parameter value
200 double GetScaleFactor()
201 raises (SALOME::SALOME_Exception);
204 * Sets <table function> parameter value for distribution DT_TabFunc
206 void SetTableFunction(in SMESH::double_array table)
207 raises (SALOME::SALOME_Exception);
210 * Returns <table function> parameter value for distribution DT_TabFunc
212 SMESH::double_array GetTableFunction()
213 raises (SALOME::SALOME_Exception);
216 * Sets <expression function> parameter value for distribution DT_ExprFunc
218 void SetExpressionFunction(in string expr)
219 raises (SALOME::SALOME_Exception);
222 * Returns <expression function> parameter value for distribution DT_ExprFunc
224 string GetExpressionFunction()
225 raises (SALOME::SALOME_Exception);
228 * Sets <conversion mode> parameter value for functional distributions
230 void SetConversionMode(in long conv )
231 raises (SALOME::SALOME_Exception);
234 * Returns <conversion mode> parameter value for functional distributions
236 long ConversionMode()
237 raises (SALOME::SALOME_Exception);
241 * StdMeshers_Arithmetic1D: interface of "Arithmetic 1D" hypothesis
243 interface StdMeshers_Arithmetic1D : SMESH::SMESH_Hypothesis, Reversible1D
246 * Sets <start segment length> or <end segment length> parameter value
247 * * OBSOLETE *. Avoid such a way of interface design
248 * * It is recommended to dedicate a method to each parameter.
250 void SetLength(in double length, in boolean isStartLength)
251 raises (SALOME::SALOME_Exception);
254 * Sets <start segment length> parameter value
256 void SetStartLength(in double length)
257 raises (SALOME::SALOME_Exception);
260 * Sets <end segment length> parameter value
262 void SetEndLength(in double length)
263 raises (SALOME::SALOME_Exception);
266 * Returns <start segment length> or <end segment length> parameter value
268 double GetLength(in boolean isStartLength);
273 * StdMeshers_Arithmetic1D: interface of "Geometric 1D" hypothesis
275 interface StdMeshers_Geometric1D : SMESH::SMESH_Hypothesis, Reversible1D
278 * Sets length of the first segment
280 void SetStartLength(in double length)
281 raises (SALOME::SALOME_Exception);
284 * Sets value of Common Ratio
286 void SetCommonRatio(in double factor)
287 raises (SALOME::SALOME_Exception);
290 * Returns length of the first segment
292 double GetStartLength();
295 * Returns value of Common Ratio
297 double GetCommonRatio();
302 * StdMeshers_MaxElementArea: interface of "Max. Triangle Area" hypothesis
304 interface StdMeshers_MaxElementArea : SMESH::SMESH_Hypothesis
307 * Sets <maximum element area> parameter value
309 void SetMaxElementArea(in double area)
310 raises (SALOME::SALOME_Exception);
313 * Returns <maximum element area> parameter value
315 double GetMaxElementArea();
319 * StdMeshers_LengthFromEdges: interface of "Length From Edges (2D Hyp. for Triangulator)" hypothesis
321 interface StdMeshers_LengthFromEdges : SMESH::SMESH_Hypothesis
324 * Sets <mode> parameter value
326 void SetMode(in long mode)
327 raises (SALOME::SALOME_Exception);
330 * Returns <mode> parameter value
336 * StdMeshers_StartEndLength: interface of "Start and End Length" hypothesis
338 interface StdMeshers_StartEndLength : SMESH::SMESH_Hypothesis, Reversible1D
341 * Sets <start segment length> or <end segment length> parameter value
342 * * OBSOLETE *. Avoid such a way of interface design.
343 * * It is recommended to dedicate a method to each parameter.
345 void SetLength(in double length, in boolean isStartLength)
346 raises (SALOME::SALOME_Exception);
349 * Sets <start segment length> parameter value
351 void SetStartLength(in double length)
352 raises (SALOME::SALOME_Exception);
355 * Sets <end segment length> parameter value
357 void SetEndLength(in double length)
358 raises (SALOME::SALOME_Exception);
361 * Returns <start segment length> or <end segment length> parameter value
363 double GetLength(in boolean isStartLength);
369 * StdMeshers_Deflection1D: interface of "Deflection 1D" hypothesis
371 interface StdMeshers_Deflection1D : SMESH::SMESH_Hypothesis
374 * Sets <deflection> parameter value
376 void SetDeflection(in double deflection)
377 raises (SALOME::SALOME_Exception);
380 * Returns <deflection> parameter value
382 double GetDeflection();
386 * StdMeshers_FixedPoints1D: interface of "Fixed points 1D" hypothesis
388 interface StdMeshers_FixedPoints1D : SMESH::SMESH_Hypothesis, Reversible1D
391 * Sets some points on edge using parameter on curve from 0 to 1
392 * (additionally it is neecessary to check orientation of edges and
393 * create list of reversed edges if it is needed) and sets numbers
394 * of segments between given points (default values are equals 1)
396 void SetPoints(in SMESH::double_array listParams)
397 raises (SALOME::SALOME_Exception);
398 void SetNbSegments(in SMESH::long_array listNbSeg)
399 raises (SALOME::SALOME_Exception);
402 * Returns list of point's parameters
404 SMESH::double_array GetPoints();
407 * Returns list of numbers of segments
409 SMESH::long_array GetNbSegments();
414 * StdMeshers_Adaptive1D: interface of "Adaptive" hypothesis
416 interface StdMeshers_Adaptive1D : SMESH::SMESH_Hypothesis
419 * Sets minimal allowed segment length
421 void SetMinSize(in double minSegLen) raises (SALOME::SALOME_Exception);
425 * Sets maximal allowed segment length
427 void SetMaxSize(in double maxSegLen) raises (SALOME::SALOME_Exception);
431 * Sets <deflection> parameter value,
432 * i.e. a maximal allowed distance between a segment and an edge.
434 void SetDeflection(in double deflection) raises (SALOME::SALOME_Exception);
435 double GetDeflection();
439 * StdMeshers_MaxElementVolume: interface of "Max. Hexahedron or Tetrahedron Volume" hypothesis
441 interface StdMeshers_MaxElementVolume : SMESH::SMESH_Hypothesis
444 * Sets <maximum element volume> parameter value
446 void SetMaxElementVolume(in double volume)
447 raises (SALOME::SALOME_Exception);
450 * Returns <maximum element volume> parameter value
452 double GetMaxElementVolume();
456 * StdMeshers_NotConformAllowed: interface of "Not Conform Mesh Allowed" hypothesis.
457 * Presence of this hypothesis permits to algorithm generation of not conform mesh.
459 interface StdMeshers_NotConformAllowed : SMESH::SMESH_Hypothesis
464 * StdMeshers_Propagation: interface of "Propagation of 1D Hyp. on
465 * Opposite Edges" hypothesis.
466 * Presence of this hypothesis on any edge propagates any other 1D
467 * hypothesis from this edge on all edges, opposite to it.
468 * It concerns only edges of quadrangle faces.
470 interface StdMeshers_Propagation : SMESH::SMESH_Hypothesis
475 * StdMeshers_Propagation: interface of "Propagation of Node
476 * Distribution on Opposite Edges" hypothesis.
477 * Presence of this hypothesis on any edge propagates distribution of nodes
478 * from this edge on all edges, opposite to it.
479 * It concerns only edges of quadrangle faces.
481 interface StdMeshers_PropagOfDistribution : SMESH::SMESH_Hypothesis
486 * StdMeshers_QuadranglePreference: interface of "QuadranglePreference" hypothesis.
487 * This hypothesis is used by StdMeshers_Quadrangle_2D algorithm.
488 * Presence of this hypothesis forces construction of quadrangles if the number
489 * of nodes on opposite edges is not the same in the case where the global number
490 * of nodes on edges is even
492 interface StdMeshers_QuadranglePreference : SMESH::SMESH_Hypothesis
497 * StdMeshers_QuadraticMesh: interface of "QuadraticMesh" hypothesis.
498 * This is an auxiliary 1D hypothesis whose presence forces construction
499 * of quadratic edges.
500 * If the 2D mesher sees that all boundary edges are quadratic ones,
501 * it generates quadratic faces, else it generates linear faces using
502 * medium nodes as if they were vertex ones.
503 * The 3D mesher generates quadratic volumes only if all boundary faces
504 * are quadratic ones, else it fails.
506 interface StdMeshers_QuadraticMesh : SMESH::SMESH_Hypothesis
512 * StdMeshers_NumberOfLayers: interface of "Nb. Layers" hypothesis.
513 * This hypothesis is used by "Radial prism" algorithm.
514 * It specifies number of segments between the internal
515 * and the external surfaces.
517 interface StdMeshers_NumberOfLayers : SMESH::SMESH_Hypothesis
520 * Sets <number of segments> parameter value
522 void SetNumberOfLayers(in long numberOfLayers)
523 raises (SALOME::SALOME_Exception);
526 * Returns <number of layers> parameter value
528 long GetNumberOfLayers();
533 * StdMeshers_LayerDistribution: interface of "Distribution of Layers" hypothesis.
534 * This hypothesis is used by "Radial prism" algorithm.
535 * It specifies 1D hypothesis defining distribution of segments between the internal
536 * and the external surfaces.
538 interface StdMeshers_LayerDistribution : SMESH::SMESH_Hypothesis
541 * Sets 1D hypothesis specifying distribution of layers
543 void SetLayerDistribution(in SMESH::SMESH_Hypothesis distributionHyp)
544 raises (SALOME::SALOME_Exception);
547 * Returns 1D hypothesis specifying distribution of layers
549 SMESH::SMESH_Hypothesis GetLayerDistribution();
554 * StdMeshers_NumberOfLayers2D: interface of "Nb. Layers" hypothesis.
555 * This hypothesis is used by "Radial quadrangle" algorithm.
556 * It specifies number of segments between the internal
557 * and the external surfaces.
559 interface StdMeshers_NumberOfLayers2D : StdMeshers_NumberOfLayers
564 * StdMeshers_LayerDistribution2D: interface of "Distribution of Layers" hypothesis.
565 * This hypothesis is used by "Radial quadrangle" algorithm.
566 * It specifies 1D hypothesis defining distribution of segments between the internal
567 * and the external surfaces.
569 interface StdMeshers_LayerDistribution2D : StdMeshers_LayerDistribution
574 * interface of "ProjectionSource1D" hypothesis.
575 * This hypothesis specifies a meshed edge to take a mesh pattern from
576 * and optionally association of vertices between the source edge and a
577 * target one (where a hipothesis is assigned to)
579 interface StdMeshers_ProjectionSource1D : SMESH::SMESH_Hypothesis
582 * Sets source <edge> to take a mesh pattern from
584 void SetSourceEdge(in GEOM::GEOM_Object edge)
585 raises (SALOME::SALOME_Exception);
588 * Returns the source edge
590 GEOM::GEOM_Object GetSourceEdge();
593 * Sets source <mesh> to take a mesh pattern from
595 void SetSourceMesh(in SMESH::SMESH_Mesh mesh);
600 SMESH::SMESH_Mesh GetSourceMesh();
603 * Sets vertex association between the source edge and the target one.
604 * This parameter is optional
606 void SetVertexAssociation(in GEOM::GEOM_Object sourceVertex,
607 in GEOM::GEOM_Object targetVertex)
608 raises (SALOME::SALOME_Exception);
611 * Returns the vertex associated with the target vertex.
612 * Result may be nil if association not set
614 GEOM::GEOM_Object GetSourceVertex();
617 * Returns the vertex associated with the source vertex.
618 * Result may be nil if association not set
620 GEOM::GEOM_Object GetTargetVertex();
624 * interface of "ProjectionSource2D" hypothesis.
625 * This hypothesis specifies a meshed face to take a mesh pattern from
626 * and optionally association of vertices between the source face and a
627 * target one (where a hipothesis is assigned to)
629 interface StdMeshers_ProjectionSource2D : SMESH::SMESH_Hypothesis
632 * Sets a source <face> to take a mesh pattern from
634 void SetSourceFace(in GEOM::GEOM_Object face)
635 raises (SALOME::SALOME_Exception);
638 * Returns the source face
640 GEOM::GEOM_Object GetSourceFace();
643 * Sets source <mesh> to take a mesh pattern from
645 void SetSourceMesh(in SMESH::SMESH_Mesh mesh);
650 SMESH::SMESH_Mesh GetSourceMesh();
653 * Sets vertex association between the source face and the target one.
654 * This parameter is optional.
655 * Two vertices must belong to one edge of a face
657 void SetVertexAssociation(in GEOM::GEOM_Object sourceVertex1,
658 in GEOM::GEOM_Object sourceVertex2,
659 in GEOM::GEOM_Object targetVertex1,
660 in GEOM::GEOM_Object targetVertex2)
661 raises (SALOME::SALOME_Exception);
664 * Returns the <i>-th source vertex associated with the <i>-th target vertex.
665 * Result may be nil if association not set.
666 * Valid indices are 1 and 2
668 GEOM::GEOM_Object GetSourceVertex(in long i)
669 raises (SALOME::SALOME_Exception);
672 * Returns the <i>-th target vertex associated with the <i>-th source vertex.
673 * Result may be nil if association not set.
674 * Valid indices are 1 and 2
676 GEOM::GEOM_Object GetTargetVertex(in long i)
677 raises (SALOME::SALOME_Exception);
681 * interface of "ProjectionSource3D" hypothesis.
682 * This hypothesis specifies a meshed shell or solid to take a mesh pattern from
683 * and optionally association of vertices between the source shape and a
684 * target one (where a hipothesis is assigned to)
686 interface StdMeshers_ProjectionSource3D : SMESH::SMESH_Hypothesis
689 * Sets a source <shape> to take a mesh pattern from
691 void SetSource3DShape(in GEOM::GEOM_Object shape)
692 raises (SALOME::SALOME_Exception);
695 * Returns the source shape
697 GEOM::GEOM_Object GetSource3DShape();
700 * Sets source <mesh> to take a mesh pattern from
702 void SetSourceMesh(in SMESH::SMESH_Mesh mesh);
707 SMESH::SMESH_Mesh GetSourceMesh();
710 * Sets vertex association between the source shape and the target one.
711 * This parameter is optional.
712 * Two vertices must belong to one edge of a shape
714 void SetVertexAssociation(in GEOM::GEOM_Object sourceVertex1,
715 in GEOM::GEOM_Object sourceVertex2,
716 in GEOM::GEOM_Object targetVertex1,
717 in GEOM::GEOM_Object targetVertex2)
718 raises (SALOME::SALOME_Exception);
721 * Returns the <i>-th source vertex associated with the <i>-th target vertex.
722 * Result may be nil if association not set.
723 * Valid indices are 1 and 2
725 GEOM::GEOM_Object GetSourceVertex(in long i)
726 raises (SALOME::SALOME_Exception);
729 * Returns the <i>-th target vertex associated with the <i>-th source vertex.
730 * Result may be nil if association not set.
731 * Valid indices are 1 and 2
733 GEOM::GEOM_Object GetTargetVertex(in long i)
734 raises (SALOME::SALOME_Exception);
738 * interface of "SegmentLengthAroundVertex" hypothesis.
739 * This hypothesis specifies length of segments adjacent to the vertex the
740 * hypothesis is assigned to
742 interface StdMeshers_SegmentLengthAroundVertex : SMESH::SMESH_Hypothesis
745 * Sets <length> parameter value
747 void SetLength(in double length)
748 raises (SALOME::SALOME_Exception);
751 * Returns <length> parameter value
757 * StdMeshers_QuadrangleParams: interface of "Quadrangle Params" hypothesis
763 QUAD_QUADRANGLE_PREF,
764 QUAD_QUADRANGLE_PREF_REVERSED,
766 QUAD_NB_TYPES /* this is not a type of quadrangulation */
769 interface StdMeshers_QuadrangleParams : SMESH::SMESH_Hypothesis
772 * Set base vertex for triangles
774 void SetTriaVertex( in long vertID );
777 * Returns base vertex for triangles
779 long GetTriaVertex();
782 * Set entry of the main object
784 void SetObjectEntry( in string entry );
787 * Get the entry of the main object
789 string GetObjectEntry();
792 * Set the type of quadrangulation
794 void SetQuadType( in QuadType type );
797 * Get the type of quadrangulation
799 QuadType GetQuadType();
802 * Set positions of enforced nodes
804 void SetEnforcedNodes(in GEOM::ListOfGO vertices, in SMESH::nodes_array points)
805 raises (SALOME::SALOME_Exception);
808 * Returns positions of enforced nodes
810 void GetEnforcedNodes(out GEOM::ListOfGO vertices, out SMESH::nodes_array points);
813 * Returns entries of shapes defining enforced nodes
815 SMESH::string_array GetEnfVertices();
818 * Set corner vertices
820 void SetCorners( in SMESH::long_array vertexIDs );
823 * Return IDs of corner vertices
825 SMESH::long_array GetCorners();
829 * interface of "Source edges" hypothesis.
830 * This hypothesis specifies groups of edges of other mesh to be imported
833 interface StdMeshers_ImportSource1D : SMESH::SMESH_Hypothesis
836 * Set edges to import from other mesh
838 void SetSourceEdges(in SMESH::ListOfGroups groups);
839 SMESH::string_array GetSourceEdges();
842 * Set to import the whole other mesh or not, and if yes, to
843 * copy groups of not. By default the mesh is not copied.
845 void SetCopySourceMesh(in boolean toCopyMesh, in boolean toCopyGroups);
846 void GetCopySourceMesh(out boolean toCopyMesh,out boolean toCopyGroups);
850 * interface of "Source faces" hypothesis.
851 * This hypothesis specifies groups of faces of other mesh to be imported
854 interface StdMeshers_ImportSource2D : SMESH::SMESH_Hypothesis
857 * Set faces to import from other mesh
859 void SetSourceFaces(in SMESH::ListOfGroups groups);
860 SMESH::string_array GetSourceFaces();
863 * Set to import the whole other mesh or not, and if yes, to
864 * copy groups of not. By default the mesh is not copied.
866 void SetCopySourceMesh(in boolean toCopyMesh,in boolean toCopyGroups);
867 void GetCopySourceMesh(out boolean toCopyMesh,out boolean toCopyGroups);
871 * Method of computing translation of a node at Viscous Layers construction
873 enum VLExtrusionMethod {
874 // node is translated along normal to a surface with possible further smoothing
876 // node is translated along the average normal of surrounding faces till
877 // intersection with a neighbor face translated along its own normal
878 // by the layers thickness
880 // node is translated along the average normal of surrounding faces
881 // by the layers thickness
886 * interface of "Viscous Layers" hypothesis.
887 * This hypothesis specifies parameters of layers of prisms to build
888 * near mesh boundary. This hypothesis can be used by several 3D algorithms:
889 * NETGEN 3D, Hexahedron(i,j,k), MG_Tetra
891 interface StdMeshers_ViscousLayers : SMESH::SMESH_Hypothesis
894 * Set faces to exclude from treatment
896 void SetIgnoreFaces(in SMESH::long_array faceIDs) raises (SALOME::SALOME_Exception);
897 SMESH::long_array GetIgnoreFaces();
900 * Set faces either to exclude from treatment or to make the Viscous Layers on.
902 void SetFaces(in SMESH::long_array faceIDs,
903 in boolean toIgnore) raises (SALOME::SALOME_Exception);
904 SMESH::long_array GetFaces();
905 boolean GetIsToIgnoreFaces();
908 * Set total thickness of layers of prisms
910 void SetTotalThickness(in double thickness) raises (SALOME::SALOME_Exception);
911 double GetTotalThickness();
914 * Set number of layers of prisms
916 void SetNumberLayers(in short nb) raises (SALOME::SALOME_Exception);
917 short GetNumberLayers();
920 * Set factor (>=1.0) of growth of layer thickness towards inside of mesh
922 void SetStretchFactor(in double factor) raises (SALOME::SALOME_Exception);
923 double GetStretchFactor();
925 void SetMethod( in VLExtrusionMethod how );
926 VLExtrusionMethod GetMethod();
928 void SetGroupName(in string name);
929 string GetGroupName();
933 * interface of "Viscous Layers 2D" hypothesis.
934 * This hypothesis specifies parameters of layers of quadrilaterals to build
935 * near mesh boundary. This hypothesis can be used by several 2D algorithms:
936 * Mefisto, Quadrangle (mapping), NETGEN, BLSURF
938 interface StdMeshers_ViscousLayers2D : SMESH::SMESH_Hypothesis
941 * Set edges to exclude from treatment
943 void SetIgnoreEdges(in SMESH::long_array edgeIDs) raises (SALOME::SALOME_Exception);
944 SMESH::long_array GetIgnoreEdges();
947 * Set edges either to exclude from treatment or to make the Viscous Layers on.
949 void SetEdges(in SMESH::long_array edgeIDs,
950 in boolean toIgnore) raises (SALOME::SALOME_Exception);
951 SMESH::long_array GetEdges();
952 boolean GetIsToIgnoreEdges();
955 * Set total thickness of layers of prisms
957 void SetTotalThickness(in double thickness) raises (SALOME::SALOME_Exception);
958 double GetTotalThickness();
961 * Set number of layers of prisms
963 void SetNumberLayers(in short nb) raises (SALOME::SALOME_Exception);
964 short GetNumberLayers();
967 * Set factor (>=1.0) of growth of layer thickness towards inside of mesh
969 void SetStretchFactor(in double factor) raises (SALOME::SALOME_Exception);
970 double GetStretchFactor();
972 void SetGroupName(in string name);
973 string GetGroupName();
977 * interface of "Body fitting Parameters" hypothesis.
978 * This hypothesis specifies
980 * - Definition of the Cartesian grid
981 * - Direction of grid axes
983 interface StdMeshers_CartesianParameters3D : SMESH::SMESH_Hypothesis
986 * Set size threshold. A polyhedral cell got by cutting an initial
987 * hexahedron by geometry boundary is considered small and is removed if
988 * it's size is \a threshold times less than the size of the initial hexahedron.
989 * threshold must be > 1.0
991 void SetSizeThreshold(in double threshold) raises (SALOME::SALOME_Exception);
992 double GetSizeThreshold();
995 * \brief Return true if the grid is defined by spacing functions and
996 * not by node coordinates in given direction (X==0,...)
998 boolean IsGridBySpacing(in short axis);
1001 * Set coordinates of nodes along an axis (countered from zero)
1003 void SetGrid(in SMESH::double_array coords,
1004 in short axis) raises (SALOME::SALOME_Exception);
1005 SMESH::double_array GetGrid(in short axis) raises (SALOME::SALOME_Exception);
1008 * \brief Set grid spacing along an axis
1009 * \param spaceFunctions - functions defining spacing values at given point on axis
1010 * \param internalPoints - points dividing a grid into parts along an axis
1011 * \param axis - index of an axis counterd from zero, i.e. 0==X, 1==Y, 2==Z
1013 * Parameter t of spaceFunction f(t) is a position [0,1] within bounding box of
1014 * the shape to mesh or within an interval defined by internal points
1016 void SetGridSpacing(in SMESH::string_array spaceFunctions,
1017 in SMESH::double_array internalPoints,
1018 in short axis) raises (SALOME::SALOME_Exception);
1020 void GetGridSpacing(out SMESH::string_array spaceFunctions,
1021 out SMESH::double_array internalPoints,
1022 in short axis) raises (SALOME::SALOME_Exception);
1024 * Set custom direction of axes
1026 void SetAxesDirs(in SMESH::DirStruct x,
1027 in SMESH::DirStruct y,
1028 in SMESH::DirStruct z ) raises (SALOME::SALOME_Exception);
1029 void GetAxesDirs(out SMESH::DirStruct x,
1030 out SMESH::DirStruct y,
1031 out SMESH::DirStruct z );
1033 * Set/unset a fixed point, at which a node will be created provided that grid
1034 * is defined by spacing in all directions
1036 void SetFixedPoint(in SMESH::PointStruct p, in boolean toUnset);
1037 boolean GetFixedPoint(out SMESH::PointStruct p);
1040 * Enable implementation of geometrical edges into the mesh. If this feature
1041 * is disabled, sharp edges of the shape are lost ("smoothed") in the mesh if
1042 * they don't coincide with the grid lines
1044 void SetToAddEdges(in boolean toAdd);
1045 boolean GetToAddEdges();
1048 * Enable treatment of geom faces, either shared by solids or internal.
1050 void SetToConsiderInternalFaces(in boolean toTreat);
1051 boolean GetToConsiderInternalFaces();
1054 * Enable applying size threshold to grid cells cut by internal geom faces.
1056 void SetToUseThresholdForInternalFaces(in boolean toUse);
1057 boolean GetToUseThresholdForInternalFaces();
1060 * Enable creation of mesh faces.
1062 void SetToCreateFaces(in boolean toCreate);
1063 boolean GetToCreateFaces();
1066 * Return axes at which a number of generated hexahedra is maximal
1068 void ComputeOptimalAxesDirs(in GEOM::GEOM_Object shape,
1069 in boolean isOrthogonal,
1070 out SMESH::DirStruct x,
1071 out SMESH::DirStruct y,
1072 out SMESH::DirStruct z )
1073 raises (SALOME::SALOME_Exception);
1076 * \brief Compute node coordinates by spacing functions
1077 * \param x0 - lower coordinate
1078 * \param x1 - upper coordinate
1079 * \param spaceFuns - space functions
1080 * \param points - internal points
1081 * \param axisName - e.g. "X"
1082 * \return the computed coordinates
1084 SMESH::double_array ComputeCoordinates(in double x0,
1086 in SMESH::string_array spaceFuns,
1087 in SMESH::double_array points,
1088 in string axisName )
1089 raises (SALOME::SALOME_Exception);
1093 * StdMeshers_SegmentAroundVertex_0D: interface of "SegmentAroundVertex" algorithm
1095 interface StdMeshers_SegmentAroundVertex_0D : SMESH::SMESH_0D_Algo
1100 * StdMeshers_Regular_1D: interface of "Wire discretisation" algorithm
1102 interface StdMeshers_Regular_1D : SMESH::SMESH_1D_Algo
1107 * StdMeshers_CompositeSegment_1D: interface of "Composite side discretisation" algorithm
1109 interface StdMeshers_CompositeSegment_1D : SMESH::SMESH_1D_Algo
1114 * StdMeshers_MEFISTO_2D: interface of "Triangle (Mefisto)" algorithm
1116 interface StdMeshers_MEFISTO_2D : SMESH::SMESH_2D_Algo
1121 * StdMeshers_Quadrangle_2D: interface of "Quadrangle (Mapping)" algorithm
1123 interface StdMeshers_Quadrangle_2D : SMESH::SMESH_2D_Algo
1128 * StdMeshers_QuadFromMedialAxis_1D2D: interface of "Quadrangle (Medial Axis Projection)" algorithm
1130 interface StdMeshers_QuadFromMedialAxis_1D2D : SMESH::SMESH_2D_Algo
1135 * StdMeshers_PolygonPerFace_2D: interface of "Polygon Per Face" 2D algorithm
1137 interface StdMeshers_PolygonPerFace_2D : SMESH::SMESH_2D_Algo
1142 * StdMeshers_PolyhedronPerSolid_3D: interface of "Polyhedron Per Solid" 3D algorithm
1144 interface StdMeshers_PolyhedronPerSolid_3D : SMESH::SMESH_3D_Algo
1149 * StdMeshers_Hexa_3D: interface of "Hexahedron (i,j,k)" algorithm
1151 interface StdMeshers_Hexa_3D : SMESH::SMESH_3D_Algo
1156 * StdMeshers_Prism_3D: interface of "3D extrusion" algorithm
1158 interface StdMeshers_Prism_3D : SMESH::SMESH_3D_Algo
1163 * StdMeshers_RadialPrism_3D: interface of "Radial Prism" algorithm
1165 interface StdMeshers_RadialPrism_3D : SMESH::SMESH_3D_Algo
1170 * StdMeshers_Projection_3D: interface of "Projection 3D" algorithm
1172 interface StdMeshers_Projection_3D : SMESH::SMESH_3D_Algo
1177 * StdMeshers_Projection_2D: interface of "Projection 2D" algorithm
1179 interface StdMeshers_Projection_2D : SMESH::SMESH_2D_Algo
1184 * StdMeshers_Projection_1D2D: interface of "Projection 1D-2D" algorithm
1186 interface StdMeshers_Projection_1D2D : SMESH::SMESH_2D_Algo
1191 * StdMeshers_Projection_1D: interface of "Projection 1D" algorithm
1193 interface StdMeshers_Projection_1D : SMESH::SMESH_1D_Algo
1198 * StdMeshers_UseExisting_2D: interface of "UseExisting 2D" algorithm
1199 * doing nothing to allow mesh generation by mesh edition functions in TUI mode
1201 interface StdMeshers_UseExisting_2D : SMESH::SMESH_2D_Algo
1206 * StdMeshers_UseExisting_1D: interface of "UseExisting 1D" algorithm
1207 * doing nothing to allow mesh generation by mesh edition functions in TUI mode
1209 interface StdMeshers_UseExisting_1D : SMESH::SMESH_1D_Algo
1214 * StdMeshers_RadialQuadrangle_1D2D: interface of "Radial quadrangle" algorithm
1216 interface StdMeshers_RadialQuadrangle_1D2D : SMESH::SMESH_2D_Algo
1221 * StdMeshers_Import_1D2D: interface of "Use existing 2D elements" algorithm
1223 interface StdMeshers_Import_1D2D : SMESH::SMESH_2D_Algo
1227 * StdMeshers_Import_1D: interface of "Use existing 1D elements" algorithm
1229 interface StdMeshers_Import_1D : SMESH::SMESH_1D_Algo
1233 * StdMeshers_Cartesian_3D: interface of "Body fitting" algorithm
1235 interface StdMeshers_Cartesian_3D : SMESH::SMESH_3D_Algo