Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/geom.git] / doc / salome / gui / GEOM / files / salome2_sp3_measuregui_functions.htm
index 40c66d82ffb273fbf2a84e013a961f2df672bff9..acb24e68673c231bec91efcf152a29ad2a48db02 100755 (executable)
-<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">\r
-\r
-<html>\r
-\r
-<head>\r
-<title>Titre</title>\r
-<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">\r
-<meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com">\r
-<link rel="stylesheet" href="../default_ns.css"><script type="text/javascript" language="JavaScript" title="WebHelpSplitCss">\r
-<!--\r
-if (navigator.appName !="Netscape")\r
-{   document.write("<link rel='stylesheet' href='../default.css'>");}\r
-//-->\r
-</script>\r
-<style>\r
-<!--\r
-A:visited { color:#800080; }\r
-A:link { color:#0000ff; }\r
--->\r
-</style><style type="text/css">\r
-<!--\r
-p.whs1 { font-size:12pt; }\r
-img_whs2 { border:none; float:none; width:30px; height:30px; border-style:none; }\r
-p.whs3 { margin-left:40px; }\r
-img_whs4 { border:none; width:21px; height:19px; border-style:none; }\r
-p.whs5 { font-size:12pt; margin-left:40px; font-weight:bold; }\r
-img_whs6 { border:none; width:272px; height:303px; float:none; border-style:none; }\r
-p.whs7 { font-family:'Times New Roman' , serif; font-size:14pt; }\r
-img_whs8 { width:20px; height:20px; border-style:none; }\r
-p.whs9 { font-family:'Times New Roman' , serif; font-size:12pt; }\r
-img_whs10 { border:none; width:360px; height:307px; float:none; border-style:none; }\r
-p.whs11 { font-size:12pt; margin-left:40px; }\r
-img_whs12 { border:none; width:312px; height:367px; float:none; border-style:none; }\r
-p.whs13 { font-size:12pt; margin-left:400px; }\r
-img_whs14 { border:none; width:360px; height:333px; float:none; border-style:none; }\r
-p.whs15 { font-size:12pt; font-weight:bold; }\r
-img_whs16 { border:none; width:360px; height:328px; float:none; border-style:none; }\r
-p.whs17 { font-size:12pt; font-weight:normal; }\r
-img_whs18 { border:none; width:360px; height:290px; float:none; border-style:none; }\r
-img_whs19 { border:none; width:360px; height:405px; float:none; border-style:none; }\r
-img_whs20 { border:none; width:360px; height:309px; float:none; border-style:none; }\r
-p.whs21 { font-size:12pt; margin-left:40px; text-indent:-40px; }\r
-img_whs22 { border:none; width:25px; height:23px; border-style:none; }\r
-ul.whs23 { list-style:disc; }\r
-img_whs24 { border:none; width:329px; height:436px; float:none; border-style:none; }\r
--->\r
-</style><script type="text/javascript" language="JavaScript">\r
-<!--\r
-if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))\r
-{\r
-  var strNSS = "<style type='text/css'>";\r
-  strNSS += "p.whs21 {text-indent:1pt; }";\r
-  strNSS +="</style>";\r
-  document.write(strNSS);\r
-}\r
-//-->\r
-</script>\r
-<script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">\r
-<!--\r
-function reDo() {\r
-  if (innerWidth != origWidth || innerHeight != origHeight)\r
-     location.reload();\r
-}\r
-if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {\r
-       origWidth = innerWidth;\r
-       origHeight = innerHeight;\r
-       onresize = reDo;\r
-}\r
-onerror = null; \r
-//-->\r
-</script>\r
-<style type="text/css">\r
-<!--\r
-div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }\r
-p.WebHelpNavBar { text-align:right; }\r
--->\r
-</style><script type="text/javascript" language="javascript1.2" src="../whmsg.js"></script>\r
-<script type="text/javascript" language="javascript" src="../whver.js"></script>\r
-<script type="text/javascript" language="javascript1.2" src="../whproxy.js"></script>\r
-<script type="text/javascript" language="javascript1.2" src="../whutils.js"></script>\r
-<script type="text/javascript" language="javascript1.2" src="../whtopic.js"></script>\r
-<script type="text/javascript" language="javascript1.2">\r
-<!--\r
-if (window.gbWhTopic)\r
-{\r
-       if (window.setRelStartPage)\r
-       {\r
-       addTocInfo("Geometry module\nUsing measurement tools");\r
-addButton("show",BTN_IMG,"Show","","","","",0,0,"../whd_show0.gif","../whd_show2.gif","../whd_show1.gif");\r
-addButton("hide",BTN_IMG,"Hide","","","","",0,0,"../whd_hide0.gif","../whd_hide2.gif","../whd_hide1.gif");\r
-\r
-       }\r
-\r
-\r
-       if (window.setRelStartPage)\r
-       {\r
-       setRelStartPage("../index.htm");\r
-\r
-               autoSync(1);\r
-               sendSyncInfo();\r
-               sendAveInfoOut();\r
-       }\r
-\r
-}\r
-else\r
-       if (window.gbIE4)\r
-               document.location.reload();\r
-//-->\r
-</script>\r
-</head>\r
-<body><script type="text/javascript" language="javascript1.2">\r
-<!--\r
-if (window.writeIntopicBar)\r
-       writeIntopicBar(4);\r
-//-->\r
-</script>\r
-<h1>Using measurement tools</h1>\r
-\r
-<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
- data concerning created or imported geometrical objects. They are:</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<ul>\r
-       \r
-       <li class=kadov-p><p class="whs1"><a href="#PointCoord">Point \r
- coordinates</a></p></li>\r
-       \r
-       <li class=kadov-p><p class="whs1"><a href="#Basic_properties">Basic \r
- properties</a></p></li>\r
-       \r
-       <li class=kadov-p><p class="whs1"><a href="#Center_gravity">Center \r
- of mass</a></p></li>\r
-       \r
-       <li class=kadov-p><p class="whs1"><a href="#Inertia_axis">Inertia</a></p></li>\r
-       \r
-       <li class=kadov-p><p class="whs1"><a href="#Bounding_box">Bounding \r
- box</a></p></li>\r
-       \r
-       <li class=kadov-p><p class="whs1"><a href="#Min_distance">Min. \r
- distance</a></p></li>\r
-       \r
-       <li class=kadov-p><p class="whs1"><a href="#Tolerance">Tolerance</a></p></li>\r
-       \r
-       <li class=kadov-p><p class="whs1"><a href="#Whatis">WhatIs</a></p></li>\r
-       \r
-       <li class=kadov-p><p class="whs1"><a href="#check">Check</a></p></li>\r
-       \r
-       <li class=kadov-p><p class="whs1"><a href="#Check_comp_blocks">Check \r
- compound of blocks</a></p></li>\r
-</ul>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs1">Our <span style="font-weight: bold;"><B>TUI Scripts</B></span> \r
- show how to use <a href="../measurement_tools.htm">Measurement Tools</a> \r
- with &nbsp;<span style="font-weight: bold;"><B>TUI \r
- commands</B></span>. </p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class=TODO>To use measurement tools:</p>\r
-\r
-<p class=TODO>&nbsp;</p>\r
-\r
-<p class="whs3">In the main menu select <span style="font-weight: bold;"><B>Measures \r
- </B></span>submenu.</p>\r
-\r
-<p class="whs3">&nbsp;</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<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
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs1"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"><b style="font-weight: bold;">Description:</b> \r
- Returns the coordinates of a point.</font></span></p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs1"><b style="font-weight: bold;">Result:</b> Point \r
- coordinates (X, Y, Z) in 3D space in the form of Python Tuple.</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs1"><span style="font-weight: bold;"><B>TUI command:</B></span> \r
- <span style="font-style: italic;"><I>geompy.PointCoordinates(Point)</I></span>, \r
- where Point is a point whose coordinates are inquired.</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs5"><img src="../pics/measures1.png" x-maintain-ratio="TRUE" width="272px" height="303px" border="0" class="img_whs6"></p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs7"><b style="font-weight: bold;"><a \r
- NAME=Basic_properties\r
-       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
- </p>\r
-\r
-<p class="whs9">&nbsp;</p>\r
-\r
-<p class="whs1"><b style="font-weight: bold;">Description:</b> \r
- Return the properties (Length, Surface &amp; Volume) of a definite geometrical \r
- object.</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs1"><b style="font-weight: bold;">Result:</b> Display \r
- Length, Surface &amp; Volume in the form of Python Tuple.</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs1"><span style="font-weight: bold;"><B>TUI command:</B></span> \r
- <span style="font-style: italic;"><I>geompy.BasicProperties(Shape)</I></span>, \r
- where Shape is a shape whose properties are inquired.</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs3"><img src="../pics/neo-basicprop.png" x-maintain-ratio="TRUE" width="360px" height="307px" border="0" class="img_whs10"></p>\r
-\r
-<p>&nbsp;</p>\r
-\r
-<p>&nbsp;</p>\r
-\r
-<p class="whs7"><a name=Center_gravity\r
-       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
- Center of mass</b></a></p>\r
-\r
-<p class="whs9">&nbsp;</p>\r
-\r
-<p class="whs1"><b style="font-weight: bold;">Description:</b> \r
- Creates a gravity center of a shape and returns its coordinates.</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs1"><b style="font-weight: bold;">Result:</b> GEOM_Object \r
- (vertex).</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs1"><b style="font-weight: bold;">TUI Command:</b><i> \r
- </i><span style="font-style: italic;"><I>geompy.MakeCDG(Shape)</I></span>, where \r
- Shape is the shape for which a center of gravity is computed.</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs11"><img src="../pics/measures3.png" x-maintain-ratio="TRUE" width="312px" height="367px" border="0" class="img_whs12"></p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs7">&nbsp;</p>\r
-\r
-<p class="whs7"><a NAME=Inertia_axis\r
-       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
-                                                                                                               size=4> Inertia</font></b></a> \r
- </p>\r
-\r
-<p class="whs7">&nbsp;</p>\r
-\r
-<p class="whs1"><b style="font-weight: bold;">Description:</b> \r
- Returns the inertia axis of a geometrical object.</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs1"><b style="font-weight: bold;">Result:</b> Display \r
- the matrix and moments of inertia in the form of Python Tuple (I11, I12, \r
- I13, </p>\r
-\r
-<p class="whs13">&nbsp;I21, \r
- I22, I23, </p>\r
-\r
-<p class="whs13">&nbsp;I31, \r
- I32, I33,</p>\r
-\r
-<p class="whs13"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">&nbsp;Ix, \r
- Iy, Iz)</font></span>.</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs1"><span style="font-weight: bold;"><B>TUI command:</B></span> \r
- <span style="font-style: italic;"><I>geompy.Inertia(Shape)</I></span>, where \r
- Shape is a shape for which a matrix of inertia and moment of inertia are \r
- returned.</p>\r
-\r
-<p class="whs11">&nbsp;</p>\r
-\r
-<p class="whs11"><img src="../pics/measures4.png" x-maintain-ratio="TRUE" width="360px" height="333px" border="0" class="img_whs14"></p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs7"><a NAME=Bounding_box\r
-       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
-                                                                                                               size=4> Bounding \r
- box</font></b></a> </p>\r
-\r
-<p class="whs7">&nbsp;</p>\r
-\r
-<p class="whs1"><b style="font-weight: bold;">Description:</b> \r
- Returns the dimensions of the bounding box of a geometrical object.</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs1"><b style="font-weight: bold;">Result:</b> Displays \r
- the dimensions of the bounding box of a geometrical object in the form \r
- of Python Tuple (Xmin, Xmax, Ymin, Ymax, Zmin, Zmax).</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs15">TUI command: <span style="font-weight: normal; font-style: italic;"><I>geompy.BoundingBox(Shape)</I></span><span \r
- style="font-weight: normal;">, where Shape is a shape for which a bounding \r
- box is computed.</span></p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs11"><img src="../pics/measures5.png" x-maintain-ratio="TRUE" width="360px" height="328px" border="0" class="img_whs16"></p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs7"><a NAME=Min_distance\r
-       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
-                                                                                                               size=4> Min. distance</font></b></a></p>\r
-\r
-<p class="whs7">&nbsp;</p>\r
-\r
-<p class="whs1"><b style="font-weight: bold;">Description:</b> \r
- Returns the min. distance between 2 geometrical objects.</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs1"><b style="font-weight: bold;">Result:</b> Displays \r
- the min. distance.</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs15">TUI command: <span style="font-weight: normal; font-style: italic;"><I>geompy.MinDistance(Shape1, \r
- Shape2)</I></span><span style="font-weight: normal;">, where Shape1 and Shape2 \r
- are shapes between which the minimal distance computed.</span></p>\r
-\r
-<p class="whs17">&nbsp;</p>\r
-\r
-<p class="whs11"><img src="../pics/distance.png" x-maintain-ratio="TRUE" width="360px" height="290px" border="0" class="img_whs18"></p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs7"><a NAME=Tolerance\r
-       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
- Tolerance</b></a> </p>\r
-\r
-<p class="whs9">&nbsp;</p>\r
-\r
-<p class="whs1"><b style="font-weight: bold;">Description:</b> \r
- Returns the tolerance of a geometrical object.</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs1"><b style="font-weight: bold;">Result:</b> Displays \r
- the tolerance values (FaceMinTol, FaceMaxTol, EgdeMinTol, EgdeMaxTol, \r
- VertexMinTol, VertexMaxTol).</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs15">TUI command: <span style="font-weight: normal; font-style: italic;"><I>geompy.Tolerance(Shape)</I></span><span \r
- style="font-weight: normal;">, where Shape is a shape for which minimal \r
- and maximal tolerances are returned.</span></p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs11"><img src="../pics/new-tolerance.png" x-maintain-ratio="TRUE" width="360px" height="328px" border="0" class="img_whs16"></p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs7"><a NAME=Whatis><span \r
- 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
- </font></span></p>\r
-\r
-<p class="whs9">&nbsp;</p>\r
-\r
-<p class="whs1"><b style="font-weight: bold;">Description:</b> \r
- Returns the type of a geometrical object.</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs1"><b style="font-weight: bold;">Result:</b> Displays \r
- all elements composing your geometrical object.</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs1"><span style="font-weight: bold;"><B>TUI command:</B></span> \r
- <span style="font-style: italic;"><I>geompy.WhatIs(Shape)</I></span>, where Shape \r
- is a shape from which a description is returned.</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs11"><img src="../pics/measures8.png" x-maintain-ratio="TRUE" width="360px" height="405px" border="0" class="img_whs19"></p>\r
-\r
-<p class="whs11">&nbsp;</p>\r
-\r
-<p class="whs11">&nbsp;</p>\r
-\r
-<p class="whs7"><a NAME=check\r
-       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
-                                                                                                               size=4> Check</font></b></a> \r
- </p>\r
-\r
-<p class="whs7">&nbsp;</p>\r
-\r
-<p class="whs1"><b style="font-weight: bold;">Description:</b> \r
- Returns True if this geometrical object is valid.</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs1"><b style="font-weight: bold;">Result:</b> Boolean.</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs1"><b style="font-weight: bold;">TUI Command:</b><i> \r
- </i><span style="font-style: italic;"><I>geompy.CheckShape(Shape)</I></span>, \r
- where is shape which is checked for validity.</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs11"><img src="../pics/measures9.png" x-maintain-ratio="TRUE" width="360px" height="309px" border="0" class="img_whs20"></p>\r
-\r
-<p class="whs11">&nbsp;</p>\r
-\r
-<p class="whs21">&nbsp;</p>\r
-\r
-<p class="whs21">&nbsp;</p>\r
-\r
-<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
- of blocks</B></font></span></a></p>\r
-\r
-<p class="whs21">&nbsp;</p>\r
-\r
-<p class="whs1"><b style="font-weight: bold;">Description:</b> \r
- Checks whether a shape is a compound of glued blocks. To be considered \r
- as a compound of blocks, the given shape must satisfy the following conditions:</p>\r
-\r
-<ul type="disc" class="whs23">\r
-       \r
-       <li class=kadov-p><p class="whs1">&nbsp;Each \r
- element of the compound should be a Block (6 faces and 12 edges);</p></li>\r
-       \r
-       <li class=kadov-p><p class="whs1">&nbsp;A \r
- connection between two Blocks should be an entire quadrangle face or an \r
- entire edge;</p></li>\r
-       \r
-       <li class=kadov-p><p class="whs1">&nbsp;The \r
- compound should be connected;</p></li>\r
-       \r
-       <li class=kadov-p><p class="whs1">&nbsp;Two \r
- quadrangle faces should be glued. </p></li>\r
-</ul>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs1">Informs of the following possible errors:</p>\r
-\r
-<ul type="disc" class="whs23">\r
-       \r
-       <li class=kadov-p><p class="whs1">not a block,</p></li>\r
-       \r
-       <li class=kadov-p><p class="whs1">not glued,</p></li>\r
-       \r
-       <li class=kadov-p><p class="whs1">not connected,</p></li>\r
-       \r
-       <li class=kadov-p><p class="whs1"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">extra \r
- or degenerated edge.</font></span></p></li>\r
-</ul>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs1"><b style="font-weight: bold;">Result:</b> Boolean; \r
- highlight in the viewer.</p>\r
-\r
-<p class="whs1">&nbsp;</p>\r
-\r
-<p class="whs1"><b style="font-weight: bold;">TUI Command:</b><i> \r
- </i><span style="font-style: italic;"><I>geompy.CheckCompoundOfBlocks(Compound). \r
- </I></span>Checks if the<span style="font-style: italic;"> <I></I></span>shape is \r
- a valid compound of blocks. If it is true, then the validity flag is returned, \r
- and encountered errors are printed in the python console.</p>\r
-\r
-<p class="whs11">&nbsp;</p>\r
-\r
-<p class="whs11"><img src="../pics/measures10.png" x-maintain-ratio="TRUE" width="329px" height="436px" border="0" class="img_whs24"></p>\r
-\r
-<p class="whs11">&nbsp;</p>\r
-\r
-<script type="text/javascript" language="javascript1.2">\r
-<!--\r
-if (window.writeIntopicBar)\r
-       writeIntopicBar(0);\r
-//-->\r
-</script>\r
-</body>\r
-</html>\r
+<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
+
+<html>
+
+<head>
+<title>Using Measurement Tools</title>
+<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
+<meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com">
+<link rel="stylesheet" href="../default_ns.css"><script type="text/javascript" language="JavaScript" title="WebHelpSplitCss">
+<!--
+if (navigator.appName !="Netscape")
+{   document.write("<link rel='stylesheet' href='../default.css'>");}
+//-->
+</script>
+<style>
+<!--
+A:visited { color:#800080; }
+A:link { color:#0000ff; }
+-->
+</style><style type="text/css">
+<!--
+p.whs1 { font-size:12pt; }
+img_whs2 { border:none; float:none; width:30px; height:30px; border-style:none; }
+p.whs3 { margin-left:40px; }
+img_whs4 { border:none; width:21px; height:19px; border-style:none; }
+p.whs5 { font-size:12pt; margin-left:40px; font-weight:bold; }
+img_whs6 { border:none; width:272px; height:303px; float:none; border-style:none; }
+p.whs7 { font-family:'Times New Roman' , serif; font-size:14pt; }
+img_whs8 { width:20px; height:20px; border-style:none; }
+p.whs9 { font-family:'Times New Roman' , serif; font-size:12pt; }
+img_whs10 { border:none; width:360px; height:307px; float:none; border-style:none; }
+p.whs11 { font-size:12pt; margin-left:40px; }
+img_whs12 { border:none; width:312px; height:367px; float:none; border-style:none; }
+p.whs13 { font-size:12pt; margin-left:400px; }
+img_whs14 { border:none; width:360px; height:333px; float:none; border-style:none; }
+p.whs15 { font-size:12pt; font-weight:bold; }
+img_whs16 { border:none; width:360px; height:328px; float:none; border-style:none; }
+p.whs17 { font-size:12pt; font-weight:normal; }
+img_whs18 { border:none; width:360px; height:290px; float:none; border-style:none; }
+img_whs19 { border:none; width:360px; height:405px; float:none; border-style:none; }
+img_whs20 { border:none; width:360px; height:337px; float:none; border-style:none; }
+p.whs21 { font-size:12pt; margin-left:40px; text-indent:-40px; }
+img_whs22 { border:none; width:25px; height:23px; border-style:none; }
+ul.whs23 { list-style:disc; }
+img_whs24 { border:none; width:329px; height:436px; float:none; border-style:none; }
+-->
+</style><script type="text/javascript" language="JavaScript">
+<!--
+if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))
+{
+  var strNSS = "<style type='text/css'>";
+  strNSS += "p.whs21 {text-indent:1pt; }";
+  strNSS +="</style>";
+  document.write(strNSS);
+}
+//-->
+</script>
+<script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">
+<!--
+function reDo() {
+  if (innerWidth != origWidth || innerHeight != origHeight)
+     location.reload();
+}
+if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {
+       origWidth = innerWidth;
+       origHeight = innerHeight;
+       onresize = reDo;
+}
+onerror = null; 
+//-->
+</script>
+<style type="text/css">
+<!--
+div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }
+p.WebHelpNavBar { text-align:right; }
+-->
+</style><script type="text/javascript" language="javascript1.2" src="../whmsg.js"></script>
+<script type="text/javascript" language="javascript" src="../whver.js"></script>
+<script type="text/javascript" language="javascript1.2" src="../whproxy.js"></script>
+<script type="text/javascript" language="javascript1.2" src="../whutils.js"></script>
+<script type="text/javascript" language="javascript1.2" src="../whtopic.js"></script>
+<script type="text/javascript" language="javascript1.2">
+<!--
+if (window.gbWhTopic)
+{
+       if (window.setRelStartPage)
+       {
+       addTocInfo("Geometry module\nUsing measurement tools");
+addButton("show",BTN_IMG,"Show","","","","",0,0,"../whd_show0.gif","../whd_show2.gif","../whd_show1.gif");
+addButton("hide",BTN_IMG,"Hide","","","","",0,0,"../whd_hide0.gif","../whd_hide2.gif","../whd_hide1.gif");
+
+       }
+
+
+       if (window.setRelStartPage)
+       {
+       setRelStartPage("../index.htm");
+
+               autoSync(1);
+               sendSyncInfo();
+               sendAveInfoOut();
+       }
+
+}
+else
+       if (window.gbIE4)
+               document.location.reload();
+//-->
+</script>
+</head>
+<body><script type="text/javascript" language="javascript1.2">
+<!--
+if (window.writeIntopicBar)
+       writeIntopicBar(4);
+//-->
+</script>
+<h1>Using measurement tools</h1>
+
+<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 
+ data concerning created or imported geometrical objects. They are:</p>
+
+<p class="whs1">&nbsp;</p>
+
+<ul>
+       
+       <li class=kadov-p><p class="whs1"><a href="#PointCoord">Point 
+ coordinates</a></p></li>
+       
+       <li class=kadov-p><p class="whs1"><a href="#Basic_properties">Basic 
+ properties</a></p></li>
+       
+       <li class=kadov-p><p class="whs1"><a href="#Center_gravity">Center 
+ of mass</a></p></li>
+       
+       <li class=kadov-p><p class="whs1"><a href="#Inertia_axis">Inertia</a></p></li>
+       
+       <li class=kadov-p><p class="whs1"><a href="#Bounding_box">Bounding 
+ box</a></p></li>
+       
+       <li class=kadov-p><p class="whs1"><a href="#Min_distance">Min. 
+ distance</a></p></li>
+       
+       <li class=kadov-p><p class="whs1"><a href="#Tolerance">Tolerance</a></p></li>
+       
+       <li class=kadov-p><p class="whs1"><a href="#Whatis">WhatIs</a></p></li>
+       
+       <li class=kadov-p><p class="whs1"><a href="#check">Check</a></p></li>
+       
+       <li class=kadov-p><p class="whs1"><a href="#Check_comp_blocks">Check 
+ compound of blocks</a></p></li>
+</ul>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs1">Our <span style="font-weight: bold;"><B>TUI Scripts</B></span> 
+ show how to use <a href="../measurement_tools.htm">Measurement Tools</a> 
+ with &nbsp;<span style="font-weight: bold;"><B>TUI 
+ commands</B></span>. </p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class=TODO>To use measurement tools:</p>
+
+<p class=TODO>&nbsp;</p>
+
+<p class="whs3">In the main menu select <span style="font-weight: bold;"><B>Measures 
+ </B></span>submenu.</p>
+
+<p class="whs3">&nbsp;</p>
+
+<p class="whs1">&nbsp;</p>
+
+<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>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs1"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">Returns the 
+ coordinates of a point.</font></span></p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs1"><b style="font-weight: bold;">Result:</b> Point 
+ coordinates (X, Y, Z) in 3D space in the form of Python Tuple.</p>
+
+<p class="whs1"><span style="font-weight: bold;"><B>TUI command:</B></span> 
+ <span style="font-style: italic;"><I>geompy.PointCoordinates(Point)</I></span>, 
+ where Point is a point whose coordinates are inquired.</p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs5"><img src="../pics/measures1.png" x-maintain-ratio="TRUE" width="272px" height="303px" border="0" class="img_whs6"></p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs7"><b style="font-weight: bold;"><a 
+ NAME=Basic_properties
+       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> 
+ </p>
+
+<p class="whs9">&nbsp;</p>
+
+<p class="whs1">Returns the properties (Length, Surface &amp; 
+ Volume) for the selected geometrical object.</p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs1"><b style="font-weight: bold;">Result:</b> Display 
+ Length, Surface &amp; Volume in the form of Python Tuple.</p>
+
+<p class="whs1"><span style="font-weight: bold;"><B>TUI command:</B></span> 
+ <span style="font-style: italic;"><I>geompy.BasicProperties(Shape)</I></span>, 
+ where Shape is a shape whose properties are inquired.</p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs3"><img src="../pics/neo-basicprop.png" x-maintain-ratio="TRUE" width="360px" height="307px" border="0" class="img_whs10"></p>
+
+<p>&nbsp;</p>
+
+<p>&nbsp;</p>
+
+<p class="whs7"><a name=Center_gravity
+       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;"> 
+ Center of mass</b></a></p>
+
+<p class="whs9">&nbsp;</p>
+
+<p class="whs1">Calculates and returns the coordinates of the 
+ gravity center for the selected geometrical object.</p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs1"><b style="font-weight: bold;">Result:</b> GEOM_Object 
+ (vertex).</p>
+
+<p class="whs1"><b style="font-weight: bold;">TUI Command:</b><i> 
+ </i><span style="font-style: italic;"><I>geompy.MakeCDG(Shape)</I></span>, where 
+ Shape is the shape for which a center of gravity is computed.</p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs11"><img src="../pics/measures3.png" x-maintain-ratio="TRUE" width="312px" height="367px" border="0" class="img_whs12"></p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs7">&nbsp;</p>
+
+<p class="whs7"><a NAME=Inertia_axis
+       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;"
+                                                                                                               size=4> Inertia</font></b></a> 
+ </p>
+
+<p class="whs7">&nbsp;</p>
+
+<p class="whs1">Returns the axis of inertia for the selected 
+ geometrical object.</p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs1"><b style="font-weight: bold;">Result:</b> Displays 
+ the matrix and moments of inertia in the form of Python Tuple (I11, I12, 
+ I13, </p>
+
+<p class="whs13">&nbsp;I21, 
+ I22, I23, </p>
+
+<p class="whs13">&nbsp;I31, 
+ I32, I33,</p>
+
+<p class="whs13"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">&nbsp;Ix, 
+ Iy, Iz)</font></span>.</p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs1"><span style="font-weight: bold;"><B>TUI command:</B></span> 
+ <span style="font-style: italic;"><I>geompy.Inertia(Shape)</I></span>, where 
+ Shape is a shape for which a matrix of inertia and moment of inertia are 
+ returned.</p>
+
+<p class="whs11">&nbsp;</p>
+
+<p class="whs11"><img src="../pics/measures4.png" x-maintain-ratio="TRUE" width="360px" height="333px" border="0" class="img_whs14"></p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs7"><a NAME=Bounding_box
+       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;"
+                                                                                                               size=4> Bounding 
+ box</font></b></a> </p>
+
+<p class="whs7">&nbsp;</p>
+
+<p class="whs1">Returns the dimensions of the bounding box 
+ for the selected geometrical object.</p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs1"><b style="font-weight: bold;">Result:</b> Displays 
+ the dimensions of the bounding box of a geometrical object in the form 
+ of Python Tuple (Xmin, Xmax, Ymin, Ymax, Zmin, Zmax).</p>
+
+<p class="whs15">TUI command: <span style="font-weight: normal; font-style: italic;"><I>geompy.BoundingBox(Shape)</I></span><span 
+ style="font-weight: normal;">, where Shape is a shape for which a bounding 
+ box is computed.</span></p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs11"><img src="../pics/measures5.png" x-maintain-ratio="TRUE" width="360px" height="328px" border="0" class="img_whs16"></p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs7"><a NAME=Min_distance
+       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;"
+                                                                                                               size=4> Min. distance</font></b></a></p>
+
+<p class="whs7">&nbsp;</p>
+
+<p class="whs1">Returns the minimum distance between two geometrical 
+ objects.</p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs15">TUI command: <span style="font-weight: normal; font-style: italic;"><I>geompy.MinDistance(Shape1, 
+ Shape2)</I></span><span style="font-weight: normal;">, where Shape1 and Shape2 
+ are shapes between which the minimal distance computed.</span></p>
+
+<p class="whs17">&nbsp;</p>
+
+<p class="whs11"><img src="../pics/distance.png" x-maintain-ratio="TRUE" width="360px" height="290px" border="0" class="img_whs18"></p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs7"><a NAME=Tolerance
+       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;"> 
+ Tolerance</b></a> </p>
+
+<p class="whs9">&nbsp;</p>
+
+<p class="whs1">Returns the maximum and the minimum tolerance 
+ for the selected geometrical object.</p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs1"><b style="font-weight: bold;">Result:</b> Displays 
+ the tolerance values (FaceMinTol, FaceMaxTol, EgdeMinTol, EgdeMaxTol, 
+ VertexMinTol, VertexMaxTol).</p>
+
+<p class="whs15">TUI command: <span style="font-weight: normal; font-style: italic;"><I>geompy.Tolerance(Shape)</I></span><span 
+ style="font-weight: normal;">, where Shape is a shape for which minimal 
+ and maximal tolerances are returned.</span></p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs11"><img src="../pics/new-tolerance.png" x-maintain-ratio="TRUE" width="360px" height="328px" border="0" class="img_whs16"></p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs7"><a NAME=Whatis><span 
+ 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> 
+ </font></span></p>
+
+<p class="whs9">&nbsp;</p>
+
+<p class="whs1">Displays types and quantities of all elements 
+ composing the selected geometrical object.</p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs1"><span style="font-weight: bold;"><B>TUI command:</B></span> 
+ <span style="font-style: italic;"><I>geompy.WhatIs(Shape)</I></span>, where Shape 
+ is a shape from which a description is returned.</p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs11"><img src="../pics/measures8.png" x-maintain-ratio="TRUE" width="360px" height="405px" border="0" class="img_whs19"></p>
+
+<p class="whs11">&nbsp;</p>
+
+<p class="whs11">&nbsp;</p>
+
+<p class="whs7"><a NAME=check
+       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;"
+                                                                                                               size=4> Check</font></b></a> 
+ </p>
+
+<p class="whs7">&nbsp;</p>
+
+<p class="whs1">Checks the topology of the selected geometrical 
+ object and returns True if it is valid. <span style="font-weight: bold;"><B>Check 
+ also geometry</B></span> checkbox allows to test the geometry as well. </p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs1"><b style="font-weight: bold;">Result:</b> Boolean.</p>
+
+<p class="whs1"><b style="font-weight: bold;">TUI Command:</b><i> 
+ </i><span style="font-style: italic;"><I>geompy.(theShape, theIsCheckGeom 
+ = 0)</I></span>, where is shape which is checked for validity.</p>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs11"><img src="../pics/measures9.png" x-maintain-ratio="TRUE" width="360px" height="337px" border="0" class="img_whs20"></p>
+
+<p class="whs21">&nbsp;</p>
+
+<p class="whs21">&nbsp;</p>
+
+<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 
+ of blocks</B></font></span></a></p>
+
+<p class="whs21">&nbsp;</p>
+
+<p class="whs1">Checks whether a shape is a compound of glued 
+ blocks. To be considered as a compound of blocks, the given shape must 
+ satisfy the following conditions:</p>
+
+<ul type="disc" class="whs23">
+       
+       <li class=kadov-p><p class="whs1">&nbsp;Each 
+ element of the compound should be a Block (6 faces and 12 edges);</p></li>
+       
+       <li class=kadov-p><p class="whs1">&nbsp;A 
+ connection between two Blocks should be an entire quadrangle face or an 
+ entire edge;</p></li>
+       
+       <li class=kadov-p><p class="whs1">&nbsp;The 
+ compound should be connected;</p></li>
+       
+       <li class=kadov-p><p class="whs1">&nbsp;Two 
+ quadrangle faces should be glued. </p></li>
+</ul>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs1">Informs of the following possible errors:</p>
+
+<ul type="disc" class="whs23">
+       
+       <li class=kadov-p><p class="whs1">not a block,</p></li>
+       
+       <li class=kadov-p><p class="whs1">not glued,</p></li>
+       
+       <li class=kadov-p><p class="whs1">not connected,</p></li>
+       
+       <li class=kadov-p><p class="whs1"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">extra 
+ or degenerated edge.</font></span></p></li>
+</ul>
+
+<p class="whs1">&nbsp;</p>
+
+<p class="whs1"><b style="font-weight: bold;">Result:</b> Boolean; 
+ highlight in the viewer.</p>
+
+<p class="whs1"><b style="font-weight: bold;">TUI Command:</b><i> 
+ </i><span style="font-style: italic;"><I>geompy.CheckCompoundOfBlocks(Compound). 
+ </I></span>Checks if the<span style="font-style: italic;"> <I></I></span>shape is 
+ a valid compound of blocks. If it is true, then the validity flag is returned, 
+ and encountered errors are printed in the python console.</p>
+
+<p class="whs11">&nbsp;</p>
+
+<p class="whs11"><img src="../pics/measures10.png" x-maintain-ratio="TRUE" width="329px" height="436px" border="0" class="img_whs24"></p>
+
+<p class="whs11">&nbsp;</p>
+
+<script type="text/javascript" language="javascript1.2">
+<!--
+if (window.writeIntopicBar)
+       writeIntopicBar(0);
+//-->
+</script>
+</body>
+</html>