Salome HOME
Merge from OCC_development_generic_2006
[modules/geom.git] / doc / salome / gui / GEOM / files / salome2_sp3_measuregui_functions.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>Titre</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>\r
16 <!--\r
17 A:visited { color:#800080; }\r
18 A:link { color:#0000ff; }\r
19 -->\r
20 </style><style type="text/css">\r
21 <!--\r
22 p.whs1 { font-size:12pt; }\r
23 img_whs2 { border:none; float:none; width:30px; height:30px; border-style:none; }\r
24 p.whs3 { margin-left:40px; }\r
25 img_whs4 { border:none; width:21px; height:19px; border-style:none; }\r
26 p.whs5 { font-size:12pt; margin-left:40px; font-weight:bold; }\r
27 img_whs6 { border:none; width:272px; height:303px; float:none; border-style:none; }\r
28 p.whs7 { font-family:'Times New Roman' , serif; font-size:14pt; }\r
29 img_whs8 { width:20px; height:20px; border-style:none; }\r
30 p.whs9 { font-family:'Times New Roman' , serif; font-size:12pt; }\r
31 img_whs10 { border:none; width:360px; height:307px; float:none; border-style:none; }\r
32 p.whs11 { font-size:12pt; margin-left:40px; }\r
33 img_whs12 { border:none; width:312px; height:367px; float:none; border-style:none; }\r
34 p.whs13 { font-size:12pt; margin-left:400px; }\r
35 img_whs14 { border:none; width:360px; height:333px; float:none; border-style:none; }\r
36 p.whs15 { font-size:12pt; font-weight:bold; }\r
37 img_whs16 { border:none; width:360px; height:328px; float:none; border-style:none; }\r
38 p.whs17 { font-size:12pt; font-weight:normal; }\r
39 img_whs18 { border:none; width:360px; height:290px; float:none; border-style:none; }\r
40 img_whs19 { border:none; width:360px; height:405px; float:none; border-style:none; }\r
41 img_whs20 { border:none; width:360px; height:309px; float:none; border-style:none; }\r
42 p.whs21 { font-size:12pt; margin-left:40px; text-indent:-40px; }\r
43 img_whs22 { border:none; width:25px; height:23px; border-style:none; }\r
44 ul.whs23 { list-style:disc; }\r
45 img_whs24 { border:none; width:329px; height:436px; float:none; border-style:none; }\r
46 -->\r
47 </style><script type="text/javascript" language="JavaScript">\r
48 <!--\r
49 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))\r
50 {\r
51   var strNSS = "<style type='text/css'>";\r
52   strNSS += "p.whs21 {text-indent:1pt; }";\r
53   strNSS +="</style>";\r
54   document.write(strNSS);\r
55 }\r
56 //-->\r
57 </script>\r
58 <script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">\r
59 <!--\r
60 function reDo() {\r
61   if (innerWidth != origWidth || innerHeight != origHeight)\r
62      location.reload();\r
63 }\r
64 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {\r
65         origWidth = innerWidth;\r
66         origHeight = innerHeight;\r
67         onresize = reDo;\r
68 }\r
69 onerror = null; \r
70 //-->\r
71 </script>\r
72 <style type="text/css">\r
73 <!--\r
74 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }\r
75 -->\r
76 </style><script type="text/javascript" language="javascript1.2" src="../whmsg.js"></script>\r
77 <script type="text/javascript" language="javascript" src="../whver.js"></script>\r
78 <script type="text/javascript" language="javascript1.2" src="../whproxy.js"></script>\r
79 <script type="text/javascript" language="javascript1.2" src="../whutils.js"></script>\r
80 <script type="text/javascript" language="javascript1.2" src="../whtopic.js"></script>\r
81 </head>\r
82 <body><script type="text/javascript" language="javascript1.2">\r
83 <!--\r
84 if (window.gbWhTopic)\r
85 {\r
86         if (window.addTocInfo)\r
87         {\r
88         addTocInfo("GEOM module\nUsing measurement tools");\r
89 addButton("show",BTN_TEXT,"Show","","","","",0,0,"","","");\r
90 \r
91         }\r
92         if (window.writeBtnStyle)\r
93                 writeBtnStyle();\r
94 \r
95         if (window.writeIntopicBar)\r
96                 writeIntopicBar(1);\r
97 \r
98         if (window.setRelStartPage)\r
99         {\r
100         setRelStartPage("../geom.htm");\r
101 \r
102                 autoSync(1);\r
103                 sendSyncInfo();\r
104                 sendAveInfoOut();\r
105         }\r
106 }\r
107 else\r
108         if (window.gbIE4)\r
109                 document.location.reload();\r
110 //-->\r
111 </script>\r
112 <h1>Using measurement tools</h1>\r
113 \r
114 <p class="whs1"><b style="font-weight: normal;"><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">Measurement tools in GEOM are necessary for getting</b> different \r
115  data concerning created or imported geometrical objects. They are:</p>\r
116 \r
117 <p class="whs1">&nbsp;</p>\r
118 \r
119 <ul>\r
120         \r
121         <li class=kadov-p><p class="whs1"><a href="#PointCoord">Point \r
122  coordinates</a></p></li>\r
123         \r
124         <li class=kadov-p><p class="whs1"><a href="#Basic_properties">Basic \r
125  properties</a></p></li>\r
126         \r
127         <li class=kadov-p><p class="whs1"><a href="#Center_gravity">Center \r
128  of mass</a></p></li>\r
129         \r
130         <li class=kadov-p><p class="whs1"><a href="#Inertia_axis">Inertia</a></p></li>\r
131         \r
132         <li class=kadov-p><p class="whs1"><a href="#Bounding_box">Bounding \r
133  box</a></p></li>\r
134         \r
135         <li class=kadov-p><p class="whs1"><a href="#Min_distance">Min. \r
136  distance</a></p></li>\r
137         \r
138         <li class=kadov-p><p class="whs1"><a href="#Tolerance">Tolerance</a></p></li>\r
139         \r
140         <li class=kadov-p><p class="whs1"><a href="#Whatis">WhatIs</a></p></li>\r
141         \r
142         <li class=kadov-p><p class="whs1"><a href="#check">Check</a></p></li>\r
143         \r
144         <li class=kadov-p><p class="whs1"><a href="#Check_comp_blocks">Check \r
145  compound of blocks</a></p></li>\r
146 </ul>\r
147 \r
148 <p class="whs1">&nbsp;</p>\r
149 \r
150 <p class="whs1">Our <span style="font-weight: bold;"><B>TUI Scripts</B></span> \r
151  show how to use <a href="../measurement_tools.htm">Measurement Tools</a> \r
152  with &nbsp;<span style="font-weight: bold;"><B>TUI \r
153  commands</B></span>. </p>\r
154 \r
155 <p class="whs1">&nbsp;</p>\r
156 \r
157 <p class=TODO>To use measurement tools:</p>\r
158 \r
159 <p class=TODO>&nbsp;</p>\r
160 \r
161 <p class="whs3">In the main menu select <span style="font-weight: bold;"><B>Measures \r
162  </B></span>submenu.</p>\r
163 \r
164 <p class="whs3">&nbsp;</p>\r
165 \r
166 <p class="whs1">&nbsp;</p>\r
167 \r
168 <p class="whs1"><a name=PointCoord>&nbsp;<img src="../image49.gif" width="21px" height="19px" border="0" class="img_whs4"> <span style="font-weight: bold; font-size: 14pt;"><font size=4 style="font-size:14pt;"><B>Point coordinates</B></font></span></a></p>\r
169 \r
170 <p class="whs1">&nbsp;</p>\r
171 \r
172 <p class="whs1"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"><b style="font-weight: bold;">Description:</b> \r
173  Returns the coordinates of a point.</font></span></p>\r
174 \r
175 <p class="whs1">&nbsp;</p>\r
176 \r
177 <p class="whs1"><b style="font-weight: bold;">Result:</b> Point \r
178  coordinates (X, Y, Z) in 3D space in the form of Python Tuple.</p>\r
179 \r
180 <p class="whs1">&nbsp;</p>\r
181 \r
182 <p class="whs1"><span style="font-weight: bold;"><B>TUI command:</B></span> \r
183  <span style="font-style: italic;"><I>geompy.PointCoordinates(Point)</I></span>, \r
184  where Point is a point whose coordinates are inquired.</p>\r
185 \r
186 <p class="whs1">&nbsp;</p>\r
187 \r
188 <p class="whs1">&nbsp;</p>\r
189 \r
190 <p class="whs1"><b style="font-weight: bold;">Arguments:</b> \r
191  1 point.</p>\r
192 \r
193 <p class="whs1">&nbsp;</p>\r
194 \r
195 <p class="whs1"><b style="font-weight: bold;">Dialog Box:</b></p>\r
196 \r
197 <p class="whs1">&nbsp;</p>\r
198 \r
199 <p class="whs5"><img src="../pics/measures1.png" x-maintain-ratio="TRUE" width="272px" height="303px" border="0" class="img_whs6"></p>\r
200 \r
201 <p class="whs1">&nbsp;</p>\r
202 \r
203 <p class="whs1">&nbsp;</p>\r
204 \r
205 <p class="whs7"><b style="font-weight: bold;"><a \r
206  NAME=Basic_properties\r
207         style="font-size: 14pt;"><img src="salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image71.gif" width="20px" height="20px" border="0" class="img_whs8"> Basic properties</a></b> \r
208  </p>\r
209 \r
210 <p class="whs9">&nbsp;</p>\r
211 \r
212 <p class="whs1"><b style="font-weight: bold;">Description:</b> \r
213  Return the properties (Length, Surface &amp; Volume) of a definite geometrical \r
214  object.</p>\r
215 \r
216 <p class="whs1">&nbsp;</p>\r
217 \r
218 <p class="whs1"><b style="font-weight: bold;">Result:</b> Display \r
219  Length, Surface &amp; Volume in the form of Python Tuple.</p>\r
220 \r
221 <p class="whs1">&nbsp;</p>\r
222 \r
223 <p class="whs1"><span style="font-weight: bold;"><B>TUI command:</B></span> \r
224  <span style="font-style: italic;"><I>geompy.BasicProperties(Shape)</I></span>, \r
225  where Shape is a shape whose properties are inquired.</p>\r
226 \r
227 <p class="whs1">&nbsp;</p>\r
228 \r
229 <p class="whs1"><b style="font-weight: bold;">Arguments:</b> \r
230  1 shape.</p>\r
231 \r
232 <p class="whs1">&nbsp;</p>\r
233 \r
234 <p class="whs1"><b style="font-weight: bold;">Dialog Box:</b></p>\r
235 \r
236 <p class="whs1">&nbsp;</p>\r
237 \r
238 <p class="whs3"><img src="../pics/neo-basicprop.png" x-maintain-ratio="TRUE" width="360px" height="307px" border="0" class="img_whs10"></p>\r
239 \r
240 <p>&nbsp;</p>\r
241 \r
242 <p>&nbsp;</p>\r
243 \r
244 <p class="whs7"><a name=Center_gravity\r
245         style="font-size: 14pt;"><img src="salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image72.gif" width="20px" height="20px" border="0" class="img_whs8"><b style="font-size: 14pt;"> \r
246  Center of mass</b></a></p>\r
247 \r
248 <p class="whs9">&nbsp;</p>\r
249 \r
250 <p class="whs1"><b style="font-weight: bold;">Description:</b> \r
251  Creates a gravity center of a shape and returns its coordinates.</p>\r
252 \r
253 <p class="whs1">&nbsp;</p>\r
254 \r
255 <p class="whs1"><b style="font-weight: bold;">Result:</b> GEOM_Object \r
256  (vertex).</p>\r
257 \r
258 <p class="whs1">&nbsp;</p>\r
259 \r
260 <p class="whs1"><b style="font-weight: bold;">TUI Command:</b><i> \r
261  </i><span style="font-style: italic;"><I>geompy.MakeCDG(Shape)</I></span>, where \r
262  Shape is the shape for which a center of gravity is computed.</p>\r
263 \r
264 <p class="whs1">&nbsp;</p>\r
265 \r
266 <p class="whs1"><b style="font-weight: bold;">Arguments:</b> \r
267  1 shape.</p>\r
268 \r
269 <p class="whs1">&nbsp;</p>\r
270 \r
271 <p class="whs1"><b style="font-weight: bold;">Dialog Box:</b></p>\r
272 \r
273 <p class="whs1">&nbsp;</p>\r
274 \r
275 <p class="whs11"><img src="../pics/measures3.png" x-maintain-ratio="TRUE" width="312px" height="367px" border="0" class="img_whs12"></p>\r
276 \r
277 <p class="whs1">&nbsp;</p>\r
278 \r
279 <p class="whs7">&nbsp;</p>\r
280 \r
281 <p class="whs7"><a NAME=Inertia_axis\r
282         style="font-size: 14pt;"><img src="salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image73.gif" width="20px" height="20px" border="0" class="img_whs8"><b><font style="font-size: 14pt;"\r
283                                                                                                                 size=4> Inertia</font></b></a> \r
284  </p>\r
285 \r
286 <p class="whs7">&nbsp;</p>\r
287 \r
288 <p class="whs1"><b style="font-weight: bold;">Description:</b> \r
289  Returns the inertia axis of a geometrical object.</p>\r
290 \r
291 <p class="whs1">&nbsp;</p>\r
292 \r
293 <p class="whs1"><b style="font-weight: bold;">Result:</b> Display \r
294  the matrix and moments of inertia in the form of Python Tuple (I11, I12, \r
295  I13, </p>\r
296 \r
297 <p class="whs13">&nbsp;I21, \r
298  I22, I23, </p>\r
299 \r
300 <p class="whs13">&nbsp;I31, \r
301  I32, I33,</p>\r
302 \r
303 <p class="whs13"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">&nbsp;Ix, \r
304  Iy, Iz)</font></span>.</p>\r
305 \r
306 <p class="whs1">&nbsp;</p>\r
307 \r
308 <p class="whs1"><span style="font-weight: bold;"><B>TUI command:</B></span> \r
309  <span style="font-style: italic;"><I>geompy.Inertia(Shape)</I></span>, where \r
310  Shape is a shape for which a matrix of inertia and moment of inertia are \r
311  returned.</p>\r
312 \r
313 <p class="whs1">&nbsp;</p>\r
314 \r
315 <p class="whs1"><b style="font-weight: bold;">Arguments:</b> \r
316  1 shape.</p>\r
317 \r
318 <p class="whs1">&nbsp;</p>\r
319 \r
320 <p class="whs1"><b style="font-weight: bold;">Dialog Box:</b></p>\r
321 \r
322 <p class="whs11">&nbsp;</p>\r
323 \r
324 <p class="whs11"><img src="../pics/measures4.png" x-maintain-ratio="TRUE" width="360px" height="333px" border="0" class="img_whs14"></p>\r
325 \r
326 <p class="whs1">&nbsp;</p>\r
327 \r
328 <p class="whs1">&nbsp;</p>\r
329 \r
330 <p class="whs7"><a NAME=Bounding_box\r
331         style="font-size: 14pt;"><img src="salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image74.gif" width="20px" height="20px" border="0" class="img_whs8"><b><font style="font-size: 14pt;"\r
332                                                                                                                 size=4> Bounding \r
333  box</font></b></a> </p>\r
334 \r
335 <p class="whs7">&nbsp;</p>\r
336 \r
337 <p class="whs1"><b style="font-weight: bold;">Description:</b> \r
338  Returns the dimensions of the bounding box of a geometrical object.</p>\r
339 \r
340 <p class="whs1">&nbsp;</p>\r
341 \r
342 <p class="whs1"><b style="font-weight: bold;">Result:</b> Displays \r
343  the dimensions of the bounding box of a geometrical object in the form \r
344  of Python Tuple (Xmin, Xmax, Ymin, Ymax, Zmin, Zmax).</p>\r
345 \r
346 <p class="whs1">&nbsp;</p>\r
347 \r
348 <p class="whs15">TUI command: <span style="font-weight: normal; font-style: italic;"><I>geompy.BoundingBox(Shape)</I></span><span \r
349  style="font-weight: normal;">, where Shape is a shape for which a bounding \r
350  box is computed.</span></p>\r
351 \r
352 <p class="whs1">&nbsp;</p>\r
353 \r
354 <p class="whs1"><b style="font-weight: bold;">Arguments:</b> \r
355  1 shape.</p>\r
356 \r
357 <p class="whs1">&nbsp;</p>\r
358 \r
359 <p class="whs1"><b style="font-weight: bold;">Dialog Box:</b></p>\r
360 \r
361 <p class="whs1">&nbsp;</p>\r
362 \r
363 <p class="whs11"><img src="../pics/measures5.png" x-maintain-ratio="TRUE" width="360px" height="328px" border="0" class="img_whs16"></p>\r
364 \r
365 <p class="whs1">&nbsp;</p>\r
366 \r
367 <p class="whs1">&nbsp;</p>\r
368 \r
369 <p class="whs7"><a NAME=Min_distance\r
370         style="font-size: 14pt;"><img src="salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image75.gif" width="20px" height="20px" border="0" class="img_whs8"><b><font style="font-size: 14pt;"\r
371                                                                                                                 size=4> Min. distance</font></b></a></p>\r
372 \r
373 <p class="whs7">&nbsp;</p>\r
374 \r
375 <p class="whs1"><b style="font-weight: bold;">Description:</b> \r
376  Returns the min. distance between 2 geometrical objects.</p>\r
377 \r
378 <p class="whs1">&nbsp;</p>\r
379 \r
380 <p class="whs1"><b style="font-weight: bold;">Result:</b> Displays \r
381  the min. distance.</p>\r
382 \r
383 <p class="whs1">&nbsp;</p>\r
384 \r
385 <p class="whs15">TUI command: <span style="font-weight: normal; font-style: italic;"><I>geompy.MinDistance(Shape1, \r
386  Shape2)</I></span><span style="font-weight: normal;">, where Shape1 and Shape2 \r
387  are shapes between which the minimal distance computed.</span></p>\r
388 \r
389 <p class="whs17">&nbsp;</p>\r
390 \r
391 <p class="whs1"><b style="font-weight: bold;">Arguments:</b> \r
392  2 shapes.</p>\r
393 \r
394 <p class="whs1">&nbsp;</p>\r
395 \r
396 <p class="whs1"><b style="font-weight: bold;">Dialog Box:</b></p>\r
397 \r
398 <p class="whs1">&nbsp;</p>\r
399 \r
400 <p class="whs11"><img src="../pics/distance.png" x-maintain-ratio="TRUE" width="360px" height="290px" border="0" class="img_whs18"></p>\r
401 \r
402 <p class="whs1">&nbsp;</p>\r
403 \r
404 <p class="whs1">&nbsp;</p>\r
405 \r
406 <p class="whs7"><a NAME=Tolerance\r
407         style="font-size: 14pt;"><img src="salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image76.gif" width="20px" height="20px" border="0" class="img_whs8"><b style="font-size: 14pt;"> \r
408  Tolerance</b></a> </p>\r
409 \r
410 <p class="whs9">&nbsp;</p>\r
411 \r
412 <p class="whs1"><b style="font-weight: bold;">Description:</b> \r
413  Returns the tolerance of a geometrical object.</p>\r
414 \r
415 <p class="whs1">&nbsp;</p>\r
416 \r
417 <p class="whs1"><b style="font-weight: bold;">Result:</b> Displays \r
418  the tolerance values (FaceMinTol, FaceMaxTol, EgdeMinTol, EgdeMaxTol, \r
419  VertexMinTol, VertexMaxTol).</p>\r
420 \r
421 <p class="whs1">&nbsp;</p>\r
422 \r
423 <p class="whs15">TUI command: <span style="font-weight: normal; font-style: italic;"><I>geompy.Tolerance(Shape)</I></span><span \r
424  style="font-weight: normal;">, where Shape is a shape for which minimal \r
425  and maximal tolerances are returned.</span></p>\r
426 \r
427 <p class="whs1">&nbsp;</p>\r
428 \r
429 <p class="whs1"><b style="font-weight: bold;">Arguments:</b> \r
430  1 shape.</p>\r
431 \r
432 <p class="whs1">&nbsp;</p>\r
433 \r
434 <p class="whs1"><b style="font-weight: bold;">Dialog Box:</b></p>\r
435 \r
436 <p class="whs1">&nbsp;</p>\r
437 \r
438 <p class="whs11"><img src="../pics/new-tolerance.png" x-maintain-ratio="TRUE" width="360px" height="328px" border="0" class="img_whs16"></p>\r
439 \r
440 <p class="whs1">&nbsp;</p>\r
441 \r
442 <p class="whs1">&nbsp;</p>\r
443 \r
444 <p class="whs7"><a NAME=Whatis><span \r
445  style="font-size: 14pt;"><font size=4 style="font-size:14pt;"><img src="salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image77.gif" width="20px" height="20px" border="0" class="img_whs8"><b style="font-size: 14pt;"> WhatIs</b></a> \r
446  </font></span></p>\r
447 \r
448 <p class="whs9">&nbsp;</p>\r
449 \r
450 <p class="whs1"><b style="font-weight: bold;">Description:</b> \r
451  Returns the type of a geometrical object.</p>\r
452 \r
453 <p class="whs1">&nbsp;</p>\r
454 \r
455 <p class="whs1"><b style="font-weight: bold;">Result:</b> Displays \r
456  all elements composing your geometrical object.</p>\r
457 \r
458 <p class="whs1">&nbsp;</p>\r
459 \r
460 <p class="whs1"><span style="font-weight: bold;"><B>TUI command:</B></span> \r
461  <span style="font-style: italic;"><I>geompy.WhatIs(Shape)</I></span>, where Shape \r
462  is a shape from which a description is returned.</p>\r
463 \r
464 <p class="whs1">&nbsp;</p>\r
465 \r
466 <p class="whs1"><b style="font-weight: bold;">Arguments:</b> \r
467  1 shape.</p>\r
468 \r
469 <p class="whs1">&nbsp;</p>\r
470 \r
471 <p class="whs1"><b style="font-weight: bold;">Dialog Box:</b></p>\r
472 \r
473 <p class="whs1">&nbsp;</p>\r
474 \r
475 <p class="whs11"><img src="../pics/measures8.png" x-maintain-ratio="TRUE" width="360px" height="405px" border="0" class="img_whs19"></p>\r
476 \r
477 <p class="whs11">&nbsp;</p>\r
478 \r
479 <p class="whs11">&nbsp;</p>\r
480 \r
481 <p class="whs7"><a NAME=check\r
482         style="font-size: 14pt;"><img src="salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image78.gif" width="20px" height="20px" border="0" class="img_whs8"><b><font style="font-size: 14pt;"\r
483                                                                                                                 size=4> Check</font></b></a> \r
484  </p>\r
485 \r
486 <p class="whs7">&nbsp;</p>\r
487 \r
488 <p class="whs1"><b style="font-weight: bold;">Description:</b> \r
489  Returns True if this geometrical object is valid.</p>\r
490 \r
491 <p class="whs1">&nbsp;</p>\r
492 \r
493 <p class="whs1"><b style="font-weight: bold;">Result:</b> Boolean.</p>\r
494 \r
495 <p class="whs1">&nbsp;</p>\r
496 \r
497 <p class="whs1"><b style="font-weight: bold;">TUI Command:</b><i> \r
498  </i><span style="font-style: italic;"><I>geompy.CheckShape(Shape)</I></span>, \r
499  where is shape which is checked for validity.</p>\r
500 \r
501 <p class="whs1">&nbsp;</p>\r
502 \r
503 <p class="whs1"><b style="font-weight: bold;">Arguments:</b> \r
504  1 shape.</p>\r
505 \r
506 <p class="whs1">&nbsp;</p>\r
507 \r
508 <p class="whs1"><b style="font-weight: bold;">Dialog Box:</b></p>\r
509 \r
510 <p class="whs1">&nbsp;</p>\r
511 \r
512 <p class="whs11"><img src="../pics/measures9.png" x-maintain-ratio="TRUE" width="360px" height="309px" border="0" class="img_whs20"></p>\r
513 \r
514 <p class="whs11">&nbsp;</p>\r
515 \r
516 <p class="whs21">&nbsp;</p>\r
517 \r
518 <p class="whs21">&nbsp;</p>\r
519 \r
520 <p class="whs21"><a name=Check_comp_blocks><img src="../image27.gif" width="25px" height="23px" border="0" class="img_whs22"> <span style="font-size: 14pt; font-weight: bold;"><font size=4 style="font-size:14pt;"><B>Check compound \r
521  of blocks</B></font></span></a></p>\r
522 \r
523 <p class="whs21">&nbsp;</p>\r
524 \r
525 <p class="whs1"><b style="font-weight: bold;">Description:</b> \r
526  Checks whether a shape is a compound of glued blocks. To be considered \r
527  as a compound of blocks, the given shape must satisfy the following conditions:</p>\r
528 \r
529 <ul type="disc" class="whs23">\r
530         \r
531         <li class=kadov-p><p class="whs1">&nbsp;Each \r
532  element of the compound should be a Block (6 faces and 12 edges);</p></li>\r
533         \r
534         <li class=kadov-p><p class="whs1">&nbsp;A \r
535  connection between two Blocks should be an entire quadrangle face or an \r
536  entire edge;</p></li>\r
537         \r
538         <li class=kadov-p><p class="whs1">&nbsp;The \r
539  compound should be connected;</p></li>\r
540         \r
541         <li class=kadov-p><p class="whs1">&nbsp;Two \r
542  quadrangle faces should be glued. </p></li>\r
543 </ul>\r
544 \r
545 <p class="whs1">&nbsp;</p>\r
546 \r
547 <p class="whs1">Informs of the following possible errors:</p>\r
548 \r
549 <ul type="disc" class="whs23">\r
550         \r
551         <li class=kadov-p><p class="whs1">not a block,</p></li>\r
552         \r
553         <li class=kadov-p><p class="whs1">not glued,</p></li>\r
554         \r
555         <li class=kadov-p><p class="whs1">not connected,</p></li>\r
556         \r
557         <li class=kadov-p><p class="whs1"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">extra \r
558  or degenerated edge.</font></span></p></li>\r
559 </ul>\r
560 \r
561 <p class="whs1">&nbsp;</p>\r
562 \r
563 <p class="whs1"><b style="font-weight: bold;">Result:</b> Boolean; \r
564  highlight in the viewer.</p>\r
565 \r
566 <p class="whs1">&nbsp;</p>\r
567 \r
568 <p class="whs1"><b>TUI Command:</b><i> </i><span style="font-style: italic;"><I>geompy.CheckCompoundOfBlocks(Compound). \r
569  </I></span>Checks if the<span style="font-style: italic;"> <I></I></span>shape is \r
570  a valid compound of blocks. If it is true, then the validity flag is returned, \r
571  and encountered errors are printed in the python console.</p>\r
572 \r
573 <p class="whs1">&nbsp;</p>\r
574 \r
575 <p class="whs1"><b style="font-weight: bold;">Arguments:</b> \r
576  1 shape.</p>\r
577 \r
578 <p class="whs1">&nbsp;</p>\r
579 \r
580 <p class="whs1"><b style="font-weight: bold;">Dialog Box:</b></p>\r
581 \r
582 <p class="whs11">&nbsp;</p>\r
583 \r
584 <p class="whs11"><img src="../pics/measures10.png" x-maintain-ratio="TRUE" width="329px" height="436px" border="0" class="img_whs24"></p>\r
585 \r
586 <p class="whs11">&nbsp;</p>\r
587 \r
588 <script type="text/javascript" language="javascript1.2">\r
589 <!--\r
590 if (window.writeIntopicBar)\r
591         writeIntopicBar(0);\r
592 //-->\r
593 </script>\r
594 </body>\r
595 </html>\r