Salome HOME
PAL12557: Documentation for scripts is not up to date.
[modules/geom.git] / doc / salome / gui / GEOM / close_contour.htm
1 <!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">\r
2 \r
3 <html>\r
4 \r
5 <head>\r
6 <title>Close Contour</title>\r
7 <meta http-equiv="content-type" content="text/html; charset=windows-1252">\r
8 <meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com">\r
9 <link rel="stylesheet" href="default_ns.css"><script type="text/javascript" language="JavaScript" title="WebHelpSplitCss">\r
10 <!--\r
11 if (navigator.appName !="Netscape")\r
12 {   document.write("<link rel='stylesheet' href='default.css'>");}\r
13 //-->\r
14 </script>\r
15 <style type="text/css">\r
16 <!--\r
17 img_whs1 { width:20px; height:20px; border-style:none; }\r
18 p.whs2 { font-size:12pt; }\r
19 ul.whs3 { list-style:disc; }\r
20 p.whs4 { font-size:12pt; margin-left:40px; font-weight:bold; }\r
21 img_whs5 { border:none; width:312px; height:397px; float:none; border-style:none; }\r
22 p.whs6 { font-size:12pt; font-weight:bold; }\r
23 p.whs7 { font-weight:bold; }\r
24 -->\r
25 </style><script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">\r
26 <!--\r
27 function reDo() {\r
28   if (innerWidth != origWidth || innerHeight != origHeight)\r
29      location.reload();\r
30 }\r
31 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {\r
32         origWidth = innerWidth;\r
33         origHeight = innerHeight;\r
34         onresize = reDo;\r
35 }\r
36 onerror = null; \r
37 //-->\r
38 </script>\r
39 <style type="text/css">\r
40 <!--\r
41 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }\r
42 p.WebHelpNavBar { text-align:right; }\r
43 -->\r
44 </style><script type="text/javascript" language="javascript1.2" src="whmsg.js"></script>\r
45 <script type="text/javascript" language="javascript" src="whver.js"></script>\r
46 <script type="text/javascript" language="javascript1.2" src="whproxy.js"></script>\r
47 <script type="text/javascript" language="javascript1.2" src="whutils.js"></script>\r
48 <script type="text/javascript" language="javascript1.2" src="whtopic.js"></script>\r
49 <script type="text/javascript" language="javascript1.2">\r
50 <!--\r
51 if (window.gbWhTopic)\r
52 {\r
53         if (window.setRelStartPage)\r
54         {\r
55         addTocInfo("Geometry module\nTransforming geometrical objects\nRepairing Operations\nClose Contour");\r
56 addButton("show",BTN_IMG,"Show","","","","",0,0,"whd_show0.gif","whd_show2.gif","whd_show1.gif");\r
57 addButton("hide",BTN_IMG,"Hide","","","","",0,0,"whd_hide0.gif","whd_hide2.gif","whd_hide1.gif");\r
58 \r
59         }\r
60 \r
61 \r
62         if (window.setRelStartPage)\r
63         {\r
64         setRelStartPage("index.htm");\r
65 \r
66                 autoSync(1);\r
67                 sendSyncInfo();\r
68                 sendAveInfoOut();\r
69         }\r
70 \r
71 }\r
72 else\r
73         if (window.gbIE4)\r
74                 document.location.reload();\r
75 //-->\r
76 </script>\r
77 </head>\r
78 <body><script type="text/javascript" language="javascript1.2">\r
79 <!--\r
80 if (window.writeIntopicBar)\r
81         writeIntopicBar(4);\r
82 //-->\r
83 </script>\r
84 <h1><span style="font-size: 14pt;"><font size=4 style="font-size:14pt;"><img src="files/salome2_sp3_repairgui_functions_salome2_sp3_repairgui_functions_image121.gif" width="20px" height="20px" border="0" class="img_whs1"> </font></span>Close Contour</h1>\r
85 \r
86 <p class="whs2"><b style="font-weight: normal;">T</b>o produce \r
87  a <span style="font-weight: bold;"><B>Close Contour</B></span> operation in the \r
88  Main Menu select <span style="font-weight: bold;"><B>Repair - &gt; Close \r
89  Contour.</B></span></p>\r
90 \r
91 <p class="whs2">&nbsp;</p>\r
92 \r
93 <p class="whs2">This operation closes an open contour and modifies \r
94  the underlying face (if needed) in accordance with user specified mode:</p>\r
95 \r
96 <ul type="disc" class="whs3">\r
97         \r
98         <li class=kadov-p><p class="whs2">By common vertex \96 a \r
99  vertex is created between the end points of the contour and its tolerance \r
100  is increased to a value of the gap between the ends of the contour;</p></li>\r
101         \r
102         <li class=kadov-p><p class="whs2">By new edge \96 a new edge \r
103  is inserted between the end points of the contour.</p></li>\r
104 </ul>\r
105 \r
106 <p class="whs2">This operation is available in <span style="font-weight: bold;"><B>OCC \r
107  Viewer</B></span> only. </p>\r
108 \r
109 <p class="whs2">&nbsp;</p>\r
110 \r
111 <p class="whs2"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"><b style="font-weight: bold;"><b><span \r
112  style="font-weight: normal;">T</b>he</span> Result <span style="font-weight: normal;">will \r
113  be a</span></b><b> <span style="font-weight: bold;"><B>GEOM_Object</B></span></b><span \r
114  style="font-weight: bold;"><B>.</B></span></font></span></p>\r
115 \r
116 <p class="whs2">&nbsp;</p>\r
117 \r
118 <p class="whs2"><b style="font-weight: bold;">TUI Command:</b><i> \r
119  </i><span style="font-style: italic;"><I>geompy.CloseContour(Shape, Wires, \r
120  IsCommonVertex)</I></span>, where Shape is a shape to be processed, Wires \r
121  is a list of edges or wires ID\92s which has to be closed within the shape \r
122  (if the list contains only one element = -1, the shape itself is considered \r
123  as a wire), &nbsp;IsCommonVertex \r
124  if this parameter is True a closure has to be done by creation of a common \r
125  vertex, otherwise an edge is added between the end vertices.</p>\r
126 \r
127 <p class="whs2">&nbsp;</p>\r
128 \r
129 <p class="whs2"><b style="font-weight: bold;">Arguments: <span \r
130  style="font-weight: normal;">Name + 1 shape + contour</span> <span style="font-weight: normal;">(</span></b>Wire, \r
131  or a set of Edges) + mode of closure (by vertex or by edge)</p>\r
132 \r
133 <p class="whs2">&nbsp;</p>\r
134 \r
135 <p class="whs4"><img src="pics/repair3.png" x-maintain-ratio="TRUE" width="312px" height="397px" border="0" class="img_whs5"></p>\r
136 \r
137 <p class="whs6">&nbsp;</p>\r
138 \r
139 <p class="whs7"><span style="font-weight: normal;">Our</span> \r
140  TUI Scripts <span style="font-weight: normal;">provide you with useful \r
141  examples of the use of</span> <a href="repairing_operations.htm#bookmark2">Repairing \r
142  Operations</a>. </p>\r
143 \r
144 <p>&nbsp;</p>\r
145 \r
146 <script type="text/javascript" language="javascript1.2">\r
147 <!--\r
148 if (window.writeIntopicBar)\r
149         writeIntopicBar(0);\r
150 //-->\r
151 </script>\r
152 </body>\r
153 </html>\r