Salome HOME
Bug 20110: EDF GEOM 882: Unwanted crosses after partition. A fix by PKV.
[modules/geom.git] / resources / ShHealing
1 !  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 !
3 !  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 !  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 !
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.
10 !
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.
15 !
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
19 !
20 !  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 !
22
23 !--------------------------------------------------------------------
24 ! Parameters for Shape Healing
25 !--------------------------------------------------------------------
26
27 ShapeProcess.exec.op : FixShape,FixFaceSize,DropSmallEdges,SameParameter
28
29 ShapeProcess.SplitAngle.Angle                           : 3.1415928
30 ShapeProcess.SplitAngle.MaxTolerance                    : 0.1
31 ShapeProcess.SplitAngle.SegmentSurfaceMode              : 1
32
33 ShapeProcess.SplitClosedFaces.NbSplitPoints             : 1
34 ShapeProcess.SplitClosedFaces.CloseTolerance            : 0.05
35 ShapeProcess.SplitClosedFaces.MaxTolerance              : 0.1
36 ShapeProcess.SplitClosedFaces.SegmentSurfaceMode        : 1
37
38 ShapeProcess.FixFaceSize.Tolerance                      : 0.05
39
40 ShapeProcess.DropSmallEdges.Tolerance3d                 : 0.05
41
42 ShapeProcess.BSplineRestriction.SurfaceMode             : 1
43 ShapeProcess.BSplineRestriction.Curve3dMode             : 1
44 ShapeProcess.BSplineRestriction.Curve2dMode             : 1
45 ShapeProcess.BSplineRestriction.OffsetSurfaceMode       : 1
46 ShapeProcess.BSplineRestriction.OffsetCurve3dMode       : 1
47 ShapeProcess.BSplineRestriction.OffsetCurve2dMode       : 1
48 ShapeProcess.BSplineRestriction.LinearExtrusionMode     : 1
49 ShapeProcess.BSplineRestriction.RevolutionMode          : 1
50 ShapeProcess.BSplineRestriction.Tolerance3d             : 1e-3
51 ShapeProcess.BSplineRestriction.Tolerance2d             : 1e-5
52 ShapeProcess.BSplineRestriction.Continuity3d            : C1
53 ShapeProcess.BSplineRestriction.Continuity2d            : C1
54 ShapeProcess.BSplineRestriction.RequiredDegree          : 15
55 ShapeProcess.BSplineRestriction.RequiredNbSegments      : 100
56 ShapeProcess.BSplineRestriction.PreferDegree            : 1
57 ShapeProcess.BSplineRestriction.RationalToPolynomial    : 1
58 ShapeProcess.BSplineRestriction.MaxDegree               : 15
59 ShapeProcess.BSplineRestriction.MaxNbSegments           : 10000
60 ShapeProcess.BSplineRestriction.SegmentSurfaceMode      : 1
61 ShapeProcess.BSplineRestriction.ConvCurve3dMode         : 0
62 ShapeProcess.BSplineRestriction.ConvCurve2dMode         : 0
63 ShapeProcess.BSplineRestriction.PlaneMode               : 0
64 ShapeProcess.BSplineRestriction.BezierMode              : 0
65
66 ShapeProcess.SplitContinuity.Tolerance3d                :1.e-3
67 ShapeProcess.SplitContinuity.SurfaceContinuity          :C0
68 ShapeProcess.SplitContinuity.CurveContinuity            :C1
69
70 ShapeProcess.ToBezier.EdgeMode                          : 0
71 ShapeProcess.ToBezier.SurfaceMode                       : 0
72 ShapeProcess.ToBezier.PlaneMode                         : 1
73 ShapeProcess.ToBezier.RevolutionMode                    : 1
74 ShapeProcess.ToBezier.ExtrusionMode                     : 1
75 ShapeProcess.ToBezier.BSplineMode                       : 1
76 ShapeProcess.ToBezier.Curve3dMode                       : 1
77 ShapeProcess.ToBezier.Curve2dMode                       : 1
78 ShapeProcess.ToBezier.Line3dMode                        : 1
79 ShapeProcess.ToBezier.Circle3dMode                      : 1
80 ShapeProcess.ToBezier.Conic3dMode                       : 1
81 ShapeProcess.ToBezier.MaxTolerance                      : 0.1
82 ShapeProcess.ToBezier.SegmentSurfaceMode                : 1
83 ShapeProcess.ToBezier.MinCurveLength                    : 0.05
84
85 ShapeProcess.FixShape.Tolerance3d                       : 1.e-7
86 ShapeProcess.FixShape.MaxTolerance3d                    : 1
87 ShapeProcess.FixShape.MinTolerance3d                    : 1.e-7
88 ShapeProcess.FixShape.FixFreeShellMode                  : -1
89 ShapeProcess.FixShape.FixFreeFaceMode                   : -1
90 ShapeProcess.FixShape.FixFreeWireMode                   : -1
91 ShapeProcess.FixShape.FixSameParameterMode              : -1
92 ShapeProcess.FixShape.FixSolidMode                      : -1
93 ShapeProcess.FixShape.FixShellMode                      : -1
94 ShapeProcess.FixShape.FixFaceMode                       : -1
95 ShapeProcess.FixShape.FixWireMode                       : -1
96 ShapeProcess.FixShape.FixOrientationMode                : -1
97 ShapeProcess.FixShape.FixMissingSeamMode                : -1
98 ShapeProcess.FixShape.FixSmallAreaWireMode              : -1
99 ShapeProcess.FixShape.ModifyTopologyMode                : 0
100 ShapeProcess.FixShape.ModifyGeometryMode                : 1
101 ShapeProcess.FixShape.ClosedWireMode                    : 1
102 ShapeProcess.FixShape.PreferencePCurveMode              : 1
103 ShapeProcess.FixShape.FixReorderMode                    : -1
104 ShapeProcess.FixShape.FixSmallMode                      : -1
105 ShapeProcess.FixShape.FixConnectedMode                  : -1
106 ShapeProcess.FixShape.FixEdgeCurvesMode                 : -1
107 ShapeProcess.FixShape.FixDegeneratedMode                : -1
108 ShapeProcess.FixShape.FixLackingMode                    : -1
109 ShapeProcess.FixShape.FixSelfIntersectionMode           : -1
110 ShapeProcess.FixShape.FixReversed2dMode                 : -1
111 ShapeProcess.FixShape.FixRemovePCurveMode               : -1
112 ShapeProcess.FixShape.FixRemoveCurve3dMode              : -1
113 ShapeProcess.FixShape.FixAddPCurveMode                  : -1
114 ShapeProcess.FixShape.FixAddCurve3dMode                 : -1
115 ShapeProcess.FixShape.FixSeamMode                       : -1
116 ShapeProcess.FixShape.FixShiftedMode                    : -1
117 ShapeProcess.FixShape.FixEdgeSameParameterMode          : 0
118 ShapeProcess.FixShape.FixSelfIntersectingEdgeMode       : -1
119 ShapeProcess.FixShape.FixIntersectingEdgesMode          : -1
120 ShapeProcess.FixShape.FixNonAdjacentIntersectingEdgesMode : -1
121 ShapeProcess.FixShape.FixIntersectingWiresMode          : -1
122 ShapeProcess.FixShape.FixLoopWiresMode                  : -1
123 ShapeProcess.FixShape.CreateOpenSolidMode               :0
124
125 ShapeProcess.SameParameter.Force                        : 0
126 ShapeProcess.SameParameter.Tolerance3d                  : 1.e-7
127
128 !===========================================================================
129 ! Description of parameters for Operations
130 !===========================================================================
131 ! .MaxTolerance                        : Maximal tolerance for comparing curves, points which is 
132 !                                         used by splitting tools. The tools that are used this 
133 !                                         parameter are the following: SplitAngle, SplitClosedFaces,
134 !                                         ToBezier. This value should be the same for all tools in 
135 !                                         one sequence. To redefine default value uncomment 
136 !                                         appropriate line in each operator.
137 ! .SegmentSurfaceMode                   : Mode for limiting surface by UV boundaries of face that
138 !                                         is based on this surface. If flag is 1 the surface is
139 !                                         limited. This mode is used by splitting tools (SplitAngle, 
140 !                                         SplitClosedFaces, ToBezier). This value should be the same
141 !                                         for all tools in one sequence. To redefine default value
142 !                                         uncomment appropriate line in each operator.
143 ! BSplineRestriction                    : Approximation of general B-Spline and Bezier with particular B-Spline
144 ! BSplineRestriction.ConvCurve3dMode    : Mode of conversion of any 3D curve to BSpline and approximation,
145 ! BSplineRestriction.ConvCurve2dMode    : Mode of conversion of any 2D curve to BSpline and approximation,
146 ! BSplineRestriction.PlaneMode          : Mode of conversion of Geom_Plane to BSpline surface,
147 ! BSplineRestriction.BezierMode         : Mode of conversion of Besier surface to BSpline and approximation,
148 ! BSplineRestriction.SurfaceMode        : Mode of approximation of surfaces if restriction is necessary, yes/no
149 ! BSplineRestriction.Curve3dMode        : Mode of approximation of 3D curves if restriction is necessary, yes/no 
150 ! BSplineRestriction.Curve2dMode        : Mode of approximation of 2D curves if restriction is necessary, yes/no
151 ! BSplineRestriction.OffsetSurfaceMode  : Mode of conversion of offset surfaces to BSpline surface, yes/no
152 !                                       : Yes - surface is converted to BSpline surface
153 !                                       : No - basis surface is processed but offset surface is kept.
154 !                                       : This mode acts if BSplineRestriction.SurfaceMode is yes.
155 ! BSplineRestriction.LinearExtrusionMode: Mode of conversion of linear extrusion surfaces to BSpline surface, yes/no
156 !                                       : Yes - surface is converted to BSpline surface
157 !                                       : No - basis curve is processed but extrusion surface is kept.
158 !                                       : This mode acts if BSplineRestriction.SurfaceMode is yes.
159 ! BSplineRestriction.RevolutionMode     : Mode of conversion surfaces of revolution to BSpline surface, yes/no
160 !                                       : Yes - surface is converted to BSpline surface
161 !                                       : No - basis curve is processed but revolution surface is kept.
162 !                                       : This mode acts if BSplineRestriction.SurfaceMode is yes.
163 ! BSplineRestriction.OffsetCurve3dMode  : Mode of conversion of 3d offset curves to BSpline curves, yes/no
164 !                                       : Yes - curve is converted to BSpline curve
165 !                                       : No - basis curve is processed but offset curve is kept.
166 !                                       : This mode acts if BSplineRestriction.Curve3dMode is yes.
167 ! BSplineRestriction.OffsetCurve2dMode  : Mode of conversion of 2d offset curves to BSpline curves, yes/no
168 !                                       : Yes - curve is converted to BSpline curve
169 !                                       : No - basis curve is processed but offset curve is kept.
170 !                                       : This mode acts if BSplineRestriction.Curve2dMode is yes.
171 ! BSplineRestriction.Tolerance3d        : Tolerance of 3D approximation
172 ! BSplineRestriction.Tolerance2d        : Tolerance of 2D approximation
173 ! BSplineRestriction.Continuity3d       : Required continuity of 3D geometry
174 ! BSplineRestriction.Continuity2d       : Required continuity of 2D geometry
175 ! BSplineRestriction.RequiredDegree     : Required degree of B-Spline 
176 ! BSplineRestriction.RequiredNbSegments : Required maximum number of segments of B-Spline
177 ! BSplineRestriction.PreferDegree       : Preference between requirement to degree and maximum number of segments, true/false
178 ! BSplineRestriction.RationalToPolynomial: Mode of conversion of rational B-Spline to polynomial, yes/no
179 ! BSplineRestriction.MaxDegree          : Maximum allowed degree of B-Spline
180 ! BSplineRestriction.MaxNbSegments      : Maximum allowed number of segments in a B-Spline
181
182 ! DirectFaces                           : Conversion of elementary surface in left-handed coordinate system into right-handed
183 ! no parameters
184
185 ! ElementaryToRevolution                : Conversion of elementary revolutive surface into general surface of revolution
186 ! no parameters
187
188 ! SameParameter                         : Conversion of edge to be SameRange and SameParameter
189 ! SameParameter.Force                   : Mode of forced invoking, true/false
190 ! SameParameter.Tolerance3d             : 3D tolerance
191
192 ! SplitAngle                            : Split revolutive surface (elementary and general) into several surfaces
193 ! SplitAngle.Angle                      : Maximum angle of revolution, radian
194
195 ! SplitClosedFaces                      : Split faces that have seam-edge or geometrically closed on closed surface.
196 ! SplitClosedFaces.NbSplitPoints        : Number of cuttings (number of resulting faces will be NbSplitPoints+1)
197 ! SplitClosedFaces.CloseTolerance       : Precision to define geometric closure.
198
199 ! SplitContinuity                       : Correction or split shapes to have speicified continuity
200 ! SplitContinuity.Tolerance3d           : 3D tolerance for correction of geometry
201 ! SplitContinuity.SurfaceContinuity     : Required continuity for surfaces
202 ! SplitContinuity.CurveContinuity       : Required continuity for curves
203
204 ! ToBezier                              : Conversion of geometry into Bezier
205 ! ToBezier.SurfaceMode                  : Mode of conversion of surfaces, yes/no
206 ! ToBezier.PlaneMode                    : Mode of conversion of Planes,yes/no. This mode acts if SurfaceMode is yes.
207 ! ToBezier.RevolutionMode               : Mode of conversion of Surfaces of Revolution (generatrix to bezier), yes/no.
208 !                                         This mode acts if SurfaceMode is yes.
209 ! ToBezier.ExtrusionMode                : Mode of conversion of Surfaces of Extrusion (whole surface not only generatrix), yes/no.
210 !                                         This mode acts if SurfaceMode is yes.
211 ! ToBezier.BSplineMode                  : Mode of conversion of BSpline Surfaces, yes/no. This mode acts if SurfaceMode is yes.
212 ! ToBezier.EdgeMode                     : Mode of translation edges (0- Free,1 - Shared,2- Both)
213 !                                       : .Default - Free. Acts on translation curves 3d . 
214 |                                       : If it is 0 (Free) that only free edges are taken into
215 !                                       : account for translation 3d curves,
216 !                                       : if it is 1 (Shared) that only shared edges are taken into
217 !                                       : account for translation 3d curves,
218 !                                       : if it is 2 (Both) that all edges are taken into
219 !                                       : account for translation 3d curves,
220 ! ToBezier.Curve3dMode                  : Mode of conversion 3D curves, yes/no
221 ! ToBezier.Curve2dMode                  : Mode of conversion 2D curves, yes/no
222 ! ToBezier.Line3dMode                   : Mode of conversion 3D lines, yes/no
223 ! ToBezier.Circle3dMode                 : Mode of conversion 3D circles, yes/no
224 ! ToBezier.Conic3dMode                  : Mode of conversion 3D conics, yes/no
225 ! ToBezier.MinCurveLength               : Min length of created curves 3d.( default 0.05)
226
227
228 ! FixFaceSize                           : Removing small faces
229 ! FixFaceSize.Tolerance                 : Tolerance in 3d
230
231 ! DropSmallEdges                        : Eliminate small edges by removing or merging with neighbour
232 ! DropSmallEdges.Tolerance3d            : Tolerance (3d)
233
234 ! FixShape.Tolerance3d                  : Tolerance (3d) for fixing of shape.
235 ! FixShape.MaxTolerance3d               : Maximal possible value of increasing of tolerance during fixing.
236 ! FixShape.MinTolerance3d               : Minimal value of tolerance.
237 ! FixShape.FixFreeShellMode             : Mode for fixing free shells in the shape (default - -1, yes - 1 , no - 0).
238 ! FixShape.FixFreeFaceMode              : Mode for fixing free faces in the shape (default - -1, yes - 1 , no - 0).  
239 ! FixShape.FixFreeWireMode              : Mode for fixing free wires in the shape (default - -1, yes - 1 , no - 0).
240 ! FixShape.FixSameParameterMode         : Mode for fixing same parameter on the whole shape (default - -1, yes - 1 , no - 0).
241 ! FixShape.FixSolidMode                 : Mode for fixing solids (default - -1, yes - 1 , no - 0).
242 ! FixShape.FixShellMode                 : Mode for fixing shells (default - -1, yes - 1 , no - 0).
243 ! FixShape.FixFaceMode                  : Mode for fixing faces (default - -1, yes - 1 , no - 0).
244 ! FixShape.FixWireMode                  : Mode for fixing wires (default - -1, yes - 1 , no - 0).
245 ! FixShape.FixOrientationMode           : Mode for fixing face orientation (default - -1, yes - 1 , no - 0).
246 ! FixShape.FixMissingSeamMode           : Mode for fixing face missing seam (default - -1, yes - 1 , no - 0).
247 ! FixShape.FixSmallAreaWireMode         : Mode for fixing small area wires (default - -1, yes - 1 , no - 0).
248 ! FixShape.ModifyTopologyMode           : Mode allowing of modifing of topology (default - 0, yes - 1 , no - 0).
249 ! FixShape.ModifyGeometryMode           : Mode allowing of modifing of geometry (default - 1, yes - 1 , no - 0).
250 ! FixShape.ClosedWireMode               : Mode defining whether the wire is to be closed. (default - 1, yes - 1 , no - 0).
251 ! FixShape.PreferencePCurveMode         : Mode defining of preference of 2d representation (default - 1, yes - 1 , no - 0). 
252 ! FixShape.FixReorderMode               : Mode for fixing of order of the edges in the wire (default - -1, yes - 1 , no - 0).
253 ! FixShape.FixSmallMode                 : Mode for removing of the small edges from the wire in the case when 
254 !                                       : ModifyTopologyMode equaled "yes" (default - -1, yes - 1 , no - 0).
255 ! FixShape.FixConnectedMode             : Mode for fixing of connecting of edges in the wire(default - -1, yes - 1 , no - 0).
256 ! FixShape.FixEdgeCurvesMode            : Moge for fixing each edge from the wire (default - -1, yes - 1 , no - 0).
257 ! FixShape.FixDegeneratedMode           : Moge for fixing cases of degenerate pcurve (default - -1, yes - 1 , no - 0).
258 ! FixShape.FixLackingMode               : Moge for fixing cases of lacking edge (default - -1, yes - 1 , no - 0).
259 ! FixShape.FixSelfIntersectionMode      : Mode for fixing of cases self-intersection of wire (default - -1, yes - 1 , no - 0).
260 ! FixShape.FixReversed2dMode            : Mode for fixing cases when pcurve is opposite curve3d (default - -1, yes - 1 , no - 0).
261 ! FixShape.FixRemovePCurveMode          : Mode for removing of pcurves from edges (default - -1, yes - 1 , no - 0).
262 ! FixShape.FixRemoveCurve3dMode         : Mode for removing of 3d curves from edges (default - -1, yes - 1 , no - 0).
263 ! FixShape.FixAddPCurveMode             : Mode for adding pcurves of the edges if missing (default - -1, yes - 1 , no - 0).
264 ! FixShape.FixAddCurve3dMode            : Mode for adding curves 3d of the edges if missing (default - -1, yes - 1 , no - 0).
265 ! FixShape.FixSeamMode                  : Mode for fixing cases of seam edges.
266 ! FixShape.FixShiftedMode               : Mode for fixing cases when pcurves can be shifted on period on the closed surface
267 !                                         (default - -1, yes - 1 , no - 0). 
268 ! FixShape.FixEdgeSameParameterMode     : Mode for fixing same parameter for each edge (default - -1, yes - 1 , no - 0).
269 ! FixShape.FixSelfIntersectingEdgeMode  : Mode for fixing cases self-intrsection edge (default - -1, yes - 1 , no - 0).
270 ! FixShape.FixIntersectingEdgesMode     : Mode for fixing intersection adjacent edges.
271 ! FixShape.FixNonAdjacentIntersectingEdgesMode : Mode for fixing intersection non-adjacent edges.
272 !