mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-28 16:10:33 +05:00
396 lines
14 KiB
HTML
Executable File
396 lines
14 KiB
HTML
Executable File
<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
|
|
|
|
<html>
|
|
|
|
<head>
|
|
<title>Titre</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 type="text/css">
|
|
<!--
|
|
img_whs1 { border:none; float:none; width:30px; height:30px; border-style:none; }
|
|
ul.whs2 { list-style:disc; }
|
|
p.whs3 { margin-left:40px; }
|
|
p.whs4 { font-size:14pt; }
|
|
img_whs5 { width:20px; height:20px; border-style:none; }
|
|
img_whs6 { border:none; border-style:none; width:312px; height:324px; float:none; }
|
|
img_whs7 { border:none; border-style:none; width:312px; height:332px; float:none; }
|
|
img_whs8 { border:none; width:150px; height:129px; border-style:none; }
|
|
p.whs9 { font-family:'Times New Roman' , serif; font-size:14pt; }
|
|
img_whs10 { border:none; border-style:none; width:312px; height:376px; float:none; }
|
|
img_whs11 { border:none; width:150px; height:142px; border-style:none; }
|
|
img_whs12 { border:none; border-style:none; width:312px; height:315px; float:none; }
|
|
img_whs13 { border:none; width:150px; height:137px; border-style:none; }
|
|
p.whs14 { margin-left:40px; font-weight:bold; }
|
|
img_whs15 { border:none; width:150px; height:96px; border-style:none; }
|
|
img_whs16 { border:none; border-style:none; width:312px; height:402px; float:none; }
|
|
p.whs17 { font-size:12pt; margin-left:40px; }
|
|
img_whs18 { border:none; width:150px; height:119px; border-style:none; }
|
|
-->
|
|
</style><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; }
|
|
-->
|
|
</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>
|
|
</head>
|
|
<body><script type="text/javascript" language="javascript1.2">
|
|
<!--
|
|
if (window.gbWhTopic)
|
|
{
|
|
if (window.addTocInfo)
|
|
{
|
|
addButton("show",BTN_TEXT,"Show","","","","",0,0,"","","");
|
|
|
|
}
|
|
if (window.writeBtnStyle)
|
|
writeBtnStyle();
|
|
|
|
if (window.writeIntopicBar)
|
|
writeIntopicBar(1);
|
|
|
|
if (window.setRelStartPage)
|
|
{
|
|
setRelStartPage("../geom.htm");
|
|
|
|
autoSync(1);
|
|
sendSyncInfo();
|
|
sendAveInfoOut();
|
|
}
|
|
}
|
|
else
|
|
if (window.gbIE4)
|
|
document.location.reload();
|
|
//-->
|
|
</script>
|
|
<h1>Constructing primitives</h1>
|
|
|
|
<p><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"><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_whs1"> </font></span><span style="font-size: 12pt; font-weight: normal;"><font size=3 style="font-size:12pt;">In
|
|
GEOM you can create different types of primitive geometrical objects </font></span></b>(3D
|
|
elements):</p>
|
|
|
|
<p> </p>
|
|
|
|
<ul type="disc" class="whs2">
|
|
|
|
<li class=kadov-p><p><a href="#box">Box</a></p></li>
|
|
|
|
<li class=kadov-p><p><a href="#cylinder">Cylinder</a></p></li>
|
|
|
|
<li class=kadov-p><p><a href="#sphere">Sphere</a></p></li>
|
|
|
|
<li class=kadov-p><p><a href="#torus">Torus</a></p></li>
|
|
|
|
<li class=kadov-p><p><a href="#cone">Cone</a></p></li>
|
|
</ul>
|
|
|
|
<p> </p>
|
|
|
|
<p class=TODO>To construct primitive geometrical objects:</p>
|
|
|
|
<p class=TODO> </p>
|
|
|
|
<p class="whs3">In the main menu select <span style="font-weight: bold;"><B>New
|
|
Entity > Primitives</B></span><span>.</span></p>
|
|
|
|
<p> </p>
|
|
|
|
<p class="whs4"><b style="font-weight: bold;"><a NAME=box
|
|
style="font-size: 14pt;"><img src="salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image99.gif" width="20px" height="20px" border="0" class="img_whs5"><font style="font-size: 14pt;"
|
|
size=4> Box</font></a></b></p>
|
|
|
|
<p class="whs4"> </p>
|
|
|
|
<p><b style="font-weight: bold;">Description:</b> Creates a box.</p>
|
|
|
|
<p> </p>
|
|
|
|
<p><b style="font-weight: bold;">Result:</b> GEOM_Object (SOLID).</p>
|
|
|
|
<p> </p>
|
|
|
|
<p><b style="font-weight: bold;">TUI Command :</b> <span style="font-style: italic;"><I>geompy.MakeBox(X1,
|
|
Y1, Z1, X2, Y2, Z2)</I></span>, where
|
|
(X1, Y1, X2) and (X2, Y2, Z2) are coordinates of two points which define
|
|
a diagonal of the box.</p>
|
|
|
|
<p> </p>
|
|
|
|
<p><b style="font-weight: bold;">Arguments:</b></p>
|
|
|
|
<ul type="disc" class="whs2">
|
|
|
|
<li class=kadov-p><p><b style="font-weight: bold;">1st Constructor
|
|
:</b> <span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">Name + </font></span>2 vertices (opposite
|
|
corners of the box).</p></li>
|
|
|
|
<li class=kadov-p><p><b style="font-weight: bold;">2nd Constructor
|
|
:</b> <span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">Name + </font></span>3 values (dimensions
|
|
at origin).</p></li>
|
|
</ul>
|
|
|
|
<p> </p>
|
|
|
|
<p><b style="font-weight: bold;">Dialog Box:</b></p>
|
|
|
|
<p> </p>
|
|
|
|
<p class="whs3"><img src="../pics/box1.png" x-maintain-ratio="TRUE" width="312px" height="324px" border="0" class="img_whs6"> <img src="../pics/box2.png" x-maintain-ratio="TRUE" width="312px" height="332px" border="0" class="img_whs7"></p>
|
|
|
|
<p> </p>
|
|
|
|
<p><b style="font-weight: bold;">Example:</b></p>
|
|
|
|
<p> </p>
|
|
|
|
<p class="whs3"><img src="../image94.jpg" width="150px" height="129px" border="0" class="img_whs8"></p>
|
|
|
|
<p> </p>
|
|
|
|
<p> </p>
|
|
|
|
<p class="whs9"><a NAME=cylinder
|
|
style="font-size: 14pt;"><img src="salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image100.gif" width="20px" height="20px" border="0" class="img_whs5"><b><font style="font-size: 14pt;"
|
|
size=4> Cylinder</font></b></a></p>
|
|
|
|
<p class="whs9"> </p>
|
|
|
|
<p><b style="font-weight: bold;">Description:</b> Creates a cylinder.</p>
|
|
|
|
<p> </p>
|
|
|
|
<p><b style="font-weight: bold;">Result:</b> GEOM_Object (solid).</p>
|
|
|
|
<p> </p>
|
|
|
|
<p><b style="font-weight: bold;">TUI Command:</b> <span style="font-style: italic;"><I>geompy.MakeCylinder(Point,
|
|
Axis, Radius, Height)</I></span>, where Point is a central point of the cylinder
|
|
base, Axis (vector value) is an axis of the cylinder, Radius and Height
|
|
are correspondingly a radius and a height of the cylinder.</p>
|
|
|
|
<p> </p>
|
|
|
|
<p><b style="font-weight: bold;">Arguments:</b></p>
|
|
|
|
<ul type="disc" class="whs2">
|
|
|
|
<li class=kadov-p><p><b style="font-weight: bold;">1st Constructor:</b>
|
|
<span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">Name + </font></span>1 vertex + 1 vector + 2 values
|
|
(Dimensions: radius and height).</p></li>
|
|
|
|
<li class=kadov-p><p><b style="font-weight: bold;">2nd Constructor:</b>
|
|
<span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">Name + </font></span>2 values (Dimensions at origin:
|
|
radius and height).</p></li>
|
|
</ul>
|
|
|
|
<p> </p>
|
|
|
|
<p><b style="font-weight: bold;">Dialog Box:</b></p>
|
|
|
|
<p> </p>
|
|
|
|
<p class="whs3"><img src="../pics/cylinder1.png" x-maintain-ratio="TRUE" width="312px" height="376px" border="0" class="img_whs10"> <img src="../pics/cylinder2.png" x-maintain-ratio="TRUE" width="312px" height="376px" border="0" class="img_whs10"></p>
|
|
|
|
<p> </p>
|
|
|
|
<p><b style="font-weight: bold;">Example:</b></p>
|
|
|
|
<p> </p>
|
|
|
|
<p class="whs3"><img src="../image95.jpg" width="150px" height="142px" border="0" class="img_whs11"></p>
|
|
|
|
<p class="whs3"> </p>
|
|
|
|
<p> </p>
|
|
|
|
<p class="whs4"><a NAME=sphere
|
|
style="font-size: 14pt;"><img src="salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image101.gif" width="20px" height="20px" border="0" class="img_whs5"><b><font style="font-size: 14pt;"
|
|
size=4> Sphere</font></b></a></p>
|
|
|
|
<p class="whs4"> </p>
|
|
|
|
<p><b style="font-weight: bold;">Description:</b> Creates a sphere.</p>
|
|
|
|
<p> </p>
|
|
|
|
<p><b style="font-weight: bold;">Result:</b> GEOM_Object (solid).</p>
|
|
|
|
<p> </p>
|
|
|
|
<p><b style="font-weight: bold;">TUI Command:</b> <span style="font-style: italic;"><I>geompy.MakeSphere(Point,
|
|
Radius)</I></span>, where Point is a center of the sphere and Radius is a
|
|
radius of the sphere.</p>
|
|
|
|
<p> </p>
|
|
|
|
<p><b style="font-weight: bold;">Arguments:</b></p>
|
|
|
|
<ul type="disc" class="whs2">
|
|
|
|
<li class=kadov-p><p><b style="font-weight: bold;">1st Constructor
|
|
:</b> <span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">Name + </font></span>1 vertex + 1 value
|
|
(Radius).</p></li>
|
|
|
|
<li class=kadov-p><p><b style="font-weight: bold;">2nd Constructor
|
|
:</b> <span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">Name + </font></span>1 value
|
|
(Radius from the origin).</p></li>
|
|
</ul>
|
|
|
|
<p> </p>
|
|
|
|
<p><b style="font-weight: bold;">Dialog Box:</b></p>
|
|
|
|
<p> </p>
|
|
|
|
<p class="whs3"><img src="../pics/sphere1.png" x-maintain-ratio="TRUE" width="312px" height="315px" border="0" class="img_whs12"> <img src="../pics/sphere2.png" x-maintain-ratio="TRUE" width="312px" height="315px" border="0" class="img_whs12"></p>
|
|
|
|
<p> </p>
|
|
|
|
<p><b style="font-weight: bold;">Example:</b></p>
|
|
|
|
<p> </p>
|
|
|
|
<p class="whs3"><img src="../image96.jpg" width="150px" height="137px" border="0" class="img_whs13"></p>
|
|
|
|
<p class="whs14"> </p>
|
|
|
|
<p> </p>
|
|
|
|
<p class="whs4"><a NAME=torus
|
|
style="font-size: 14pt;"><img src="salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image102.gif" width="20px" height="20px" border="0" class="img_whs5"><b><font style="font-size: 14pt;"
|
|
size=4> Torus</font></b></a></p>
|
|
|
|
<p class="whs4"> </p>
|
|
|
|
<p><b style="font-weight: bold;">Description:</b> Creates a torus.</p>
|
|
|
|
<p> </p>
|
|
|
|
<p><b style="font-weight: bold;">Result:</b> GEOM_Object (solid).</p>
|
|
|
|
<p> </p>
|
|
|
|
<p><b style="font-weight: bold;">TUI Command:</b> <span style="font-style: italic;"><I>geompy.MakeTorus(Point,
|
|
Vector, RadiusMajor, RadiusMinor)</I></span>, where Point is a central point
|
|
of the torus, Vector is an axis of symmetry, RadiusMajor and RadiusMinor
|
|
are correspondingly
|
|
a major and minor radiuses of the torus.</p>
|
|
|
|
<p> </p>
|
|
|
|
<p><b style="font-weight: bold;">Arguments:</b></p>
|
|
|
|
<ul type="disc" class="whs2">
|
|
|
|
<li class=kadov-p><p><b style="font-weight: bold;">1st Constructor:</b>
|
|
<span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">Name + </font></span>1 vertex + 1 vector (for
|
|
direction) + 2 values (1 & 2 Radius).</p></li>
|
|
|
|
<li class=kadov-p><p><b style="font-weight: bold;">2nd Constructor:</b>
|
|
<span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">Name + </font></span>2 values (1 & 2 Radius
|
|
from the origin).</p></li>
|
|
</ul>
|
|
|
|
<p> </p>
|
|
|
|
<p><b style="font-weight: bold;">Dialog Box:</b></p>
|
|
|
|
<p> </p>
|
|
|
|
<p class="whs3"><img src="../pics/torus1.png" x-maintain-ratio="TRUE" width="312px" height="376px" border="0" class="img_whs10"> <img src="../pics/torus2.png" x-maintain-ratio="TRUE" width="312px" height="376px" border="0" class="img_whs10"></p>
|
|
|
|
<p> </p>
|
|
|
|
<p><b style="font-weight: bold;">Example:</b></p>
|
|
|
|
<p class="whs3"> </p>
|
|
|
|
<p class="whs3"><img src="../image97.jpg" width="150px" height="96px" border="0" class="img_whs15"></p>
|
|
|
|
<p> </p>
|
|
|
|
<p> </p>
|
|
|
|
<p class="whs4"><a NAME=cone
|
|
style="font-size: 14pt;"><img src="salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image103.gif" width="20px" height="20px" border="0" class="img_whs5"><b><font style="font-size: 14pt;"
|
|
size=4> Cone</font></b></a></p>
|
|
|
|
<p class="whs4"> </p>
|
|
|
|
<p><b style="font-weight: bold;">Description:</b> Creates a cone.</p>
|
|
|
|
<p> </p>
|
|
|
|
<p><b style="font-weight: bold;">Result:</b> GEOM_Object (SOLID).</p>
|
|
|
|
<p> </p>
|
|
|
|
<p><b style="font-weight: bold;">TUI Command:</b> <span style="font-style: italic;"><I>geompy.MakeCone(Point,
|
|
Axis, Radius1, Radius2)</I></span>, where Point is a central point of the
|
|
cone base, Axis (vector value) is an axis of the cone, Radius1 and Radius2
|
|
are correspondingly the first and the second radiuses of the cone</p>
|
|
|
|
<p> </p>
|
|
|
|
<p><b style="font-weight: bold;">Arguments:</b></p>
|
|
|
|
<ul type="disc" class="whs2">
|
|
|
|
<li class=kadov-p><p><b style="font-weight: bold;">1st Constructor:</b>
|
|
<span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">Name + </font></span>1 vertex + 1 vector (for
|
|
direction) + 3 values (Radius of the base part, radius of the upper part,
|
|
height).</p></li>
|
|
|
|
<li class=kadov-p><p><b style="font-weight: bold;">2nd Constructor:</b>
|
|
<span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">Name + </font></span>3 values (Radius of the base
|
|
part, radius of the upper part, height).</p></li>
|
|
</ul>
|
|
|
|
<p> </p>
|
|
|
|
<p><b style="font-weight: bold;">Dialog Box:</b></p>
|
|
|
|
<p> </p>
|
|
|
|
<p class="whs3"><img src="../pics/cone1.png" x-maintain-ratio="TRUE" width="312px" height="402px" border="0" class="img_whs16"> <img src="../pics/cone2.png" x-maintain-ratio="TRUE" width="312px" height="402px" border="0" class="img_whs16"></p>
|
|
|
|
<p> </p>
|
|
|
|
<p><b style="font-weight: bold;">Example:</b></p>
|
|
|
|
<p> </p>
|
|
|
|
<p class="whs17"><img src="../image98.jpg" width="150px" height="119px" border="0" class="img_whs18"></p>
|
|
|
|
<script type="text/javascript" language="javascript1.2">
|
|
<!--
|
|
if (window.writeIntopicBar)
|
|
writeIntopicBar(0);
|
|
//-->
|
|
</script>
|
|
</body>
|
|
</html>
|