1 // Copyright (C) 2007-2024 CEA, EDF, 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 "GEOM_Gen.idl"
31 #include "SALOME_Exception.idl"
32 #include "SMESH_Hypothesis.idl"
33 #include "SMESH_Mesh.idl"
35 * StdMeshers: interfaces to standard hypotheses and algorithms
40 * StdMeshers_LocalLength: interface of "Average length" hypothesis
42 interface StdMeshers_LocalLength : SMESH::SMESH_Hypothesis
45 * Sets <length> parameter value
47 void SetLength(in double length)
48 raises (SALOME::SALOME_Exception);
51 * Sets <precision> parameter value
53 * Precision parameter is used to allow rounding a number of segments,
54 * calculated from the edge length and average length of segment,
55 * to the lower integer, if this value outstands from it in bounds of the precision.
56 * Otherwise, the number of segments is rounded to the higher integer.
57 * Use value 0.5 to provide rounding to the nearest integer,
58 * 1.0 for the lower integer, 0.0 for the higher integer.
59 * Default value is 1e-07. In old studies, restored from file,
60 * this value will be set to zero, what corresponds to the old behaviour.
62 void SetPrecision(in double precision)
63 raises (SALOME::SALOME_Exception);
66 * Returns <length> parameter value
71 * Returns <precision> parameter value
73 double GetPrecision();
77 * StdMeshers_MaxLength: interface of "Max length" hypothesis
79 interface StdMeshers_MaxLength : SMESH::SMESH_Hypothesis
82 * Sets <length> parameter value
84 void SetLength(in double length)
85 raises (SALOME::SALOME_Exception);
87 * Returns <length> parameter value
91 * Returns true if preestemated length is defined
93 boolean HavePreestimatedLength();
95 * Returns preestemated length
97 double GetPreestimatedLength();
99 * Sets preestemated length
101 void SetPreestimatedLength(in double length);
103 * Sets boolean parameter enabling/desabling usage of length computed
104 * basing on size of bounding box of shape to mesh
106 void SetUsePreestimatedLength(in boolean toUse);
108 * Returns value of boolean parameter enabling/desabling usage of length computed
109 * basing on size of bounding box of shape to mesh
111 boolean GetUsePreestimatedLength();
115 * StdMeshers_AutomaticLength: interface of "Automatic length" hypothesis
117 interface StdMeshers_AutomaticLength : SMESH::SMESH_Hypothesis
120 * Sets Fineness parameter value
122 void SetFineness(in double theFineness)
123 raises (SALOME::SALOME_Exception);
126 * Returns <Fineness> parameter value
128 double GetFineness();
132 * Common interface of 1D hypotheses that can be reversed
134 interface Reversible1D
137 * Set list of edges to reverse
139 void SetReversedEdges( in SMESH::long_array list );
142 * Returns list of edges to reverse
144 SMESH::long_array GetReversedEdges();
147 * Set entry of the main object
149 void SetObjectEntry( in string entry );
152 * Get the entry of the main object
154 string GetObjectEntry();
158 * StdMeshers_NumberOfSegments: interface of "Nb. Segments" hypothesis
160 interface StdMeshers_NumberOfSegments : SMESH::SMESH_Hypothesis, Reversible1D
163 * Builds and returns point distribution according to passed density function
165 SMESH::double_array BuildDistributionExpr( in string func, in long nbSeg, in long conv )
166 raises (SALOME::SALOME_Exception);
167 SMESH::double_array BuildDistributionTab( in SMESH::double_array func, in long nbSeg, in long conv )
168 raises (SALOME::SALOME_Exception);
171 * Sets <number of segments> parameter value
173 void SetNumberOfSegments(in SMESH::smIdType segmentsNumber)
174 raises (SALOME::SALOME_Exception);
177 * Returns <number of segments> parameter value
179 long GetNumberOfSegments();
182 * Sets <distribution type> parameter value
184 void SetDistrType(in long typ)
185 raises (SALOME::SALOME_Exception);
188 * Returns <distribution type> parameter value
193 * Sets <scale factor> parameter value
195 void SetScaleFactor(in double scaleFactor)
196 raises (SALOME::SALOME_Exception);
199 * Returns <scale factor> parameter value
201 double GetScaleFactor()
202 raises (SALOME::SALOME_Exception);
205 * Sets <table function> parameter value for distribution DT_TabFunc
207 void SetTableFunction(in SMESH::double_array table)
208 raises (SALOME::SALOME_Exception);
211 * Returns <table function> parameter value for distribution DT_TabFunc
213 SMESH::double_array GetTableFunction()
214 raises (SALOME::SALOME_Exception);
217 * Sets <expression function> parameter value for distribution DT_ExprFunc
219 void SetExpressionFunction(in string expr)
220 raises (SALOME::SALOME_Exception);
223 * Returns <expression function> parameter value for distribution DT_ExprFunc
225 string GetExpressionFunction()
226 raises (SALOME::SALOME_Exception);
229 * Sets <conversion mode> parameter value for functional distributions
231 void SetConversionMode(in long conv )
232 raises (SALOME::SALOME_Exception);
235 * Returns <conversion mode> parameter value for functional distributions
237 long ConversionMode()
238 raises (SALOME::SALOME_Exception);
242 * StdMeshers_Arithmetic1D: interface of "Arithmetic 1D" hypothesis
244 interface StdMeshers_Arithmetic1D : SMESH::SMESH_Hypothesis, Reversible1D
247 * Sets <start segment length> or <end segment length> parameter value
248 * * OBSOLETE *. Avoid such a way of interface design
249 * * It is recommended to dedicate a method to each parameter.
251 void SetLength(in double length, in boolean isStartLength)
252 raises (SALOME::SALOME_Exception);
255 * Sets <start segment length> parameter value
257 void SetStartLength(in double length)
258 raises (SALOME::SALOME_Exception);
261 * Sets <end segment length> parameter value
263 void SetEndLength(in double length)
264 raises (SALOME::SALOME_Exception);
267 * Returns <start segment length> or <end segment length> parameter value
269 double GetLength(in boolean isStartLength);
274 * StdMeshers_Arithmetic1D: interface of "Geometric 1D" hypothesis
276 interface StdMeshers_Geometric1D : SMESH::SMESH_Hypothesis, Reversible1D
279 * Sets length of the first segment
281 void SetStartLength(in double length)
282 raises (SALOME::SALOME_Exception);
285 * Sets value of Common Ratio
287 void SetCommonRatio(in double factor)
288 raises (SALOME::SALOME_Exception);
291 * Returns length of the first segment
293 double GetStartLength();
296 * Returns value of Common Ratio
298 double GetCommonRatio();
303 * StdMeshers_MaxElementArea: interface of "Max. Triangle Area" hypothesis
305 interface StdMeshers_MaxElementArea : SMESH::SMESH_Hypothesis
308 * Sets <maximum element area> parameter value
310 void SetMaxElementArea(in double area)
311 raises (SALOME::SALOME_Exception);
314 * Returns <maximum element area> parameter value
316 double GetMaxElementArea();
320 * StdMeshers_LengthFromEdges: interface of "Length From Edges (2D Hyp. for Triangulator)" hypothesis
322 interface StdMeshers_LengthFromEdges : SMESH::SMESH_Hypothesis
325 * Sets <mode> parameter value
327 void SetMode(in long mode)
328 raises (SALOME::SALOME_Exception);
331 * Returns <mode> parameter value
337 * StdMeshers_StartEndLength: interface of "Start and End Length" hypothesis
339 interface StdMeshers_StartEndLength : SMESH::SMESH_Hypothesis, Reversible1D
342 * Sets <start segment length> or <end segment length> parameter value
343 * * OBSOLETE *. Avoid such a way of interface design.
344 * * It is recommended to dedicate a method to each parameter.
346 void SetLength(in double length, in boolean isStartLength)
347 raises (SALOME::SALOME_Exception);
350 * Sets <start segment length> parameter value
352 void SetStartLength(in double length)
353 raises (SALOME::SALOME_Exception);
356 * Sets <end segment length> parameter value
358 void SetEndLength(in double length)
359 raises (SALOME::SALOME_Exception);
362 * Returns <start segment length> or <end segment length> parameter value
364 double GetLength(in boolean isStartLength);
370 * StdMeshers_Deflection1D: interface of "Deflection 1D" hypothesis
372 interface StdMeshers_Deflection1D : SMESH::SMESH_Hypothesis
375 * Sets <deflection> parameter value
377 void SetDeflection(in double deflection)
378 raises (SALOME::SALOME_Exception);
381 * Returns <deflection> parameter value
383 double GetDeflection();
387 * StdMeshers_FixedPoints1D: interface of "Fixed points 1D" hypothesis
389 interface StdMeshers_FixedPoints1D : SMESH::SMESH_Hypothesis, Reversible1D
392 * Sets some points on edge using parameter on curve from 0 to 1
393 * (additionally it is neecessary to check orientation of edges and
394 * create list of reversed edges if it is needed) and sets numbers
395 * of segments between given points (default values are equals 1)
397 void SetPoints(in SMESH::double_array listParams)
398 raises (SALOME::SALOME_Exception);
399 void SetNbSegments(in SMESH::smIdType_array listNbSeg)
400 raises (SALOME::SALOME_Exception);
403 * Returns list of point's parameters
405 SMESH::double_array GetPoints();
408 * Returns list of numbers of segments
410 SMESH::smIdType_array GetNbSegments();
415 * StdMeshers_Adaptive1D: interface of "Adaptive" hypothesis
417 interface StdMeshers_Adaptive1D : SMESH::SMESH_Hypothesis
420 * Sets minimal allowed segment length
422 void SetMinSize(in double minSegLen) raises (SALOME::SALOME_Exception);
426 * Sets maximal allowed segment length
428 void SetMaxSize(in double maxSegLen) raises (SALOME::SALOME_Exception);
432 * Sets <deflection> parameter value,
433 * i.e. a maximal allowed distance between a segment and an edge.
435 void SetDeflection(in double deflection) raises (SALOME::SALOME_Exception);
436 double GetDeflection();
440 * StdMeshers_MaxElementVolume: interface of "Max. Hexahedron or Tetrahedron Volume" hypothesis
442 interface StdMeshers_MaxElementVolume : SMESH::SMESH_Hypothesis
445 * Sets <maximum element volume> parameter value
447 void SetMaxElementVolume(in double volume)
448 raises (SALOME::SALOME_Exception);
451 * Returns <maximum element volume> parameter value
453 double GetMaxElementVolume();
457 * StdMeshers_NotConformAllowed: interface of "Not Conform Mesh Allowed" hypothesis.
458 * Presence of this hypothesis permits to algorithm generation of not conform mesh.
460 interface StdMeshers_NotConformAllowed : SMESH::SMESH_Hypothesis
465 * StdMeshers_Propagation: interface of "Propagation of 1D Hyp. on
466 * Opposite Edges" hypothesis.
467 * Presence of this hypothesis on any edge propagates any other 1D
468 * hypothesis from this edge on all edges, opposite to it.
469 * It concerns only edges of quadrangle faces.
471 interface StdMeshers_Propagation : SMESH::SMESH_Hypothesis
476 * StdMeshers_Propagation: interface of "Propagation of Node
477 * Distribution on Opposite Edges" hypothesis.
478 * Presence of this hypothesis on any edge propagates distribution of nodes
479 * from this edge on all edges, opposite to it.
480 * It concerns only edges of quadrangle faces.
482 interface StdMeshers_PropagOfDistribution : SMESH::SMESH_Hypothesis
487 * StdMeshers_QuadranglePreference: interface of "QuadranglePreference" hypothesis.
488 * This hypothesis is used by StdMeshers_Quadrangle_2D algorithm.
489 * Presence of this hypothesis forces construction of quadrangles if the number
490 * of nodes on opposite edges is not the same in the case where the global number
491 * of nodes on edges is even
493 interface StdMeshers_QuadranglePreference : SMESH::SMESH_Hypothesis
498 * StdMeshers_QuadraticMesh: interface of "QuadraticMesh" hypothesis.
499 * This is an auxiliary 1D hypothesis whose presence forces construction
500 * of quadratic edges.
501 * If the 2D mesher sees that all boundary edges are quadratic ones,
502 * it generates quadratic faces, else it generates linear faces using
503 * medium nodes as if they were vertex ones.
504 * The 3D mesher generates quadratic volumes only if all boundary faces
505 * are quadratic ones, else it fails.
507 interface StdMeshers_QuadraticMesh : SMESH::SMESH_Hypothesis
513 * StdMeshers_NumberOfLayers: interface of "Nb. Layers" hypothesis.
514 * This hypothesis is used by "Radial prism" algorithm.
515 * It specifies number of segments between the internal
516 * and the external surfaces.
518 interface StdMeshers_NumberOfLayers : SMESH::SMESH_Hypothesis
521 * Sets <number of segments> parameter value
523 void SetNumberOfLayers(in long numberOfLayers)
524 raises (SALOME::SALOME_Exception);
527 * Returns <number of layers> parameter value
529 long GetNumberOfLayers();
534 * StdMeshers_LayerDistribution: interface of "Distribution of Layers" hypothesis.
535 * This hypothesis is used by "Radial prism" algorithm.
536 * It specifies 1D hypothesis defining distribution of segments between the internal
537 * and the external surfaces.
539 interface StdMeshers_LayerDistribution : SMESH::SMESH_Hypothesis
542 * Sets 1D hypothesis specifying distribution of layers
544 void SetLayerDistribution(in SMESH::SMESH_Hypothesis distributionHyp)
545 raises (SALOME::SALOME_Exception);
548 * Returns 1D hypothesis specifying distribution of layers
550 SMESH::SMESH_Hypothesis GetLayerDistribution();
555 * StdMeshers_NumberOfLayers2D: interface of "Nb. Layers" hypothesis.
556 * This hypothesis is used by "Radial quadrangle" algorithm.
557 * It specifies number of segments between the internal
558 * and the external surfaces.
560 interface StdMeshers_NumberOfLayers2D : StdMeshers_NumberOfLayers
565 * StdMeshers_LayerDistribution2D: interface of "Distribution of Layers" hypothesis.
566 * This hypothesis is used by "Radial quadrangle" algorithm.
567 * It specifies 1D hypothesis defining distribution of segments between the internal
568 * and the external surfaces.
570 interface StdMeshers_LayerDistribution2D : StdMeshers_LayerDistribution
575 * interface of "ProjectionSource1D" hypothesis.
576 * This hypothesis specifies a meshed edge to take a mesh pattern from
577 * and optionally association of vertices between the source edge and a
578 * target one (where a hipothesis is assigned to)
580 interface StdMeshers_ProjectionSource1D : SMESH::SMESH_Hypothesis
583 * Sets source <edge> to take a mesh pattern from
585 void SetSourceEdge(in GEOM::GEOM_Object edge)
586 raises (SALOME::SALOME_Exception);
589 * Returns the source edge
591 GEOM::GEOM_Object GetSourceEdge();
594 * Sets source <mesh> to take a mesh pattern from
596 void SetSourceMesh(in SMESH::SMESH_Mesh mesh);
601 SMESH::SMESH_Mesh GetSourceMesh();
604 * Sets vertex association between the source edge and the target one.
605 * This parameter is optional
607 void SetVertexAssociation(in GEOM::GEOM_Object sourceVertex,
608 in GEOM::GEOM_Object targetVertex)
609 raises (SALOME::SALOME_Exception);
612 * Returns the vertex associated with the target vertex.
613 * Result may be nil if association not set
615 GEOM::GEOM_Object GetSourceVertex();
618 * Returns the vertex associated with the source vertex.
619 * Result may be nil if association not set
621 GEOM::GEOM_Object GetTargetVertex();
625 * interface of "ProjectionSource2D" hypothesis.
626 * This hypothesis specifies a meshed face to take a mesh pattern from
627 * and optionally association of vertices between the source face and a
628 * target one (where a hipothesis is assigned to)
630 interface StdMeshers_ProjectionSource2D : SMESH::SMESH_Hypothesis
633 * Sets a source <face> to take a mesh pattern from
635 void SetSourceFace(in GEOM::GEOM_Object face)
636 raises (SALOME::SALOME_Exception);
639 * Returns the source face
641 GEOM::GEOM_Object GetSourceFace();
644 * Sets source <mesh> to take a mesh pattern from
646 void SetSourceMesh(in SMESH::SMESH_Mesh mesh);
651 SMESH::SMESH_Mesh GetSourceMesh();
654 * Sets vertex association between the source face and the target one.
655 * This parameter is optional.
656 * Two vertices must belong to one edge of a face
658 void SetVertexAssociation(in GEOM::GEOM_Object sourceVertex1,
659 in GEOM::GEOM_Object sourceVertex2,
660 in GEOM::GEOM_Object targetVertex1,
661 in GEOM::GEOM_Object targetVertex2)
662 raises (SALOME::SALOME_Exception);
665 * Returns the <i>-th source vertex associated with the <i>-th target vertex.
666 * Result may be nil if association not set.
667 * Valid indices are 1 and 2
669 GEOM::GEOM_Object GetSourceVertex(in long i)
670 raises (SALOME::SALOME_Exception);
673 * Returns the <i>-th target vertex associated with the <i>-th source vertex.
674 * Result may be nil if association not set.
675 * Valid indices are 1 and 2
677 GEOM::GEOM_Object GetTargetVertex(in long i)
678 raises (SALOME::SALOME_Exception);
682 * interface of "ProjectionSource3D" hypothesis.
683 * This hypothesis specifies a meshed shell or solid to take a mesh pattern from
684 * and optionally association of vertices between the source shape and a
685 * target one (where a hipothesis is assigned to)
687 interface StdMeshers_ProjectionSource3D : SMESH::SMESH_Hypothesis
690 * Sets a source <shape> to take a mesh pattern from
692 void SetSource3DShape(in GEOM::GEOM_Object shape)
693 raises (SALOME::SALOME_Exception);
696 * Returns the source shape
698 GEOM::GEOM_Object GetSource3DShape();
701 * Sets source <mesh> to take a mesh pattern from
703 void SetSourceMesh(in SMESH::SMESH_Mesh mesh);
708 SMESH::SMESH_Mesh GetSourceMesh();
711 * Sets vertex association between the source shape and the target one.
712 * This parameter is optional.
713 * Two vertices must belong to one edge of a shape
715 void SetVertexAssociation(in GEOM::GEOM_Object sourceVertex1,
716 in GEOM::GEOM_Object sourceVertex2,
717 in GEOM::GEOM_Object targetVertex1,
718 in GEOM::GEOM_Object targetVertex2)
719 raises (SALOME::SALOME_Exception);
722 * Returns the <i>-th source vertex associated with the <i>-th target vertex.
723 * Result may be nil if association not set.
724 * Valid indices are 1 and 2
726 GEOM::GEOM_Object GetSourceVertex(in long i)
727 raises (SALOME::SALOME_Exception);
730 * Returns the <i>-th target vertex associated with the <i>-th source vertex.
731 * Result may be nil if association not set.
732 * Valid indices are 1 and 2
734 GEOM::GEOM_Object GetTargetVertex(in long i)
735 raises (SALOME::SALOME_Exception);
739 * interface of "SegmentLengthAroundVertex" hypothesis.
740 * This hypothesis specifies length of segments adjacent to the vertex the
741 * hypothesis is assigned to
743 interface StdMeshers_SegmentLengthAroundVertex : SMESH::SMESH_Hypothesis
746 * Sets <length> parameter value
748 void SetLength(in double length)
749 raises (SALOME::SALOME_Exception);
752 * Returns <length> parameter value
758 * StdMeshers_QuadrangleParams: interface of "Quadrangle Params" hypothesis
764 QUAD_QUADRANGLE_PREF,
765 QUAD_QUADRANGLE_PREF_REVERSED,
767 QUAD_NB_TYPES /* this is not a type of quadrangulation */
770 interface StdMeshers_QuadrangleParams : SMESH::SMESH_Hypothesis
773 * Set base vertex for triangles
775 void SetTriaVertex( in long vertID );
778 * Returns base vertex for triangles
780 long GetTriaVertex();
783 * Set entry of the main object
785 void SetObjectEntry( in string entry );
788 * Get the entry of the main object
790 string GetObjectEntry();
793 * Set the type of quadrangulation
795 void SetQuadType( in QuadType type );
798 * Get the type of quadrangulation
800 QuadType GetQuadType();
803 * Set positions of enforced nodes
805 void SetEnforcedNodes(in GEOM::ListOfGO vertices, in SMESH::nodes_array points)
806 raises (SALOME::SALOME_Exception);
809 * Returns positions of enforced nodes
811 void GetEnforcedNodes(out GEOM::ListOfGO vertices, out SMESH::nodes_array points);
814 * Returns entries of shapes defining enforced nodes
816 SMESH::string_array GetEnfVertices();
819 * Set corner vertices
821 void SetCorners( in SMESH::long_array vertexIDs );
824 * Return IDs of corner vertices
826 SMESH::long_array GetCorners();
830 * interface of "Source edges" hypothesis.
831 * This hypothesis specifies groups of edges of other mesh to be imported
834 interface StdMeshers_ImportSource1D : SMESH::SMESH_Hypothesis
837 * Set edges to import from other mesh
839 void SetSourceEdges(in SMESH::ListOfGroups groups);
840 SMESH::string_array GetSourceEdges();
843 * Set to import the whole other mesh or not, and if yes, to
844 * copy groups of not. By default the mesh is not copied.
846 void SetCopySourceMesh(in boolean toCopyMesh, in boolean toCopyGroups);
847 void GetCopySourceMesh(out boolean toCopyMesh,out boolean toCopyGroups);
851 * interface of "Source faces" hypothesis.
852 * This hypothesis specifies groups of faces of other mesh to be imported
855 interface StdMeshers_ImportSource2D : SMESH::SMESH_Hypothesis
858 * Set faces to import from other mesh
860 void SetSourceFaces(in SMESH::ListOfGroups groups);
861 SMESH::string_array GetSourceFaces();
864 * Set to import the whole other mesh or not, and if yes, to
865 * copy groups of not. By default the mesh is not copied.
867 void SetCopySourceMesh(in boolean toCopyMesh,in boolean toCopyGroups);
868 void GetCopySourceMesh(out boolean toCopyMesh,out boolean toCopyGroups);
872 * Method of computing translation of a node at Viscous Layers construction
874 enum VLExtrusionMethod {
875 // node is translated along normal to a surface with possible further smoothing
877 // node is translated along the average normal of surrounding faces till
878 // intersection with a neighbor face translated along its own normal
879 // by the layers thickness
881 // node is translated along the average normal of surrounding faces
882 // by the layers thickness
887 * interface of "Viscous Layers" hypothesis.
888 * This hypothesis specifies parameters of layers of prisms to build
889 * near mesh boundary. This hypothesis can be used by several 3D algorithms:
890 * NETGEN 3D, Hexahedron(i,j,k), MG_Tetra
892 interface StdMeshers_ViscousLayers : SMESH::SMESH_Hypothesis
895 * Set faces to exclude from treatment
897 void SetIgnoreFaces(in SMESH::long_array faceIDs) raises (SALOME::SALOME_Exception);
898 SMESH::long_array GetIgnoreFaces();
901 * Set faces either to exclude from treatment or to make the Viscous Layers on.
903 void SetFaces(in SMESH::long_array faceIDs,
904 in boolean toIgnore) raises (SALOME::SALOME_Exception);
905 SMESH::long_array GetFaces();
906 boolean GetIsToIgnoreFaces();
909 * Set total thickness of layers of prisms
911 void SetTotalThickness(in double thickness) raises (SALOME::SALOME_Exception);
912 double GetTotalThickness();
915 * Set number of layers of prisms
917 void SetNumberLayers(in short nb) raises (SALOME::SALOME_Exception);
918 short GetNumberLayers();
921 * Set factor (>=1.0) of growth of layer thickness towards inside of mesh
923 void SetStretchFactor(in double factor) raises (SALOME::SALOME_Exception);
924 double GetStretchFactor();
926 void SetMethod( in VLExtrusionMethod how );
927 VLExtrusionMethod GetMethod();
929 void SetGroupName(in string name);
930 string GetGroupName();
934 * interface of "Viscous Layers 2D" hypothesis.
935 * This hypothesis specifies parameters of layers of quadrilaterals to build
936 * near mesh boundary. This hypothesis can be used by several 2D algorithms:
937 * Quadrangle (mapping), NETGEN, BLSURF
939 interface StdMeshers_ViscousLayers2D : SMESH::SMESH_Hypothesis
942 * Set edges to exclude from treatment
944 void SetIgnoreEdges(in SMESH::long_array edgeIDs) raises (SALOME::SALOME_Exception);
945 SMESH::long_array GetIgnoreEdges();
948 * Set edges either to exclude from treatment or to make the Viscous Layers on.
950 void SetEdges(in SMESH::long_array edgeIDs,
951 in boolean toIgnore) raises (SALOME::SALOME_Exception);
952 SMESH::long_array GetEdges();
953 boolean GetIsToIgnoreEdges();
956 * Set total thickness of layers of prisms
958 void SetTotalThickness(in double thickness) raises (SALOME::SALOME_Exception);
959 double GetTotalThickness();
962 * Set number of layers of prisms
964 void SetNumberLayers(in short nb) raises (SALOME::SALOME_Exception);
965 short GetNumberLayers();
968 * Set factor (>=1.0) of growth of layer thickness towards inside of mesh
970 void SetStretchFactor(in double factor) raises (SALOME::SALOME_Exception);
971 double GetStretchFactor();
973 void SetGroupName(in string name);
974 string GetGroupName();
978 * interface of "Body fitting Parameters" hypothesis.
979 * This hypothesis specifies
981 * - Definition of the Cartesian grid
982 * - Direction of grid axes
984 interface StdMeshers_CartesianParameters3D : SMESH::SMESH_Hypothesis
987 * Set size threshold. A polyhedral cell got by cutting an initial
988 * hexahedron by geometry boundary is considered small and is removed if
989 * it's size is \a threshold times less than the size of the initial hexahedron.
990 * threshold must be > 1.0
992 void SetSizeThreshold(in double threshold) raises (SALOME::SALOME_Exception);
993 double GetSizeThreshold();
996 * \brief Return true if the grid is defined by spacing functions and
997 * not by node coordinates in given direction (X==0,...)
999 boolean IsGridBySpacing(in short axis);
1002 * Set coordinates of nodes along an axis (countered from zero)
1004 void SetGrid(in SMESH::double_array coords,
1005 in short axis) raises (SALOME::SALOME_Exception);
1006 SMESH::double_array GetGrid(in short axis) raises (SALOME::SALOME_Exception);
1009 * \brief Set grid spacing along an axis
1010 * \param spaceFunctions - functions defining spacing values at given point on axis
1011 * \param internalPoints - points dividing a grid into parts along an axis
1012 * \param axis - index of an axis counterd from zero, i.e. 0==X, 1==Y, 2==Z
1014 * Parameter t of spaceFunction f(t) is a position [0,1] within bounding box of
1015 * the shape to mesh or within an interval defined by internal points
1017 void SetGridSpacing(in SMESH::string_array spaceFunctions,
1018 in SMESH::double_array internalPoints,
1019 in short axis) raises (SALOME::SALOME_Exception);
1021 void GetGridSpacing(out SMESH::string_array spaceFunctions,
1022 out SMESH::double_array internalPoints,
1023 in short axis) raises (SALOME::SALOME_Exception);
1025 * Set custom direction of axes
1027 void SetAxesDirs(in SMESH::DirStruct x,
1028 in SMESH::DirStruct y,
1029 in SMESH::DirStruct z ) raises (SALOME::SALOME_Exception);
1030 void GetAxesDirs(out SMESH::DirStruct x,
1031 out SMESH::DirStruct y,
1032 out SMESH::DirStruct z );
1034 * Set/unset a fixed point, at which a node will be created provided that grid
1035 * is defined by spacing in all directions
1037 void SetFixedPoint(in SMESH::PointStruct p, in boolean toUnset);
1038 boolean GetFixedPoint(out SMESH::PointStruct p);
1041 * Enable implementation of geometrical edges into the mesh. If this feature
1042 * is disabled, sharp edges of the shape are lost ("smoothed") in the mesh if
1043 * they don't coincide with the grid lines
1045 void SetToAddEdges(in boolean toAdd);
1046 boolean GetToAddEdges();
1049 * Enable treatment of geom faces, either shared by solids or internal.
1051 void SetToConsiderInternalFaces(in boolean toTreat);
1052 boolean GetToConsiderInternalFaces();
1055 * Enable applying size threshold to grid cells cut by internal geom faces.
1057 void SetToUseThresholdForInternalFaces(in boolean toUse);
1058 boolean GetToUseThresholdForInternalFaces();
1061 * Enable creation of mesh faces.
1063 void SetToCreateFaces(in boolean toCreate);
1064 boolean GetToCreateFaces();
1067 * Enable creation of mesh faces.
1069 void SetToUseQuanta(in boolean toUseQuanta);
1070 boolean GetToUseQuanta();
1072 void SetQuanta(in double quanta) raises (SALOME::SALOME_Exception);
1076 * Return axes at which a number of generated hexahedra is maximal
1078 void ComputeOptimalAxesDirs(in GEOM::GEOM_Object shape,
1079 in boolean isOrthogonal,
1080 out SMESH::DirStruct x,
1081 out SMESH::DirStruct y,
1082 out SMESH::DirStruct z )
1083 raises (SALOME::SALOME_Exception);
1086 * \brief Compute node coordinates by spacing functions
1087 * \param x0 - lower coordinate
1088 * \param x1 - upper coordinate
1089 * \param spaceFuns - space functions
1090 * \param points - internal points
1091 * \param axisName - e.g. "X"
1092 * \return the computed coordinates
1094 SMESH::double_array ComputeCoordinates(in double x0,
1096 in SMESH::string_array spaceFuns,
1097 in SMESH::double_array points,
1098 in string axisName )
1099 raises (SALOME::SALOME_Exception);
1104 * interface of "Renumber" hypothesis used by Hexahedron(ijk) algorithm
1105 * to renumber mesh of a block to be structured-like
1107 struct BlockCS // Local coordinate system of a block
1109 GEOM::GEOM_Object solid;
1110 GEOM::GEOM_Object vertex000;
1111 GEOM::GEOM_Object vertex001;
1113 typedef sequence<BlockCS> blockcs_array;
1115 interface StdMeshers_BlockRenumber : SMESH::SMESH_Hypothesis
1117 void SetBlocksOrientation( in blockcs_array blockCS );
1118 blockcs_array GetBlocksOrientation();
1122 * StdMeshers_SegmentAroundVertex_0D: interface of "SegmentAroundVertex" algorithm
1124 interface StdMeshers_SegmentAroundVertex_0D : SMESH::SMESH_0D_Algo
1129 * StdMeshers_Regular_1D: interface of "Wire discretisation" algorithm
1131 interface StdMeshers_Regular_1D : SMESH::SMESH_1D_Algo
1136 * StdMeshers_CompositeSegment_1D: interface of "Composite side discretisation" algorithm
1138 interface StdMeshers_CompositeSegment_1D : SMESH::SMESH_1D_Algo
1143 * StdMeshers_Quadrangle_2D: interface of "Quadrangle (Mapping)" algorithm
1145 interface StdMeshers_Quadrangle_2D : SMESH::SMESH_2D_Algo
1150 * StdMeshers_QuadFromMedialAxis_1D2D: interface of "Quadrangle (Medial Axis Projection)" algorithm
1152 interface StdMeshers_QuadFromMedialAxis_1D2D : SMESH::SMESH_2D_Algo
1157 * StdMeshers_PolygonPerFace_2D: interface of "Polygon Per Face" 2D algorithm
1159 interface StdMeshers_PolygonPerFace_2D : SMESH::SMESH_2D_Algo
1164 * StdMeshers_PolyhedronPerSolid_3D: interface of "Polyhedron Per Solid" 3D algorithm
1166 interface StdMeshers_PolyhedronPerSolid_3D : SMESH::SMESH_3D_Algo
1171 * StdMeshers_Hexa_3D: interface of "Hexahedron (i,j,k)" algorithm
1173 interface StdMeshers_Hexa_3D : SMESH::SMESH_3D_Algo
1178 * StdMeshers_Prism_3D: interface of "3D extrusion" algorithm
1180 interface StdMeshers_Prism_3D : SMESH::SMESH_3D_Algo
1185 * StdMeshers_RadialPrism_3D: interface of "Radial Prism" algorithm
1187 interface StdMeshers_RadialPrism_3D : SMESH::SMESH_3D_Algo
1192 * StdMeshers_Projection_3D: interface of "Projection 3D" algorithm
1194 interface StdMeshers_Projection_3D : SMESH::SMESH_3D_Algo
1199 * StdMeshers_Projection_2D: interface of "Projection 2D" algorithm
1201 interface StdMeshers_Projection_2D : SMESH::SMESH_2D_Algo
1206 * StdMeshers_Projection_1D2D: interface of "Projection 1D-2D" algorithm
1208 interface StdMeshers_Projection_1D2D : SMESH::SMESH_2D_Algo
1213 * StdMeshers_Projection_1D: interface of "Projection 1D" algorithm
1215 interface StdMeshers_Projection_1D : SMESH::SMESH_1D_Algo
1220 * StdMeshers_UseExisting_2D: interface of "UseExisting 2D" algorithm
1221 * doing nothing to allow mesh generation by mesh edition functions in TUI mode
1223 interface StdMeshers_UseExisting_2D : SMESH::SMESH_2D_Algo
1228 * StdMeshers_UseExisting_1D: interface of "UseExisting 1D" algorithm
1229 * doing nothing to allow mesh generation by mesh edition functions in TUI mode
1231 interface StdMeshers_UseExisting_1D : SMESH::SMESH_1D_Algo
1236 * StdMeshers_RadialQuadrangle_1D2D: interface of "Radial quadrangle" algorithm
1238 interface StdMeshers_RadialQuadrangle_1D2D : SMESH::SMESH_2D_Algo
1243 * StdMeshers_Import_1D2D: interface of "Use existing 2D elements" algorithm
1245 interface StdMeshers_Import_1D2D : SMESH::SMESH_2D_Algo
1249 * StdMeshers_Import_1D: interface of "Use existing 1D elements" algorithm
1251 interface StdMeshers_Import_1D : SMESH::SMESH_1D_Algo
1255 * StdMeshers_Cartesian_3D: interface of "Body fitting" algorithm
1257 interface StdMeshers_Cartesian_3D : SMESH::SMESH_3D_Algo
1261 * StdMeshers_Cartesian_3D: interface of "ViscousLayerBuilder" algorithm
1263 interface StdMeshers_ViscousLayerBuilder : SMESH::SMESH_2D_Algo
1266 * Set faces to exclude from the definition of face to shrink
1268 void SetIgnoreFaces(in SMESH::long_array faceIDs) raises (SALOME::SALOME_Exception);
1269 // SMESH::long_array GetIgnoreFaces();
1272 * Set faces either to exclude from treatment or to make the offset geometry on.
1274 void SetFaces(in SMESH::long_array faceIDs,
1275 in boolean toIgnore) raises (SALOME::SALOME_Exception);
1276 // SMESH::long_array GetFaces();
1277 // boolean GetIsToIgnoreFaces();
1279 void SetTotalThickness(in double thickness) raises (SALOME::SALOME_Exception);
1280 void SetNumberLayers(in short numberOfLayers ) raises (SALOME::SALOME_Exception);
1281 void SetStretchFactor(in double strechFactor ) raises (SALOME::SALOME_Exception);
1282 void SetMethod( in VLExtrusionMethod how ) raises (SALOME::SALOME_Exception);
1283 void SetGroupName(in string name) raises (SALOME::SALOME_Exception);
1285 GEOM::GEOM_Object GetShrinkGeometry( in SMESH::SMESH_Mesh finalMesh, in GEOM::GEOM_Object theObject ) raises (SALOME::SALOME_Exception);
1288 * Build the prismatic layer from the shrink mesh
1290 boolean AddLayers( in SMESH::SMESH_Mesh sourceMesh, in SMESH::SMESH_Mesh finalMesh, in GEOM::GEOM_Object theObject ) raises (SALOME::SALOME_Exception);