1 <!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
\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
11 if (navigator.appName !="Netscape")
\r
12 { document.write("<link rel='stylesheet' href='../default.css'>");}
\r
17 A:visited { color:#800080; }
\r
18 A:link { color:#0000ff; }
\r
20 </style><style type="text/css">
\r
22 p.whs1 { font-size:12pt; }
\r
23 img_whs2 { border-style:none; border:none; float:none; width:30px; height:30px; }
\r
24 p.whs3 { margin-left:40px; }
\r
25 img_whs4 { border-style:none; border:none; width:21px; height:19px; }
\r
26 p.whs5 { font-size:12pt; margin-left:40px; font-weight:bold; }
\r
27 img_whs6 { border:none; width:216px; height:250px; }
\r
28 p.whs7 { font-family:'Times New Roman' , serif; font-size:14pt; }
\r
29 img_whs8 { border-style:none; width:20px; height:20px; }
\r
30 p.whs9 { font-family:'Times New Roman' , serif; font-size:12pt; }
\r
31 img_whs10 { border:none; width:283px; height:250px; }
\r
32 p.whs11 { font-size:12pt; margin-left:40px; }
\r
33 img_whs12 { border:none; width:199px; height:250px; }
\r
34 p.whs13 { font-size:12pt; margin-left:400px; }
\r
35 img_whs14 { border:none; width:256px; height:250px; }
\r
36 p.whs15 { font-size:12pt; font-weight:bold; }
\r
37 img_whs16 { border:none; width:263px; height:250px; }
\r
38 p.whs17 { font-size:12pt; font-weight:normal; }
\r
39 img_whs18 { border:none; width:310px; height:250px; }
\r
40 img_whs19 { border:none; width:262px; height:250px; }
\r
41 img_whs20 { border:none; width:268px; height:250px; }
\r
42 img_whs21 { border:none; width:266px; height:250px; }
\r
44 </style><script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">
\r
47 if (innerWidth != origWidth || innerHeight != origHeight)
\r
50 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {
\r
51 origWidth = innerWidth;
\r
52 origHeight = innerHeight;
\r
58 <style type="text/css">
\r
60 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }
\r
62 </style><script type="text/javascript" language="javascript1.2" src="../whmsg.js"></script>
\r
63 <script type="text/javascript" language="javascript" src="../whver.js"></script>
\r
64 <script type="text/javascript" language="javascript1.2" src="../whproxy.js"></script>
\r
65 <script type="text/javascript" language="javascript1.2" src="../whutils.js"></script>
\r
66 <script type="text/javascript" language="javascript1.2" src="../whtopic.js"></script>
\r
68 <body><script type="text/javascript" language="javascript1.2">
\r
70 if (window.gbWhTopic)
\r
72 if (window.addTocInfo)
\r
74 addTocInfo("GEOM module\nUsing measurement tools");
\r
75 addButton("show",BTN_TEXT,"Show","","","","",0,0,"","","");
\r
78 if (window.writeBtnStyle)
\r
81 if (window.writeIntopicBar)
\r
84 if (window.setRelStartPage)
\r
86 setRelStartPage("../geom.htm");
\r
95 document.location.reload();
\r
98 <h1>Using measurement tools</h1>
\r
100 <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
101 data concerning created or imported geometrical objects. They are:</p>
\r
103 <p class="whs1"> </p>
\r
107 <li class=kadov-p><p class="whs1"><a href="#PointCoord">Point
\r
108 coordinates</a></p></li>
\r
110 <li class=kadov-p><p class="whs1"><a href="#Basic_properties">Basic
\r
111 properties</a></p></li>
\r
113 <li class=kadov-p><p class="whs1"><a href="#Center_gravity">Center
\r
114 of mass</a></p></li>
\r
116 <li class=kadov-p><p class="whs1"><a href="#Inertia_axis">Inertia</a></p></li>
\r
118 <li class=kadov-p><p class="whs1"><a href="#Bounding_box">Bounding
\r
121 <li class=kadov-p><p class="whs1"><a href="#Min_distance">Min.
\r
122 distance</a></p></li>
\r
124 <li class=kadov-p><p class="whs1"><a href="#Tolerance">Tolerance</a></p></li>
\r
126 <li class=kadov-p><p class="whs1"><a href="#Whatis">WhatIs</a></p></li>
\r
128 <li class=kadov-p><p class="whs1"><a href="#check">Check</a></p></li>
\r
131 <p class="whs1"> </p>
\r
133 <p class=TODO>To use measurement tools:</p>
\r
135 <p class=TODO> </p>
\r
137 <p class="whs3">In the main menu select <span style="font-weight: bold;"><B>Measures
\r
138 </B></span>submenu.</p>
\r
140 <p class="whs3"> </p>
\r
142 <p class="whs1"> </p>
\r
144 <p class="whs1"><a name=PointCoord> <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
146 <p class="whs1"> </p>
\r
148 <p class="whs1"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"><b style="font-weight: bold;">Description:</b>
\r
149 Returns the coordinates of a point.</font></span></p>
\r
151 <p class="whs1"> </p>
\r
153 <p class="whs1"><b style="font-weight: bold;">Result:</b> Point
\r
154 coordinates (X, Y, Z) in 3D space in the form of Python Tuple.</p>
\r
156 <p class="whs1"> </p>
\r
158 <p class="whs1"><span style="font-weight: bold;"><B>TUI command:</B></span>
\r
159 <span style="font-style: italic;"><I>geompy.PointCoordinates(Point)</I></span>,
\r
160 where Point is a point whose coordinates are inquired.</p>
\r
162 <p class="whs1"> </p>
\r
164 <p class="whs1"> </p>
\r
166 <p class="whs1"><b style="font-weight: bold;">Arguments:</b>
\r
169 <p class="whs1"> </p>
\r
171 <p class="whs1"><b style="font-weight: bold;">Dialog Box:</b></p>
\r
173 <p class="whs1"> </p>
\r
175 <p class="whs5"><img src="../image292.jpg" width="216px" height="250px" border="0" class="img_whs6"></p>
\r
177 <p class="whs1"> </p>
\r
179 <p class="whs1"> </p>
\r
181 <p class="whs7"><b style="font-weight: bold;"><a
\r
182 NAME=Basic_properties
\r
183 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
186 <p class="whs9"> </p>
\r
188 <p class="whs1"><b style="font-weight: bold;">Description:</b>
\r
189 Return the properties (Length, Surface & Volume) of a definite geometrical
\r
192 <p class="whs1"> </p>
\r
194 <p class="whs1"><b style="font-weight: bold;">Result:</b> Display
\r
195 Length, Surface & Volume in the form of Python Tuple.</p>
\r
197 <p class="whs1"> </p>
\r
199 <p class="whs1"><span style="font-weight: bold;"><B>TUI command:</B></span>
\r
200 <span style="font-style: italic;"><I>geompy.BasicProperties(Shape)</I></span>,
\r
201 where Shape is a shape whose properties are inquired.</p>
\r
203 <p class="whs1"> </p>
\r
205 <p class="whs1"><b style="font-weight: bold;">Arguments:</b>
\r
208 <p class="whs1"> </p>
\r
210 <p class="whs1"><b style="font-weight: bold;">Dialog Box:</b></p>
\r
212 <p class="whs1"> </p>
\r
214 <p class="whs3"><img src="../image293.jpg" width="283px" height="250px" border="0" class="img_whs10"></p>
\r
220 <p class="whs7"><a name=Center_gravity
\r
221 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
222 Center of mass</b></a></p>
\r
224 <p class="whs9"> </p>
\r
226 <p class="whs1"><b style="font-weight: bold;">Description:</b>
\r
227 Creates a gravity center of a shape and returns its coordinates.</p>
\r
229 <p class="whs1"> </p>
\r
231 <p class="whs1"><b style="font-weight: bold;">Result:</b> GEOM_Object
\r
234 <p class="whs1"> </p>
\r
236 <p class="whs1"><b style="font-weight: bold;">TUI Command:</b><i>
\r
237 </i><span style="font-style: italic;"><I>geompy.MakeCDG(Shape)</I></span>, where
\r
238 Shape is the shape for which a center of gravity is computed.</p>
\r
240 <p class="whs1"> </p>
\r
242 <p class="whs1"><b style="font-weight: bold;">Arguments:</b>
\r
245 <p class="whs1"> </p>
\r
247 <p class="whs1"><b style="font-weight: bold;">Dialog Box:</b></p>
\r
249 <p class="whs1"> </p>
\r
251 <p class="whs11"><img src="../image294.jpg" width="199px" height="250px" border="0" class="img_whs12"></p>
\r
253 <p class="whs1"> </p>
\r
255 <p class="whs7"> </p>
\r
257 <p class="whs7"><a NAME=Inertia_axis
\r
258 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
259 size=4> Inertia</font></b></a>
\r
262 <p class="whs7"> </p>
\r
264 <p class="whs1"><b style="font-weight: bold;">Description:</b>
\r
265 Returns the inertia axis of a geometrical object.</p>
\r
267 <p class="whs1"> </p>
\r
269 <p class="whs1"><b style="font-weight: bold;">Result:</b> Display
\r
270 the matrix and moments of inretia in the form of Python Tuple (I11, I12,
\r
273 <p class="whs13"> I21,
\r
276 <p class="whs13"> I31,
\r
279 <p class="whs13"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"> Ix,
\r
280 Iy, Iz)</font></span>.</p>
\r
282 <p class="whs1"> </p>
\r
284 <p class="whs1"><span style="font-weight: bold;"><B>TUI command:</B></span>
\r
285 <span style="font-style: italic;"><I>geompy.Inertia(Shape)</I></span>, where
\r
286 Shape is a shape for which a matrix of inertia and moment of inertia are
\r
289 <p class="whs1"> </p>
\r
291 <p class="whs1"><b style="font-weight: bold;">Arguments:</b>
\r
294 <p class="whs1"> </p>
\r
296 <p class="whs1"><b style="font-weight: bold;">Dialog Box:</b></p>
\r
298 <p class="whs11"> </p>
\r
300 <p class="whs11"><img src="../image295.jpg" width="256px" height="250px" border="0" class="img_whs14"></p>
\r
302 <p class="whs1"> </p>
\r
304 <p class="whs1"> </p>
\r
306 <p class="whs7"><a NAME=Bounding_box
\r
307 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
309 box</font></b></a> </p>
\r
311 <p class="whs7"> </p>
\r
313 <p class="whs1"><b style="font-weight: bold;">Description:</b>
\r
314 Returns the dimensions of the bounding box of a geometrical object.</p>
\r
316 <p class="whs1"> </p>
\r
318 <p class="whs1"><b style="font-weight: bold;">Result:</b> Displays
\r
319 the dimensions of the bounding box of a geometrical object in the form
\r
320 of Python Tuple (Xmin, Xmax, Ymin, Ymax, Zmin, Zmax).</p>
\r
322 <p class="whs1"> </p>
\r
324 <p class="whs15">TUI command: <span style="font-weight: normal; font-style: italic;"><I>geompy.BoundingBox(Shape)</I></span><span
\r
325 style="font-weight: normal;">, where Shape is a shape for which a bounding
\r
326 box is computed.</span></p>
\r
328 <p class="whs1"> </p>
\r
330 <p class="whs1"><b style="font-weight: bold;">Arguments:</b>
\r
333 <p class="whs1"> </p>
\r
335 <p class="whs1"><b style="font-weight: bold;">Dialog Box:</b></p>
\r
337 <p class="whs1"> </p>
\r
339 <p class="whs11"><img src="../image296.jpg" width="263px" height="250px" border="0" class="img_whs16"></p>
\r
341 <p class="whs1"> </p>
\r
343 <p class="whs1"> </p>
\r
345 <p class="whs7"><a NAME=Min_distance
\r
346 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
347 size=4> Min. distance</font></b></a></p>
\r
349 <p class="whs7"> </p>
\r
351 <p class="whs1"><b style="font-weight: bold;">Description:</b>
\r
352 Returns the min. distance between 2 geometrical objects.</p>
\r
354 <p class="whs1"> </p>
\r
356 <p class="whs1"><b style="font-weight: bold;">Result:</b> Displays
\r
357 the min. distance.</p>
\r
359 <p class="whs1"> </p>
\r
361 <p class="whs15">TUI command: <span style="font-weight: normal; font-style: italic;"><I>geompy.MinDistance(Shape1,
\r
362 Shape2)</I></span><span style="font-weight: normal;">, where Shape1 and Shape2
\r
363 are shapes between which the minimal distance computed.</span></p>
\r
365 <p class="whs17"> </p>
\r
367 <p class="whs1"><b style="font-weight: bold;">Arguments:</b>
\r
370 <p class="whs1"> </p>
\r
372 <p class="whs1"><b style="font-weight: bold;">Dialog Box:</b></p>
\r
374 <p class="whs1"> </p>
\r
376 <p class="whs11"><img src="../image297.jpg" width="310px" height="250px" border="0" class="img_whs18"></p>
\r
378 <p class="whs1"> </p>
\r
380 <p class="whs1"> </p>
\r
382 <p class="whs7"><a NAME=Tolerance
\r
383 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
384 Tolerance</b></a> </p>
\r
386 <p class="whs9"> </p>
\r
388 <p class="whs1"><b style="font-weight: bold;">Description:</b>
\r
389 Returns the tolerance of a geometrical object.</p>
\r
391 <p class="whs1"> </p>
\r
393 <p class="whs1"><b style="font-weight: bold;">Result:</b> Displays
\r
394 the tolerance values (FaceMinTol, FaceMaxTol, EgdeMinTol, EgdeMaxTol,
\r
395 VertexMinTol, VertexMaxTol).</p>
\r
397 <p class="whs1"> </p>
\r
399 <p class="whs15">TUI command: <span style="font-weight: normal; font-style: italic;"><I>geompy.Tolerance(Shape)</I></span><span
\r
400 style="font-weight: normal;">, where Shape is a shape for which minimal
\r
401 and maximal tolerances are returned.</span></p>
\r
403 <p class="whs1"> </p>
\r
405 <p class="whs1"><b style="font-weight: bold;">Arguments:</b>
\r
408 <p class="whs1"> </p>
\r
410 <p class="whs1"><b style="font-weight: bold;">Dialog Box:</b></p>
\r
412 <p class="whs1"> </p>
\r
414 <p class="whs11"><img src="../image298.jpg" width="262px" height="250px" border="0" class="img_whs19"></p>
\r
416 <p class="whs1"> </p>
\r
418 <p class="whs1"> </p>
\r
420 <p class="whs7"><a NAME=Whatis><span
\r
421 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
424 <p class="whs9"> </p>
\r
426 <p class="whs1"><b style="font-weight: bold;">Description:</b>
\r
427 Returns the type of a geometrical object.</p>
\r
429 <p class="whs1"> </p>
\r
431 <p class="whs1"><b style="font-weight: bold;">Result:</b> Displays
\r
432 all elements composing your geometrical object.</p>
\r
434 <p class="whs1"> </p>
\r
436 <p class="whs1"><span style="font-weight: bold;"><B>TUI command:</B></span>
\r
437 <span style="font-style: italic;"><I>geompy.WhatIs(Shape)</I></span>, where Shape
\r
438 is a shape from which a description is returned.</p>
\r
440 <p class="whs1"> </p>
\r
442 <p class="whs1"><b style="font-weight: bold;">Arguments:</b>
\r
445 <p class="whs1"> </p>
\r
447 <p class="whs1"><b style="font-weight: bold;">Dialog Box:</b></p>
\r
449 <p class="whs1"> </p>
\r
451 <p class="whs11"><img src="../image299.jpg" width="268px" height="250px" border="0" class="img_whs20"></p>
\r
453 <p class="whs11"> </p>
\r
455 <p class="whs11"> </p>
\r
457 <p class="whs7"><a NAME=check
\r
458 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
459 size=4> Check</font></b></a>
\r
462 <p class="whs7"> </p>
\r
464 <p class="whs1"><b style="font-weight: bold;">Description:</b>
\r
465 Return True if this geometrical object is valid.</p>
\r
467 <p class="whs1"> </p>
\r
469 <p class="whs1"><b style="font-weight: bold;">Result:</b> Boolean.</p>
\r
471 <p class="whs1"> </p>
\r
473 <p class="whs1"><b style="font-weight: bold;">TUI Command:</b><i>
\r
474 </i><span style="font-style: italic;"><I>geompy.CheckShape(Shape)</I></span>,
\r
475 where is shape which is checked for validity.</p>
\r
477 <p class="whs1"> </p>
\r
479 <p class="whs1"><b style="font-weight: bold;">Arguments:</b>
\r
482 <p class="whs1"> </p>
\r
484 <p class="whs1"><b style="font-weight: bold;">Dialog Box:</b></p>
\r
486 <p class="whs1"> </p>
\r
488 <p class="whs11"><img src="../image300.jpg" width="266px" height="250px" border="0" class="img_whs21"></p>
\r
490 <p class="whs11"> </p>
\r
492 <script type="text/javascript" language="javascript1.2">
\r
494 if (window.writeIntopicBar)
\r
495 writeIntopicBar(0);
\r