1 <!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
\r
5 <!--(==============================================================)-->
\r
6 <!--(Document created with RoboEditor. )============================-->
\r
7 <!--(==============================================================)-->
\r
11 <title>Titre</title>
\r
13 <!--(Meta)==========================================================-->
\r
15 <meta HTTP-EQUIV=Content-Type CONTENT="text/html; charset=windows-1252">
\r
16 <meta NAME=subject CONTENT=Sujet>
\r
17 <meta NAME=keywords CONTENT=Etude>
\r
18 <meta NAME=Client CONTENT=Client>
\r
19 <meta NAME=Department CONTENT="Dйveloppements spйcifiques open cascade">
\r
20 <meta NAME=Division CONTENT="Une filiale EADS Matra Datavision">
\r
21 <meta NAME=Owner CONTENT=OCC>
\r
22 <meta NAME=Project CONTENT=ProjectRef>
\r
23 <meta NAME=Folder CONTENT=FF>
\r
24 <meta NAME=Study CONTENT=SSS>
\r
25 <meta NAME=Reference CONTENT=Reference>
\r
26 <meta name=generator content="RoboHELP by eHelp Corporation - www.ehelp.com">
\r
27 <meta name=generator-major-version content=0.1>
\r
28 <meta name=generator-minor-version content=1>
\r
29 <meta name=filetype content=kadov>
\r
30 <meta name=filetype-version content=1>
\r
31 <meta name=page-count content=1>
\r
32 <meta name=layout-height content=8252>
\r
33 <meta name=layout-width content=766>
\r
36 <!--(Links)=========================================================-->
\r
38 <link rel='stylesheet' href='../default_ns.css'>
\r
39 <script type="text/javascript" language="JavaScript" title="WebHelpSplitCss">
\r
41 if (navigator.appName !="Netscape")
\r
42 { document.write("<link rel='stylesheet' href='../default.css'>");}
\r
45 <!--(Style Sheet)===================================================-->
\r
58 <style type="text/css">
\r
60 p.whs1 {font-family: 'Times New Roman', serif; font-size: 12pt;}
\r
61 img_whs2 {border-style: none; border: none; float: none; width: 30px; height: 30px;}
\r
62 ul.whs3 {list-style: disc;}
\r
63 p.whs4 {font-size: 12pt;}
\r
64 p.whs5 {margin-left: 40px;}
\r
65 img_whs6 {border-style: none; border: none; width: 25px; height: 24px;}
\r
66 table.whs7 {x-cell-content-align: top; width: 100%; border-spacing: 0px; border-spacing: 0px;}
\r
67 col.whs8 {width: 8.851%;}
\r
68 col.whs9 {width: 91.149%;}
\r
69 tr.whs10 {x-cell-content-align: top;}
\r
70 td.whs11 {width: 8.851%; border-left-width: 1px; border-left-color: #000000; border-left-style: Solid; border-top-style: Solid; border-top-color: #000000; border-top-width: 1px; border-right-width: 1px; border-right-color: #000000; border-right-style: Solid; border-bottom-style: Solid; border-bottom-color: #000000; border-bottom-width: 1px; padding-right: 10px; padding-left: 10px;}
\r
71 td.whs12 {width: 91.149%; border-top-style: Solid; border-top-color: #000000; border-top-width: 1px; border-right-width: 1px; border-right-color: #000000; border-right-style: Solid; border-bottom-style: Solid; border-bottom-color: #000000; border-bottom-width: 1px; padding-right: 10px; padding-left: 10px;}
\r
72 td.whs13 {width: 8.851%; border-left-width: 1px; border-left-color: #000000; border-left-style: Solid; border-right-width: 1px; border-right-color: #000000; border-right-style: Solid; border-bottom-style: Solid; border-bottom-color: #000000; border-bottom-width: 1px; padding-right: 10px; padding-left: 10px;}
\r
73 td.whs14 {width: 91.149%; border-right-width: 1px; border-right-color: #000000; border-right-style: Solid; border-bottom-style: Solid; border-bottom-color: #000000; border-bottom-width: 1px; padding-right: 10px; padding-left: 10px;}
\r
74 p.whs15 {font-size: 12pt; margin-left: 40px;}
\r
75 img_whs16 {border-style: none; border: none; width: 300px; height: 291px;}
\r
76 img_whs17 {border-style: none; border: none; width: 300px; height: 214px;}
\r
77 img_whs18 {border-style: none; border: none; width: 244px; height: 214px;}
\r
78 p.whs19 {font-family: 'Times New Roman', serif; font-size: 14pt;}
\r
79 img_whs20 {border-style: none; border: none; width: 239px; height: 214px;}
\r
80 img_whs21 {border-style: none; width: 20px; height: 20px;}
\r
81 img_whs22 {border-style: none; border: none; width: 200px; height: 164px;}
\r
82 img_whs23 {border-style: none; border: none; width: 150px; height: 131px;}
\r
83 p.whs24 {font-size: 14pt; font-weight: bold;}
\r
84 img_whs25 {border-style: none; border: none; width: 199px; height: 199px;}
\r
85 p.whs26 {font-size: 12pt; font-weight: bold;}
\r
86 img_whs27 {border-style: none; border: none; width: 200px; height: 177px;}
\r
87 img_whs28 {border-style: none; border: none; width: 200px; height: 214px;}
\r
88 img_whs29 {border-style: none; border: none; width: 176px; height: 214px;}
\r
89 img_whs30 {border-style: none; border: none; width: 200px; height: 185px; float: none;}
\r
90 img_whs31 {border-style: none; border: none; width: 200px; height: 185px;}
\r
91 img_whs32 {border-style: none; border: none; width: 150px; height: 136px;}
\r
92 img_whs33 {border-style: none; border: none; width: 200px; height: 166px;}
\r
93 img_whs34 {border-style: none; border: none; width: 150px; height: 132px;}
\r
94 img_whs35 {border-style: none; border: none; width: 22px; height: 22px;}
\r
95 p.whs36 {font-size: 12pt; font-weight: normal;}
\r
96 p.whs37 {margin-left: 40px; font-size: 12pt;}
\r
97 img_whs38 {border-style: none; border: none; width: 200px; height: 210px;}
\r
98 p.whs39 {font-size: 12pt; margin-left: 40px; text-indent: -40px;}
\r
99 p.whs40 {font-size: 12pt; margin-left: 40px; text-indent: -40px; font-weight: bold;}
\r
100 p.whs41 {margin-left: 80px; font-size: 12pt; text-indent: -40px;}
\r
101 img_whs42 {border-style: none; border: none; width: 200px; height: 231px;}
\r
102 img_whs43 {border-style: none; border: none; width: 185px; height: 231px;}
\r
103 p.whs44 {font-size: 12pt; text-indent: -68px; margin-left: 72px;}
\r
104 p.whs45 {font-size: 12pt; text-indent: -68px; margin-left: 112px;}
\r
105 img_whs46 {border-style: none; border: none; width: 200px; height: 216px;}
\r
106 p.whs47 {font-size: 12pt; margin-left: 112px; text-indent: -112px;}
\r
107 p.whs48 {font-size: 12pt; text-indent: -112px; margin-left: 152px;}
\r
108 img_whs49 {border-style: none; border: none; width: 200px; height: 150px; float: none;}
\r
109 img_whs50 {border-style: none; border: none; width: 204px; height: 150px;}
\r
110 p.whs51 {font-size: 12pt; text-indent: -40px; margin-left: 80px;}
\r
111 p.whs52 {font-size: 12pt; margin-left: 80px; text-indent: -80px;}
\r
112 p.whs53 {font-size: 12pt; margin-left: 80px; text-indent: -68px;}
\r
113 img_whs54 {border-style: none; border: none; width: 200px; height: 180px;}
\r
114 p.whs55 {font-size: 12pt; margin-left: 0px;}
\r
115 img_whs56 {border-style: none; border: none; width: 209px; height: 138px;}
\r
116 img_whs57 {border-style: none; border: none; width: 192px; height: 138px;}
\r
117 img_whs58 {border-style: none; border: none; width: 191px; height: 138px;}
\r
120 <script type="text/javascript" language="JavaScript">
\r
122 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))
\r
124 var strNSS = "<style type='text/css'>";
\r
125 strNSS += "p.whs39 {text-indent:1; }";
\r
126 strNSS += "p.whs40 {text-indent:1; }";
\r
127 strNSS += "p.whs41 {text-indent:1; }";
\r
128 strNSS += "p.whs44 {text-indent:1; }";
\r
129 strNSS += "p.whs45 {text-indent:1; }";
\r
130 strNSS += "p.whs47 {text-indent:1; }";
\r
131 strNSS += "p.whs48 {text-indent:1; }";
\r
132 strNSS += "p.whs51 {text-indent:1; }";
\r
133 strNSS += "p.whs52 {text-indent:1; }";
\r
134 strNSS += "p.whs53 {text-indent:1; }";
\r
135 strNSS += "p.whs55 {margin-left:1; }";
\r
136 strNSS +="</style>";
\r
137 document.write(strNSS);
\r
141 <script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">
\r
144 if (innerWidth != origWidth || innerHeight != origHeight)
\r
147 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {
\r
148 origWidth = innerWidth;
\r
149 origHeight = innerHeight;
\r
155 <style type="text/css">
\r
157 div.WebHelpPopupMenu {position:absolute; left:0px; top:0px; z-index:4; visibility:hidden;}
\r
160 <script type="text/javascript" language="javascript1.2" src="../whmsg.js"></script>
\r
161 <script type="text/javascript" language="javascript" src="../whver.js"></script>
\r
162 <script type="text/javascript" language="javascript1.2" src="../whproxy.js"></script>
\r
163 <script type="text/javascript" language="javascript1.2" src="../whutils.js"></script>
\r
164 <script type="text/javascript" language="javascript1.2" src="../whtopic.js"></script>
\r
167 <!--(Body)==========================================================-->
\r
172 <script type="text/javascript" language="javascript1.2">
\r
174 if (window.gbWhTopic)
\r
176 if (window.addTocInfo)
\r
178 addTocInfo("GEOM module\nTransforming geometrical objects\nRepairing geometrical objects");
\r
179 addButton("show",BTN_TEXT,"Show","","","","",0,0,"","","");
\r
182 if (window.writeBtnStyle)
\r
185 if (window.writeIntopicBar)
\r
186 writeIntopicBar(1);
\r
188 if (window.setRelStartPage)
\r
190 setRelStartPage("../geom.html");
\r
198 document.location.reload();
\r
201 <h1>Repairing geometrical objects</h1>
\r
203 <p class="whs1"><b style="font-weight: bold;"><img src="../i_blue.jpg" x-maintain-ratio="TRUE" x-save-file="TRUE" x-save-method="compute-relative" width="30px" height="30px" border="0" class="img_whs2"><span style="font-weight: normal;">Repairing operations are
\r
204 used for adjustment and modification of created geometrical shapes. The
\r
205 are:</span> </b></p>
\r
207 <p class="whs1"><a HREF="#sewing"> </a></p>
\r
209 <ul type="disc" class="whs3">
\r
211 <li class=kadov-p><p class="whs1"> <a
\r
212 href="#Shape">Shape processing</a></p></li>
\r
214 <li class=kadov-p><p class="whs1"> <a
\r
215 HREF="#_Toc57113182">Suppress faces	</a></p></li>
\r
217 <li class=kadov-p><p class="whs1"> <a
\r
218 href="#CloseContour">Close contour</a></p></li>
\r
220 <li class=kadov-p><p class="whs1"> <a
\r
221 href="#SuppressInternalWires">Suppress internal
\r
222 wires</a><a HREF="#sewing">	</a></p></li>
\r
224 <li class=kadov-p><p class="whs1"><a
\r
225 HREF="#_Toc57113181"> <a HREF="#_Toc57113183">Suppress
\r
226 holes	</a></a></p></li>
\r
228 <li class=kadov-p><p class="whs1"><a
\r
229 HREF="#_Toc57113182"> </a><a HREF="#sewing">Sewing</a></p></li>
\r
231 <li class=kadov-p><p class="whs1"> <a
\r
232 href="#Glue_faces">Glue faces</a></p></li>
\r
234 <li class=kadov-p><p class="whs1"><a
\r
235 HREF="#_Toc57113183"> </a><a href="#AddPointOnEdge">Add
\r
236 point on edge</a></p></li>
\r
238 <li class=kadov-p><p class="whs1"> <a
\r
239 href="#CheckFreeBound">Check free boundaries</a><a
\r
240 HREF="#_Toc57113183">	</a></p></li>
\r
243 <p class="whs4"> </p>
\r
245 <p class=TODO>To apply repairing operations:</p>
\r
247 <p class=TODO> </p>
\r
249 <p class="whs5">In the main menu select <span style="font-weight: bold;"><B>Repair
\r
250 </B></span>submenu.</p>
\r
252 <p class="whs4"> </p>
\r
254 <p class="whs4"><a name=Shape><img src="../image41.gif" width="25px" height="24px" border="0" class="img_whs6"> <span style="font-size: 14pt; font-weight: bold;"><font size=4 style="font-size:14pt;"><B>Shape
\r
255 processing</B></font></span></a></p>
\r
257 <p class="whs4"> </p>
\r
259 <p class="whs4"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"><b style="font-weight: bold;">Description:</b>
\r
260 Processes a shape using various operators.</font></span></p>
\r
262 <p class="whs4"> </p>
\r
264 <p class="whs4"><b style="font-weight: bold;">Result:</b> GEOM_Object.</p>
\r
266 <p class="whs4"> </p>
\r
268 <p class="whs4"><b style="font-weight: bold;">TUI Command:</b><i>
\r
269 </i><span style="font-style: italic;"><I>geompy.ProcessShape(Shape, Operators,
\r
270 Parameters, Values)</I></span>, where Shape is a processed shape, Operators
\r
271 is a list of names of operators ("FixShape", "SplitClosedFaces",
\r
272 etc.), Parameters is a list of names of parameters (
\93FixShape.Tolerance3d
\94,
\r
273 etc), Values is a list of values of parameters in the same order as the
\r
274 Parameters list.</p>
\r
276 <p class="whs4"> </p>
\r
278 <p class="whs4"><b style="font-weight: bold;">Arguments:</b>
\r
279 1 or more shapes.</p>
\r
281 <!--(Table)=========================================================-->
\r
282 <table x-use-null-cells cellspacing="0" width="100%" class="whs7">
\r
283 <script language='JavaScript'><!--
\r
284 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4)) document.write("</table><table x-use-null-cells cellspacing='0' width='100%' border='1' bordercolor='black' bordercolorlight='black' bordercolordark='black'>");
\r
289 <tr valign="top" class="whs10">
\r
290 <td width="8.851%" class="whs11">
\r
292 <td width="91.149%" class="whs12">
\r
293 <p class="whs4"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">SplitAngle
\96 \r
294 this operator is intended for splitting faces based on conical surfaces,
\r
295 surfaces of revolution and cylindrical surfaces by angle</font></span></p>
\r
296 <p class="whs4">SplitAngle.Angle
\96 angle (in radians) defining
\r
297 size of result segments.</p>
\r
298 <p class="whs4">SplitAngle.MaxTolerance
\96 maximal possible
\r
299 tolerance on result shape</td></tr>
\r
301 <tr valign="top" class="whs10">
\r
302 <td width="8.851%" class="whs13">
\r
304 <td width="91.149%" class="whs14">
\r
305 <p class="whs4"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">SplitClosedFaces
\r
306 \96 this operator is intended for dividing all closed faces in the shape
\r
307 according to the number of points.</font></span></p>
\r
308 <p class="whs4">SplitClosedFaces.NbSplitPoints
\96 number of
\r
309 points for cutting each closed faces.</td></tr>
\r
311 <tr valign="top" class="whs10">
\r
312 <td width="8.851%" class="whs13">
\r
314 <td width="91.149%" class="whs14">
\r
315 <p class="whs4"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">FixFaceSize
\r
316 \96 this operator is intended for removing small faces (case of the spot
\r
317 face and strip face)</font></span></p>
\r
318 <p class="whs4">FixFaceSize.Tolerance
\96 work tolerance defining
\r
319 which faces will be removed.</td></tr>
\r
321 <tr valign="top" class="whs10">
\r
322 <td width="8.851%" class="whs13">
\r
324 <td width="91.149%" class="whs14">
\r
325 <p class="whs4"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">DropSmallEdges
\r
326 \96 this operator is intended for removing small edges or merging with neigbour.
\r
327 </font></span></p>
\r
328 <p class="whs4">DropSmallEdges.Tolerance3d
\96 work tolerance
\r
329 for detection and removing small edges.</td></tr>
\r
331 <tr valign="top" class="whs10">
\r
332 <td width="8.851%" class="whs13">
\r
334 <td width="91.149%" class="whs14">
\r
335 <p class="whs4"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">BsplineRestriction
\r
336 \96this operator is intended for re-approximation BSplines curves and surfaces
\r
337 or conversion of the curves and surfaces to BSplines with specified parameters.
\r
339 <p class="whs4">BSplineRestriction.SurfaceMode - mode of approximation
\r
340 of surfaces if restriction is necessary</p>
\r
341 <p class="whs4">BSplineRestriction.Curve3dMode -mode of conversion
\r
342 of any 3D curve to BSpline and approximation.</p>
\r
343 <p class="whs4">BSplineRestriction.Curve2dMode - mode of conversion
\r
344 of any 2D curve to BSpline and approximation</p>
\r
345 <p class="whs4">BSplineRestriction.Tolerance3d
\96 work tolerance
\r
346 for definition of the possibility of the approximation of the surfaces
\r
347 and 3D curves with specified parameters.</p>
\r
348 <p class="whs4">BSplineRestriction.Tolerance2d - work tolerance
\r
349 for definition of the possibility of the approximation of the 2D curves
\r
350 with specified parameters.</p>
\r
351 <p class="whs4">BSplineRestriction.Continuity3d
\96 desired continuity
\r
352 of the resultant surfaces and 3D curves.</p>
\r
353 <p class="whs4">BSplineRestriction.Continuity2d
\96 desired continuity
\r
354 of the resultant 2D curves.</p>
\r
355 <p class="whs4">BSplineRestriction.RequiredDegree - required
\r
356 degree of the resultant BSplines</p>
\r
357 <p class="whs4">BSplineRestriction.RequiredNbSegments - required
\r
358 maximum number of segments of resultant BSp<span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">lines.</font></span></td></tr>
\r
360 <tr valign="top" class="whs10">
\r
361 <td width="8.851%" class="whs13">
\r
363 <td width="91.149%" class="whs14">
\r
364 <p class="whs4"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">SplitContinuity
\r
365 \96 this operator is intended for splitting shapes to achieve continuities
\r
366 of curves and surfaces less than specified ones. </font></span></p>
\r
367 <p class="whs4">SplitContinuity.Tolerance3d - 3D tolerance
\r
368 for correction of geometry.</p>
\r
369 <p class="whs4">SplitContinuity.SurfaceContinuity - required
\r
370 continuity for surfaces.</p>
\r
371 <p class="whs4">SplitContinuity.CurveContinuity - required
\r
372 continuity for curves.</td></tr>
\r
374 <tr valign="top" class="whs10">
\r
375 <td width="8.851%" class="whs13">
\r
377 <td width="91.149%" class="whs14">
\r
378 <p class="whs4"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">ToBezier - this
\r
379 operator is intended for conversion of the curves and surfaces of the
\r
380 all types into Bezier curves and surfaces. </font></span></p>
\r
381 <p class="whs4">ToBezier.SurfaceMode - mode of conversion of
\r
383 <p class="whs4">ToBezier.Curve3dMode
\96 mode for conversion
\r
384 of the 3D curves.</p>
\r
385 <p class="whs4">ToBezier.Curve2dMode
\96 mode for conversion
\r
386 of the 2D curves.</p>
\r
387 <p class="whs4">ToBezier.MaxTolerance
\96 max possible tolerance
\r
388 on the resultant shape.</td></tr>
\r
390 <tr valign="top" class="whs10">
\r
391 <td width="8.851%" class="whs13">
\r
393 <td width="91.149%" class="whs14">
\r
394 <p class="whs4"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">FixShape
\96 this
\r
395 operator is intended for correction of the invalid shapes </font></span></p>
\r
396 <p class="whs4">FixShape.Tolerance3d
\96 work tolerance for detection
\r
397 of the problems and correction of them.</p>
\r
398 <p class="whs4">FixShape.MaxTolerance3d - maximal possible
\r
399 tolerance of the shape after correction.</td></tr>
\r
401 <tr valign="top" class="whs10">
\r
402 <td width="8.851%" class="whs13">
\r
404 <td width="91.149%" class="whs14">
\r
405 <p class="whs4"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">SameParameter
\r
406 \96 this operator is intended for fixing edges having not same parameter
\r
407 2D and 3D curves. </font></span></p>
\r
408 <p class="whs4">SameParameter.Tolerance3d
\96 tolerance for detection
\r
409 and fix problems. </td></tr>
\r
410 <script language='JavaScript'><!--
\r
411 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4)) document.write("</table></table><table>");
\r
415 <p class="whs4"> </p>
\r
417 <p class="whs4"> </p>
\r
419 <p class="whs4"><b style="font-weight: bold;">Dialog Box:</b></p>
\r
421 <p class="whs4"> </p>
\r
423 <p class="whs15"><img src="../image158.jpg" width="300px" height="291px" border="0" class="img_whs16"> </p>
\r
425 <p class="whs4"> </p>
\r
427 <p class="whs4"><b style="font-weight: bold;">Example:</b></p>
\r
431 <p class="whs4">Shape before applying Shape Processing (FixShape
\r
434 <p class="whs4"> </p>
\r
436 <p class="whs15"><img src="../image154.jpg" width="300px" height="214px" border="0" class="img_whs17"> <img src="../image156.jpg" width="244px" height="214px" border="0" class="img_whs18"></p>
\r
438 <p class="whs19"> </p>
\r
440 <p class="whs1">The
\r
441 same shape after applying Shape Processing.</p>
\r
443 <p class="whs19"> </p>
\r
445 <p class="whs15"><img src="../image160.jpg" width="239px" height="214px" border="0" class="img_whs20"></p>
\r
447 <p class="whs19"> </p>
\r
449 <p class="whs19"> </p>
\r
451 <p class="whs19"><a NAME=_Toc57113182><img src="salome2_sp3_repairgui_functions_salome2_sp3_repairgui_functions_image121.gif" width="20px" height="20px" border="0" class="img_whs21"><b> Suppress faces</b></a></p>
\r
453 <p class="whs1"> </p>
\r
455 <p class="whs4"><b style="font-weight: bold;">Description:</b>
\r
456 Suppresses a face of a shape.</p>
\r
458 <p class="whs4"> </p>
\r
460 <p class="whs4"><b style="font-weight: bold;">Result:</b> GEOM_Object
\r
461 (ListOfGeomShapes).</p>
\r
463 <p class="whs4"> </p>
\r
465 <p class="whs4"><b style="font-weight: bold;">TUI Command:</b><i>
\r
466 </i><span style="font-style: italic;"><I>geompy.SuppressFaces(Shape, ListOfID)</I></span>,
\r
467 where Shape is a shape to be processed, ListOfID is a list of faces ID's
\r
470 <p class="whs4"> </p>
\r
472 <p class="whs4"><b style="font-weight: bold;">Arguments:</b>
\r
473 1 shape + 1 selection of a face (Local Context).</p>
\r
475 <p class="whs4"> </p>
\r
477 <p class="whs4"><b style="font-weight: bold;">Dialog Box:</b></p>
\r
479 <p class="whs4"> </p>
\r
481 <p class="whs15"><img src="../image115.jpg" width="200px" height="164px" border="0" class="img_whs22"></p>
\r
483 <p class="whs15"> </p>
\r
485 <p class="whs4"><b style="font-weight: bold;">Example:</b></p>
\r
487 <p class="whs4"> </p>
\r
489 <p class="whs15"><img src="../image53.jpg" width="150px" height="131px" border="0" class="img_whs23"> <img src="../image54.jpg" width="150px" height="131px" border="0" class="img_whs23"></p>
\r
491 <p class="whs4"> </p>
\r
493 <p class="whs24"><a name=CloseContour><img src="salome2_sp3_repairgui_functions_salome2_sp3_repairgui_functions_image121.gif" width="20px" height="20px" border="0" class="img_whs21"> Close contour</a></p>
\r
495 <p class="whs4"> </p>
\r
497 <p class="whs4"><b style="font-weight: bold;">Description :</b>
\r
498 Closes an open contour and modifies the underlying face (if needed) in
\r
499 accordance with user specified mode:</p>
\r
501 <ul type="disc" class="whs3">
\r
503 <li class=kadov-p><p class="whs4">By common vertex
\96 a
\r
504 vertex is created between the end points of the contour and its tolerance
\r
505 is increased to a value of the gap between the ends of the contour;</p></li>
\r
507 <li class=kadov-p><p class="whs4">By new edge
\96 a new edge
\r
508 is inserted between the end points of the contour.</p></li>
\r
511 <p class="whs4"> </p>
\r
513 <p class="whs4"><b style="font-weight: bold;">Result:</b> GEOM_Object.</p>
\r
515 <p class="whs4"> </p>
\r
517 <p class="whs4"><b style="font-weight: bold;">TUI Command:</b><i>
\r
518 </i><span style="font-style: italic;"><I>geompy.CloseContour(Shape, Wires,
\r
519 IsCommonVertex)</I></span>, where Shape is a shape to be processed, Wires
\r
520 is a list of edges or wires ID
\92s which has to be closed within the shape
\r
521 (if the list contains only one element = -1, the shape itself is considered
\r
522 as a wire), IsCommonVertex
\r
523 if this parameter is True a closure has to be done by creation of a common
\r
524 vertex, otherwise an edge is added between the end vertices.</p>
\r
526 <p class="whs4"> </p>
\r
528 <p class="whs4"><b style="font-weight: bold;">Arguments: <span
\r
529 style="font-weight: normal;">Contour</span> <span style="font-weight: normal;">(</span></b>Wire,
\r
530 or a set of Edges) + mode of closure (by vertex or by edge)</p>
\r
532 <p class="whs4"> </p>
\r
534 <p class="whs4"><b style="font-weight: bold;">Dialog Box:</b></p>
\r
536 <p class="whs4"> </p>
\r
538 <p class="whs15"><b style="font-weight: bold;"><img src="../image161.jpg" width="199px" height="199px" border="0" class="img_whs25"></b></p>
\r
540 <p class="whs26"> </p>
\r
542 <p class="whs26">Example:</p>
\r
544 <p class="whs4"> </p>
\r
546 <p class="whs4"><span style="font-size: 14pt; font-weight: bold;"><font size=4 style="font-size:14pt;"><B><a
\r
547 name=SuppressInternalWires><img src="salome2_sp3_repairgui_functions_salome2_sp3_repairgui_functions_image121.gif" width="20px" height="20px" border="0" class="img_whs21"></B></font></span> <span style="font-size: 14pt; font-weight: bold;"><font size=4 style="font-size:14pt;"><B>Suppress
\r
548 internal wires</B></font></span></a></p>
\r
550 <p class="whs4"> </p>
\r
552 <p class="whs4"><b style="font-weight: bold;">Description :</b>
\r
553 Removes all internal wires or specified internal wires from user specified
\r
556 <p class="whs4"> </p>
\r
558 <p class="whs4"><b style="font-weight: bold;">Result:</b> GEOM_Object.</p>
\r
560 <p class="whs4"> </p>
\r
562 <p class="whs4"><b style="font-weight: bold;">TUI Command:</b><i>
\r
563 </i><span style="font-style: italic;"><I>geompy.SuppressInternalWires(Shape,
\r
564 Wires)</I></span>, where Shape is a shape where wires are to be removed, Wires
\r
565 is a list of wires ID
\92s to be removed; if the list is empty then all internal
\r
566 wires are removed.</p>
\r
568 <p class="whs4"> </p>
\r
570 <p class="whs4"> </p>
\r
572 <p class="whs4"><b style="font-weight: bold;">Arguments:</b></p>
\r
574 <ul type="disc" class="whs3">
\r
576 <li class=kadov-p><p class="whs4">User specified face</p></li>
\r
578 <li class=kadov-p><p class="whs4">User specified internal
\r
579 wires (lying on this face except for its boundary), or, in case the "Remove
\r
580 all internal wires" box is checked, all internal wires</p></li>
\r
583 <p class="whs4"> </p>
\r
585 <p class="whs4"><b style="font-weight: bold;">Dialog Box:</b></p>
\r
587 <p class="whs4"> </p>
\r
589 <p class="whs15"><img src="../image165.jpg" width="200px" height="177px" border="0" class="img_whs27"></p>
\r
591 <p class="whs4"> </p>
\r
593 <p class="whs26">Example:</p>
\r
595 <p class="whs4"> </p>
\r
597 <p class="whs15"><img src="../image163.jpg" width="200px" height="214px" border="0" class="img_whs28"> <img src="../image164.jpg" width="176px" height="214px" border="0" class="img_whs29"></p>
\r
599 <p class="whs4"> </p>
\r
601 <p class="whs4"> </p>
\r
603 <p class="whs19"><span
\r
604 style="font-family: 'Times New Roman', serif;"><a NAME=_Toc57113183><span
\r
605 style="font-size: 14pt;"><font size=4 style="font-size:14pt;"><img src="salome2_sp3_repairgui_functions_salome2_sp3_repairgui_functions_image122.gif" width="20px" height="20px" border="0" class="img_whs21"><b style="font-size: 14pt;"> Suppress
\r
606 holes</b></a> </font></span></span></p>
\r
608 <p class="whs1"> </p>
\r
610 <p class="whs4"><b style="font-weight: bold;">Description :</b>
\r
615 <li class=kadov-p><p class="whs4"><b style="font-weight: bold;">1st
\r
616 Constructor :</b> Suppresses a hole in a shape.</p></li>
\r
618 <li class=kadov-p><p class="whs4"><b style="font-weight: bold;">2nd
\r
619 Constructor :</b> Suppresses a hole in a face.</p></li>
\r
622 <p class="whs4"> </p>
\r
624 <p class="whs4"><b style="font-weight: bold;">Result:</b> GEOM_Object.</p>
\r
626 <p class="whs4"> </p>
\r
628 <p class="whs4"><b style="font-weight: bold;">TUI Command:</b><i>
\r
629 </i><span style="font-size: 12pt; font-style: italic;"><font size=3 style="font-size:12pt;"><I>geompy.SuppressHoles(Shape,
\r
630 ListOfWireID)</I></font></span><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">, where Shape is a
\r
631 shape where holes must be removed, ListOfWireID is a list of wire sub
\r
632 shapes ID
\92s. If it is empty, then all holes are removed.</font></span></p>
\r
634 <p class="whs4"> </p>
\r
636 <p class="whs4"><b style="font-weight: bold;">Arguments:</b></p>
\r
640 <li class=kadov-p><p class="whs4"><b style="font-weight: bold;">1st
\r
641 Constructor :</b> 1 shape + 1 selection of 1 face (Local Context) + 1
\r
642 selection of a wire in the selected face + 1 selection of the back face
\r
643 (if the hole is traversing).</p></li>
\r
645 <li class=kadov-p><p class="whs4"><b style="font-weight: bold;">2nd
\r
646 Constructor :</b> 1 shape (face or shell) + 1 selection of a wire in a
\r
650 <p class="whs4"> </p>
\r
652 <p class="whs4"><b style="font-weight: bold;">Dialog Box:</b></p>
\r
654 <p class="whs4"> </p>
\r
656 <p class="whs15"><img src="../image116.jpg" x-maintain-ratio="FALSE" width="200px" height="185px" border="0" class="img_whs30"> <img src="../image117.jpg" width="200px" height="185px" border="0" class="img_whs31"></p>
\r
658 <p class="whs15"> </p>
\r
660 <p class="whs4"><b style="font-weight: bold;">Example:</b></p>
\r
662 <p class="whs15"> </p>
\r
664 <p class="whs15"> <img src="../image109.jpg" width="150px" height="136px" border="0" class="img_whs32"> <img src="../image110.jpg" width="150px" height="136px" border="0" class="img_whs32"></p>
\r
666 <p class="whs4"> </p>
\r
668 <p class="whs4"> </p>
\r
670 <p class="whs4"> </p>
\r
672 <p class="whs1"><b style="font-weight: bold;"><a
\r
674 style="font-size: 14pt;"><img src="salome2_sp3_repairgui_functions_salome2_sp3_repairgui_functions_image119.gif" width="20px" height="20px" border="0" class="img_whs21"> Sewing</a></b> </p>
\r
676 <p class="whs1"> </p>
\r
678 <p class="whs4"><b style="font-weight: bold;">Description:</b>
\r
679 Sew several shapes.</p>
\r
681 <p class="whs4"> </p>
\r
683 <p class="whs4"><b style="font-weight: bold;">Result:</b> GEOM_Object.</p>
\r
685 <p class="whs4"> </p>
\r
687 <p class="whs4"><b style="font-weight: bold;">TUI Command :</b><i>
\r
688 </i><span style="font-style: italic;"><I>geompy.MakeSewing(ListOfShape, Precision)</I></span>,
\r
689 where ListOfShape is list of shapes to be sewed, Precision is a precision
\r
692 <p class="whs4"> </p>
\r
694 <p class="whs4"><b style="font-weight: bold;">Arguments:</b>
\r
695 1 or more shapes + 1 value (sew precision).</p>
\r
697 <p class="whs4"> </p>
\r
699 <p class="whs4"><b style="font-weight: bold;">Dialog Box:</b></p>
\r
701 <p class="whs4"> </p>
\r
703 <p class="whs15"><img src="../image111.jpg" width="200px" height="166px" border="0" class="img_whs33"></p>
\r
705 <p class="whs4"> </p>
\r
707 <p class="whs4"><b style="font-weight: bold;">Example:</b></p>
\r
709 <p class="whs4"> </p>
\r
711 <p class="whs15"><img src="../image112.jpg" width="150px" height="132px" border="0" class="img_whs34"> <img src="../image113.jpg" width="150px" height="132px" border="0" class="img_whs34"></p>
\r
713 <p class="whs4"> </p>
\r
715 <p class="whs4"> </p>
\r
717 <p class="whs4"> </p>
\r
719 <p class="whs4"><a name=AddPointOnEdge><img src="../image42.gif" width="22px" height="22px" border="0" class="img_whs35"> <span
\r
720 style="font-size: 14pt; font-weight: bold;"><font size=4 style="font-size:14pt;"><B>Add point on edge</B></font></span></a></p>
\r
722 <p class="whs4"> </p>
\r
724 <p class="whs4"><b style="font-weight: bold;">Description:</b>
\r
725 Splits an edge in two in accordance with the specified mode (by length
\r
726 or by parameter) and a value specifying the position of the point on edge
\r
727 (for example val =0.5; mode = Length). </p>
\r
729 <p class="whs4"> </p>
\r
731 <p class="whs4"><b style="font-weight: bold;">Result:</b> GEOM_Object.</p>
\r
733 <p class="whs4"> </p>
\r
735 <p class="whs4"><b style="font-weight: bold;">TUI Command :</b><i>
\r
736 </i><span style="font-style: italic;"><I>geompy.DivideEdge(Shape, EdgeID,
\r
737 Value, IsByParameter)</I></span>, where Shape is a shape which contains an
\r
738 edge to be divided, EdgeID is the ID of the edge to be divided, if it
\r
739 = -1, then Shape is an edge, Value is a paramter on the edge or a length.
\r
740 IsByParameter if it is True then Value is the edge parameter in the range
\r
741 [0:1] otherwise it is a length of the edge in the range [0:1]</p>
\r
743 <p class="whs4"> </p>
\r
745 <p class="whs4"><b style="font-weight: bold;">Arguments:</b>
\r
746 Edge, user-defined point</p>
\r
748 <p class="whs4"> </p>
\r
750 <p class="whs36"><b style="font-weight: bold;">Dialog
\r
753 <p class="whs36"> </p>
\r
755 <p class="whs37"><b style="font-weight: bold;"><img src="../image166.jpg" width="200px" height="210px" border="0" class="img_whs38"></b></p>
\r
757 <p class="whs39"> </p>
\r
759 <p class="whs40">Example:</p>
\r
761 <p class="whs39"> </p>
\r
763 <p class="whs41"><img src="../image167.jpg" width="200px" height="231px" border="0" class="img_whs42"> <img src="../image168.jpg" width="185px" height="231px" border="0" class="img_whs43"></p>
\r
765 <p class="whs44"> </p>
\r
767 <p class="whs44"> </p>
\r
769 <p class="whs44"> </p>
\r
771 <p class="whs44"><a name=Glue_faces><img src="../image61.gif" width="25px" height="24px" border="0" class="img_whs6"><span
\r
772 style="font-size: 14pt; font-weight: bold;"><font size=4 style="font-size:14pt;"><B> Glue faces</B></font></span></a></p>
\r
774 <p class="whs44"> </p>
\r
776 <p class="whs44"><b style="font-weight: bold;">Description:</b>
\r
777 Glues faces that are coincident with respect to the given tolerance </p>
\r
779 <p class="whs44">value.</p>
\r
781 <p class="whs44"> </p>
\r
783 <p class="whs44"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"><b style="font-weight: bold;">Result:</b>
\r
784 GEOM_Object.</font></span></p>
\r
786 <p class="whs44"> </p>
\r
788 <p class="whs44"><b style="font-weight: bold;">TUI Command
\r
789 : </b><span style="font-style: italic;"><I>geompy.MakeGlueFaces(theShape,
\r
790 theTolerance)</I></span>, where theShape is a compound of shapesto be glued,
\r
791 theTolerance is a maximum distance between two faces, which can be considered
\r
794 <p class="whs44"><i><span style="font-style: italic;"><I> </I></span></i></p>
\r
796 <p class="whs44"><b style="font-weight: bold;">Arguments:
\r
797 </b>1 <i><span style="font-style: normal;">Compound + Tolerance Value</span></i></p>
\r
799 <p class="whs44"> </p>
\r
801 <p class="whs44"><b style="font-weight: bold;">Dialog Box:</b></p>
\r
803 <p class="whs44"> </p>
\r
805 <p class="whs45"><img src="../image200.jpg" width="200px" height="216px" border="0" class="img_whs46"></p>
\r
807 <p class="whs47"> </p>
\r
809 <p class="whs47"><b style="font-weight: bold;">Example:</b></p>
\r
811 <p class="whs47"> </p>
\r
813 <p class="whs48"><img src="../image201.jpg" x-maintain-ratio="TRUE" width="200px" height="150px" border="0" class="img_whs49"> <img src="../image202.jpg" width="204px" height="150px" border="0" class="img_whs50"></p>
\r
815 <p class="whs51"> </p>
\r
817 <p class="whs51"> </p>
\r
819 <p class="whs51"> </p>
\r
821 <p class="whs52"><a name=CheckFreeBound><img src="../image44.gif" width="22px" height="22px" border="0" class="img_whs35"> <span
\r
822 style="font-size: 14pt; font-weight: bold;"><font size=4 style="font-size:14pt;"><B>Check free boundaries</B></font></span></a></p>
\r
824 <p class="whs53"> </p>
\r
826 <p class="whs4"><b style="font-weight: bold;">Description:</b>
\r
827 Detects wires and edges that correspond to the shape's boundary, and highlights
\r
830 <p class="whs4"> </p>
\r
832 <p class="whs4"><b style="font-weight: bold;">Result:</b> GEOM_Object.</p>
\r
834 <p class="whs4"> </p>
\r
836 <p class="whs4"><b style="font-weight: bold;">TUI Command :</b><i><span
\r
837 style="font-style: italic;"> <I></i>(NoError, ClosedWires, OpenWires) = geompy.GetFreeBoundary(Shape)</I></span>,
\r
838 where Shape is a shape to be checked, NoError is false if an error occurred
\r
839 while checking free boundaries, ClosedWires is a list of closed free boundary
\r
840 wires, OpenWires is a list of open free boundary wires.</p>
\r
842 <p class="whs4"> </p>
\r
844 <p class="whs4"><b style="font-weight: bold;">Arguments:</b>
\r
847 <p class="whs4"> </p>
\r
849 <p class="whs36"><b style="font-weight: bold;">Dialog
\r
852 <p class="whs36"> </p>
\r
854 <p class="whs15"><b style="font-weight: bold;"><img src="../image169.jpg" width="200px" height="180px" border="0" class="img_whs54"></b></p>
\r
856 <p class="whs55"> </p>
\r
858 <p class="whs55"><b style="font-weight: bold;">Example:</b></p>
\r
860 <p class="whs55"> </p>
\r
862 <p class="whs55"><img src="../image170.jpg" width="209px" height="138px" border="0" class="img_whs56"> <img src="../image171.jpg" width="192px" height="138px" border="0" class="img_whs57"> <img src="../image172.jpg" width="191px" height="138px" border="0" class="img_whs58"></p>
\r
864 <p class="whs55"> </p>
\r
866 <p class="whs55"> </p>
\r
868 <script type="text/javascript" language="javascript1.2">
\r
870 if (window.writeIntopicBar)
\r
871 writeIntopicBar(0);
\r