geom/doc/salome/gui/GEOM/sketcher.htm

227 lines
8.1 KiB
HTML
Raw Normal View History

2004-12-01 10:39:14 +00:00
<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
<html>
<head>
<title>Sketcher</title>
2004-12-17 11:18:33 +00:00
<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">
2004-12-01 10:39:14 +00:00
<!--
if (navigator.appName !="Netscape")
{ document.write("<link rel='stylesheet' href='default.css'>");}
//-->
</script>
<style type="text/css">
<!--
2005-11-24 15:34:00 +00:00
img_whs1 { border:none; float:none; width:30px; height:30px; border-style:none; }
2004-12-17 11:18:33 +00:00
p.whs2 { font-size:12pt; }
2005-11-24 15:34:00 +00:00
p.whs3 { margin-left:108px; font-size:12pt; }
ul.whs4 { list-style:disc; }
p.whs5 { margin-left:40px; font-size:12pt; }
img_whs6 { border:none; width:321px; height:496px; float:none; border-style:none; }
2004-12-17 11:18:33 +00:00
p.whs7 { font-size:12pt; margin-left:40px; text-indent:-40px; }
p.whs8 { font-size:12pt; margin-left:40px; text-indent:-40px; font-weight:bold; }
p.whs9 { font-size:12pt; text-indent:-40px; font-weight:bold; margin-left:80px; }
img_whs10 { border:none; width:200px; height:200px; border-style:none; }
2004-12-01 10:39:14 +00:00
-->
2004-12-17 11:18:33 +00:00
</style><script type="text/javascript" language="JavaScript">
2004-12-01 10:39:14 +00:00
<!--
if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))
{
var strNSS = "<style type='text/css'>";
2004-12-17 11:18:33 +00:00
strNSS += "p.whs7 {text-indent:1pt; }";
strNSS += "p.whs8 {text-indent:1pt; }";
strNSS += "p.whs9 {text-indent:1pt; }";
2004-12-01 10:39:14 +00:00
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">
<!--
2004-12-17 11:18:33 +00:00
div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }
p.WebHelpNavBar { text-align:right; }
2004-12-01 10:39:14 +00:00
-->
2004-12-17 11:18:33 +00:00
</style><script type="text/javascript" language="javascript1.2" src="whmsg.js"></script>
2004-12-01 10:39:14 +00:00
<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">
2004-12-01 10:39:14 +00:00
<!--
if (window.gbWhTopic)
{
if (window.setRelStartPage)
2004-12-01 10:39:14 +00:00
{
addTocInfo("Geometry module\nCreating geometrical objects\nSketcher");
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");
2004-12-01 10:39:14 +00:00
}
if (window.setRelStartPage)
{
setRelStartPage("index.htm");
2004-12-01 10:39:14 +00:00
2004-12-17 11:18:33 +00:00
autoSync(1);
2004-12-01 10:39:14 +00:00
sendSyncInfo();
sendAveInfoOut();
}
2004-12-01 10:39:14 +00:00
}
else
2004-12-17 11:18:33 +00:00
if (window.gbIE4)
document.location.reload();
2004-12-01 10:39:14 +00:00
//-->
</script>
</head>
<body><script type="text/javascript" language="javascript1.2">
<!--
if (window.writeIntopicBar)
writeIntopicBar(4);
//-->
</script>
2004-12-01 10:39:14 +00:00
<h1>Sketcher</h1>
<p><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"><b><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"></b></font></span>Sketcher
allows to create curves of 2 types: line segment and arc. By default,
the start point of the curve is located at the point of origin of the
reference coordinate system and the curve lies in the plane <span style="font-style: italic;"><I>XOY</I></span>.
&nbsp;The end
of the curve is defined by means of &quot;destination&quot;, which can
be a destination point (for segment only) or destination direction coupled
with length of a segment or angle and radius of an arc.</p>
2004-12-01 10:39:14 +00:00
<p>&nbsp;</p>
<p>Sketcher is able to create planar curves only. Therefore, it is necessary
to select a working plane before starting a sketch (by default, the plane
<span style="font-style: italic;"><I>XOY</I></span>
is used). Sketcher creates curves lying in the current working plane (<span
style="font-style: italic;"><I>New Entity -&gt; Basic -&gt; Working Plane</I></span>).</p>
2004-12-01 10:39:14 +00:00
<p>&nbsp;</p>
<p>This functionality is available from the main menu via <span style="font-style: italic;"><I>New
Entity -&gt; Sketch.</I></span></p>
<p>&nbsp;</p>
<p class="whs2"><b><span style="font-weight: normal;">T</span></b><b><span
style="font-weight: normal;">he</span> Result <span style="font-weight: normal;">of
the operation will be a</span></b><b> <span style="font-weight: bold;"><B>GEOM_Object</b>.</B></span></p>
2004-12-01 10:39:14 +00:00
<p>&nbsp;</p>
2004-12-01 10:39:14 +00:00
<p class="whs2"><b style="font-weight: bold;">TUI Command:</b><i>
</i><span style="font-style: italic;"><I>geompy.MakeSketcher(Command,
WorkingPlane)</I></span></p>
2005-11-24 15:34:00 +00:00
<p class="whs3">This algorithm creates
a sketcher (wire or face), following the textual description, passed through
the Command argument. The edges of the resulting wire or face will be
arcs of circles and/or linear segments.</p>
<p class="whs3"><span style="font-style: italic;"><I>Command</I></span>
is a string, defining the sketcher by the coordinates of points in the
local working plane.</p>
2005-11-24 15:34:00 +00:00
<p class="whs3"><span style="font-style: italic;"><I>WorkingPlane</I></span>
can be a plane or a planar face. The plane is defined by the <span style="font-style: italic;"><I>xyz</I></span>
coordinates of three non-coincident points. The planar face is an existing
&nbsp;GEOM_Object.</p>
2004-12-01 10:39:14 +00:00
<p class="whs2">&nbsp;</p>
<p class="whs2"><b style="font-weight: bold;">Arguments:</b>
</p>
2004-12-01 10:39:14 +00:00
<p class="whs2"><span><font size=3 style="font-size:12pt;">1. Element type (segment or arc).</font></span></p>
<p class="whs2">2. Destination type (point or direction).</p>
<p class="whs2">3. <span>Destination point by means of:</span></p>
2005-11-24 15:34:00 +00:00
<ul type="disc" class="whs4">
2004-12-01 10:39:14 +00:00
<li class=kadov-p><p class="whs2">absolute coordinates
X,Y;</p></li>
<li class=kadov-p><p class="whs2">relative coordinates
DX, DY
(with respect to the current point);</p></li>
2004-12-01 10:39:14 +00:00
<li class=kadov-p><p class="whs2">selection of an existing
point.</p></li>
</ul>
<p class="whs2">4. Destination direction by means of:</p>
2005-11-24 15:34:00 +00:00
<ul type="disc" class="whs4">
2004-12-01 10:39:14 +00:00
<li class=kadov-p><p class="whs2">angle between the new
segment and the previous one;</p></li>
<li class=kadov-p><p class="whs2">perpendicular to the
previous segment (same as previous, but angle is predefined and is equal
to 90 degrees);</p></li>
<li class=kadov-p><p class="whs2">tangent to the previous
segment;</p></li>
<li class=kadov-p><p class="whs2">vector components DX,
2004-12-01 10:39:14 +00:00
DY.</p></li>
</ul>
<p class="whs2">5. Parameters of an element (for segment :
length or target X or Y coordinate value, for arc : radius and angle).</p>
<p class="whs2">&nbsp;</p>
<p class="whs2"><b style="font-weight: bold;">Dialog Box:</b></p>
2004-12-01 10:39:14 +00:00
<p class="whs2">&nbsp;</p>
2005-11-24 15:34:00 +00:00
<p class="whs5"><img src="pics/neo-scetcher1.png" x-maintain-ratio="TRUE" width="321px" height="496px" border="0" class="img_whs6"> &nbsp;&nbsp;<img src="pics/neo-scetcher2.png" x-maintain-ratio="TRUE" width="321px" height="496px" border="0" class="img_whs6"></p>
2004-12-01 10:39:14 +00:00
<p class="whs7">&nbsp;</p>
<p class="whs8">Example:</p>
<p class="whs9">&nbsp;</p>
<p class="whs9"><img src="image204.jpg" width="200px" height="200px" border="0" class="img_whs10"> &nbsp;&nbsp;<img src="image206.jpg" width="200px" height="200px" border="0" class="img_whs10"></p>
2004-12-01 10:39:14 +00:00
2005-11-24 15:34:00 +00:00
<p class="whs9">&nbsp;</p>
<p class="whs2">Our <span style="font-weight: bold;"><B>TUI Scripts</B></span>
provide you with useful examples of the use of <a href="sketcher_tui.htm">Sketcher</a>.
</p>
<p>&nbsp;</p>
2004-12-01 10:39:14 +00:00
<script type="text/javascript" language="javascript1.2">
<!--
if (window.writeIntopicBar)
writeIntopicBar(0);
//-->
</script>
</body>
</html>