Porting GUI documentation on Doxygen tool.

This commit is contained in:
mzn 2007-10-10 13:48:35 +00:00
parent 0600c4b484
commit 4735affc4f
486 changed files with 6712 additions and 27977 deletions

View File

@ -1,174 +0,0 @@
<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
<html>
<head>
<title>About viewing meshes</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; width:25px; height:24px; border-style:none; }
p.whs2 { font-weight:normal; }
p.whs3 { margin-left:40px; }
img_whs4 { border:none; width:404px; height:413px; border-style:none; }
ul.whs5 { list-style:disc; }
p.whs6 { font-weight:bold; }
-->
</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; }
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("MESH module\nViewing meshes\nViewing meshes");
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>Viewing meshes</h1>
<p>After definition of algorithms and hypotheses a new mesh is listed in
the Object Browser. Right-click on it and select <img src="image28.gif" width="25px" height="24px" border="0" class="img_whs1"> <span
style="font-weight: bold;"><B>Compute</B></span> - the mesh will be automatically
displayed in the <span style="font-weight: bold;"><B>VTK 3D Viewer.</B></span>
Alternatively click<span style="font-weight: bold;"><B> Display only</B></span>
to hide all other objects at the same time. </p>
<p>&nbsp;</p>
<p class="whs2"><span style="font-weight: bold;"><B>VTK 3D
Viewer</B></span> is detailly described in the documentation on <span style="font-weight: bold;"><B>GUI
module</B></span>.</p>
<p>After the mesh has appeared in the Viewer, you can select it with left
mouse click and &nbsp;get
information about it, change its presentation parameters and access to
other useful options by right-clicking on the selected mesh<span style="font-weight: bold;"><B>.</B></span></p>
<p>&nbsp;&nbsp;</p>
<p class="whs3"><img src="image15.jpg" width="404px" height="413px" border="0" class="img_whs4"></p>
<p>&nbsp;</p>
<ul type="disc" class="whs5">
<li class=kadov-p><p><span style="font-weight: bold;"><B>Erase all</B></span>
&nbsp;- allows
to hide all objects in the viewer</p></li>
<li class=kadov-p><p><span style="font-weight: bold;"><B>Update</B></span>
- refreshes the presentation of your mesh in the Object Browser, applying
all recent changes.</p></li>
<li class=kadov-p><p><a href="files/viewing_mesh_info.htm#advanced infos" style="font-weight: bold;">Advanced Mesh Infos</a>
- &nbsp;provides
more detailed information about the mesh. </p></li>
<li class=kadov-p><p class="whs6"><a href="files/viewing_mesh_info.htm#standard_infos">Standard
Mesh Infos</a> - <span style="font-weight: normal;">provides basic information
about the mesh.</span></p></li>
<li class=kadov-p><p><span style="font-weight: bold;"><B><a href="files/displaying_nodes_numbers.htm">Numbering</a></B></span>
&nbsp;- allows
to display the ID numbers of all meshing elements or nodes composing your
mesh in the viewer.</p></li>
<li class=kadov-p><p class="whs6"><a href="presentation.htm" style="font-weight: bold;">Display
Mode</a> - <span style="font-weight: normal;">allows to select between
Wireframe, Shading and Nodes presentation.</span></p></li>
<li class=kadov-p><p><a href="display_entity.htm" style="font-weight: bold;">Display Entity</a>
- allows to display Faces, Edges or both. </p></li>
<li class=kadov-p><p><span style="font-weight: bold;"><B>Colors / Size</B></span>
- allows to select color and size of meshes.</p></li>
<li class=kadov-p><p><a href="transparency.htm" style="font-weight: bold;">Transparency</a>
- allows to change the transparency of mesh elements.</p></li>
<li class=kadov-p><p><a href="clipping.htm" style="font-weight: bold;">Clipping</a> - allows
to create cross-sections of the selected objects.</p></li>
<li class=kadov-p><p><a href="files/about_quality_controls.htm" style="font-weight: bold;">Quality Controls</a>
- graphically presents various information about meshes.</p></li>
<li class=kadov-p><p><span style="font-weight: bold;"><B>Erase</B></span>
- allows to hide the selected mesh from the viewer. </p></li>
<li class=kadov-p><p><span style="font-weight: bold;"><B>Display Only</B></span>
-allows to display only the selected mesh, hiding all other from the viewer.</p></li>
<li class=kadov-p><p><span style="font-weight: bold;"><B>Dump view</B></span>
- exports an object from the viewer in bmp, png, jpg or jpeg image format.
</p></li>
<li class=kadov-p><p><span style="font-weight: bold;"><B>Change background</B></span>
- allows to redefine the background color. By default it is black. &nbsp;</p></li>
</ul>
<p>&nbsp;</p>
<script type="text/javascript" language="javascript1.2">
<!--
if (window.writeIntopicBar)
writeIntopicBar(0);
//-->
</script>
</body>
</html>

View File

@ -1,124 +0,0 @@
<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
<html>
<head>
<title>Adding Quadratic Nodes and Elements</title>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
<meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com"><style type="text/css">
<!--
p.whs1 { margin-left:40px; }
img_whs2 { border:none; width:148px; height:168px; border-style:none; }
img_whs3 { border:none; width:332px; height:350px; float:none; 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; }
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("MESH module\nModifying meshes\nAdding quadratic elements");
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>Adding Quadratic Elements</h1>
<p>MESH modules allows you to work with <span style="font-weight: bold;"><B>Quadratic
Elements</B></span>.</p>
<p>Quadratic Edge in not a straight but a broken line and can be defined
by three points: first, middle and last. All more complex <span style="font-weight: bold;"><B>Quadratic
Elements</B></span> differ from ordinary ones in that they consist of Quadratic
Edges.</p>
<p class=TODO
style="font-family: 'Arial Black', sans-serif; font-style: italic;">To
add a quadratic element to your mesh:</p>
<p class="whs1">1. Select your mesh in the Object Browser
or in the 3D viewer.</p>
<p class="whs1">2. From the <span style="font-weight: bold;"><B>Modification
</B></span>menu choose the <span style="font-weight: bold;"><B>Add </B></span>item
and select one of the following: </p>
<p class="whs1"><img src="image152.gif" width="148px" height="168px" border="0" class="img_whs2"></p>
<p class="whs1">To create any <span style="font-weight: bold;"><B>Quadratic
Element </B></span>specify the nodes which will form your triangle by selecting
them in the 3D viewer with pressed Shift button. Their numbers will appear
in the dialog box as <span style="font-weight: bold;"><B>Corner Nodes</B></span>
(alternatively you can just input numbers in this field without selection).The
edges formed by the corner nodes will appear in the table. To define the
middle nodes for each edge double-click on the respective field and input
the number of the node. All edges and the object formed by them will be
displayed in the Object browser. When all edges are defined you will be
able to click <span style="font-weight: bold;"><B>OK</B></span> or <span style="font-weight: bold;"><B>Apply</B></span>
button to add the element to the mesh. </p>
<p class="whs1">&nbsp;<img src="pics/aqt.png" x-maintain-ratio="TRUE" width="332px" height="350px" border="0" class="img_whs3"></p>
<p class="whs1"><span style="font-weight: bold;"><B>Reverse</B></span>
button for Quadratic Edges switches the first and the last nodes. <span
style="margin-left: 40px;">For all other elements it reverses the element.
</span></p>
<p class="whs1">&nbsp;</p>
<script type="text/javascript" language="javascript1.2">
<!--
if (window.writeIntopicBar)
writeIntopicBar(0);
//-->
</script>
</body>
</html>

View File

@ -1,203 +0,0 @@
<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
<html>
<head>
<title>Aspect ratio 3D</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; width:416px; height:385px; border-style:none; }
img_whs2 { border:none; width:30px; height:30px; float:none; border-style:none; }
ul.whs3 { list-style:disc; }
img_whs4 { border:none; width:258px; height:246px; border-style:none; float:left; }
img_whs5 { border:none; width:133px; height:56px; border-style:none; }
img_whs6 { border:none; width:425px; height:192px; border-style:none; }
img_whs7 { border:none; width:89px; height:32px; border-style:none; }
img_whs8 { border:none; width:569px; height:386px; float:none; border-style:none; }
p.whs9 { margin-left:40px; }
img_whs10 { border:none; width:24px; height:26px; border-style:none; }
p.whs11 { margin-left:0px; }
-->
</style><script type="text/javascript" language="JavaScript">
<!--
if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))
{
var strNSS = "<style type='text/css'>";
strNSS += "p.whs11 {margin-left: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("MESH module\nQuality controls\nAspect ratio 3D");
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>Aspect ratio 3D</h1>
<p><img src="image86.jpg" width="416px" height="385px" border="0" class="img_whs1"></p>
<p>&nbsp;</p>
<p><img src="i_blue.jpg" x-maintain-ratio="TRUE" width="30px" height="30px" border="0" class="img_whs2"> The Aspect Ratio 3D mesh quality criterion calculates
the same parameter as the <a href="files/aspect_ratio.htm">Aspect ratio</a>
criterion, but it is applied to 3D mesh elements: tetrahedrons, pentahedrons,
hexahedrons, etc. &nbsp;</p>
<p>&nbsp;</p>
<ul type="disc" class="whs3">
<li class=kadov-p><p><img src="image20.gif" width="258px" height="246px" align="left" border="0" class="img_whs4">The <span style="font-weight: bold;"><B>Aspect
Ratio</B></span> of a <span style="font-weight: bold;"><B>tetrahedron</B></span>
3D element is calculated by the formula:</p></li>
</ul>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><img src="image19.gif" width="133px" height="56px" border="0" class="img_whs5">,</p>
<p>&nbsp;</p>
<p>where <span style="font-weight: bold; font-style: italic;"><I><B>S</B></I></span><span
style="font-weight: bold;
font-style: italic;
vertical-align: Sub;"><I><B>K</B></I></span> is the sum of surfaces of the faces
of &#1050; and <span style="font-weight: bold; font-style: italic;"><I><B>V</B></I></span><span
style="vertical-align: Sub;
font-weight: bold;
font-style: italic;"><I><B>K</B></I></span> is the volume of &#1050; :</p>
<p>&nbsp;</p>
<p><img src="image18.gif" width="425px" height="192px" border="0" class="img_whs6">T</p>
<p>&nbsp;</p>
<ul type="disc" class="whs3">
<li class=kadov-p><p>Other element types like quadrangle, pentahedron
and hexahedron use the following formula:</p></li>
</ul>
<p><img src="image30.gif" width="89px" height="32px" border="0" class="img_whs7"> , where <span style="font-weight: bold; font-style: italic;"><I><B>Q</B></I></span><span
style="vertical-align: Sub;
font-weight: bold;
font-style: italic;"><I><B>i</B></I></span> represents the value of <span style="font-weight: bold; font-style: italic;"><I><B>Q</B></I></span><span
style="vertical-align: Sub;
font-weight: bold;
font-style: italic;"><I><B>k</B></I></span> for all possible simplexes (of the
same dimension as the element) that compose the element.</p>
<p>For example, a hexahedron is split in 6 tetrahedrons, the <span style="font-weight: bold;"><B>Aspect
ratio 3D</B></span> is calculated for each of them, then the greatest <span
style="font-weight: bold; font-style: italic;"><I><B>Q</B></I></span><span style="vertical-align: Sub;
font-weight: bold;
font-style: italic;"><I><B>k</B></I></span> is considered to be the &nbsp;<span
style="font-weight: bold;"><B>Aspect ratio 3D</B></span>
criterion for the whole &nbsp;hexahedron.</p>
<p><img src="pics/image139.gif" x-maintain-ratio="TRUE" width="569px" height="386px" border="0" class="img_whs8"></p>
<p>&nbsp;</p>
<p class=TODO>To apply the Aspect Ratio 3D quality criterion to your mesh:</p>
<p class=TODO>&nbsp;</p>
<p class="whs9">1. Display your mesh in the viewer.</p>
<p class="whs9">&nbsp;</p>
<p class="whs9">2. Choose <span style="font-weight: bold;"><B>Controls
&gt; Aspect Ratio 3D </B></span>or click <img src="image144.gif" width="24px" height="26px" border="0" class="img_whs10"> button of the toolbar.
Your mesh will be displayed in the viewer with its elements colored according
to the applied mesh quality control criterion:</p>
<p>&nbsp;</p>
<p class="whs11"><span style="font-weight: bold;"><B>See Also</B></span>
a sample TUI Script of an <span style="font-weight: bold;"><B><a href="quality_controls.htm#bookmark11">Aspect
Ratio 3D</B></span> quality control</a> operation. &nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<script type="text/javascript" language="javascript1.2">
<!--
if (window.writeIntopicBar)
writeIntopicBar(0);
//-->
</script>
</body>
</html>

View File

@ -1,121 +0,0 @@
<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
<html>
<head>
<title>Borders at multi-connection</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; width:30px; height:30px; float:none; border-style:none; }
p.whs2 { margin-left:40px; }
img_whs3 { border:none; width:223px; height:213px; border-style:none; }
p.whs4 { margin-left:0px; }
-->
</style><script type="text/javascript" language="JavaScript">
<!--
if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))
{
var strNSS = "<style type='text/css'>";
strNSS += "p.whs4 {margin-left: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("MESH module\nQuality controls\nBorders at multi-connection");
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>Borders at multi-connection</h1>
<p><img src="i_blue.jpg" x-maintain-ratio="TRUE" width="30px" height="30px" border="0" class="img_whs1">This mesh quality control highlights borders of faces
consisting of edges belonging to several faces. The amount of faces is
specified by user.</p>
<p>&nbsp;</p>
<p class="whs2"><img src="image151.gif" width="223px" height="213px" border="0" class="img_whs3"></p>
<p>&nbsp;</p>
<p>In this picture the borders at multi-connection are displayed in blue.</p>
<p>&nbsp;</p>
<p class="whs4"><span style="font-weight: bold;"><B>See Also</B></span>
a sample TUI Script of a <a href="quality_controls.htm#bookmark1">Borders
at Multi-Connection quality control</a> operation. &nbsp;</p>
<p>&nbsp;</p>
<script type="text/javascript" language="javascript1.2">
<!--
if (window.writeIntopicBar)
writeIntopicBar(0);
//-->
</script>
</body>
</html>

View File

@ -1,115 +0,0 @@
<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
<html>
<head>
<title>Borders at multiconnection 2D</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; width:30px; height:30px; float:none; border-style:none; }
img_whs2 { border:none; width:420px; height:312px; border-style:none; }
p.whs3 { margin-left:0px; }
-->
</style><script type="text/javascript" language="JavaScript">
<!--
if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))
{
var strNSS = "<style type='text/css'>";
strNSS += "p.whs3 {margin-left: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("MESH module\nQuality controls\nBorders at multi-connection 2D");
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>Borders at multi-connection 2D</h1>
<p><img src="i_blue.jpg" x-maintain-ratio="TRUE" width="30px" height="30px" border="0" class="img_whs1">This mesh quality control highlights borders of elements
of mesh, consisting of edges belonging to several elements of mesh. </p>
<p>&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="image127.gif" width="420px" height="312px" border="0" class="img_whs2"></p>
<p>&nbsp;</p>
<p class="whs3"><span style="font-weight: bold;"><B>See Also</B></span>
a sample TUI Script of a <a href="quality_controls.htm#bookmark5">Borders
at Multi-Connection quality control</a> operation. &nbsp;</p>
<p>&nbsp;</p>
<script type="text/javascript" language="javascript1.2">
<!--
if (window.writeIntopicBar)
writeIntopicBar(0);
//-->
</script>
</body>
</html>

View File

@ -1,160 +0,0 @@
<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
<html>
<head>
<title>Building Compounds</title>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
<meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com"><style type="text/css">
<!--
p.whs1 { font-family:'Arial Black' , sans-serif; font-style:italic; }
p.whs2 { margin-left:40px; }
img_whs3 { border:none; width:25px; height:24px; border-style:none; }
p.whs4 { margin-left:80px; }
img_whs5 { border:none; width:420px; height:367px; float:none; border-style:none; }
ul.whs6 { list-style:disc; }
p.whs7 { margin-left:80px; margin-top:0pt; margin-bottom:0pt; }
p.whs8 { margin-top:0pt; margin-bottom:0pt; margin-left:120px; }
p.whs9 { margin-left:80px; margin-top:0pt; margin-bottom:0pt; font-weight:bold; }
p.whs10 { margin-top:0pt; margin-bottom:0pt; font-style:italic; margin-left:24px; }
img_whs11 { border:none; width:245px; height:257px; 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.whs7 {margin-top:1pt;margin-bottom:1pt; }";
strNSS += "p.whs8 {margin-top:1pt;margin-bottom:1pt; }";
strNSS += "p.whs9 {margin-top:1pt;margin-bottom:1pt; }";
strNSS += "p.whs10 {margin-top:1pt;margin-bottom: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("MESH module\nCreating meshes\nBuilding Compounds");
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>Building Compounds</h1>
<p>Compound Mesh is a combination of several meshes.</p>
<p class="whs1">&nbsp;To
Build a compound:</p>
<p class="whs2">From the <span style="font-weight: bold;"><B>Mesh</B></span>
menu select <span style="font-weight: bold;"><B>Build Compound</B></span> or
click <img src="image161.gif" width="25px" height="24px" border="0" class="img_whs3"> button in the toolbar. The following dialog box will
appear: </p>
<p class="whs4"><img src="pics/buildcompound.png" x-maintain-ratio="TRUE" width="420px" height="367px" border="0" class="img_whs5"></p>
<ul type="disc" class="whs6">
<li class=kadov-p><p class="whs7"><span style="font-weight: bold;"><B>Name</B></span>
- allows selecting the name of the resulting <span style="font-weight: bold;"><B>Compound</B></span></p></li>
<li class=kadov-p><p class="whs7"><span style="font-weight: bold;"><B>Meshes
</B></span>- allows selecting the meshes which will be concatenated. They
can be chosen in the Object Browser while holding <span style="font-weight: bold;"><B>Ctrl</B></span>
button.</p></li>
<li class=kadov-p><p class="whs7"><span style="font-weight: bold;"><B>Processing
identical groups</B></span> - allows selecting the method of processing the
namesake existing on the united meshes. They can be either </p></li>
<li class=kadov-p><p class="whs8"><span style="font-weight: bold;"><B>United</B></span>
- all elements of Group1
on Mesh_1 and
Group1 on Mesh_2
become the elements of Group1
on the Compound_Mesh,
or</p></li>
<li class=kadov-p><p class="whs8"><span style="font-weight: bold;"><B>Renamed</B></span>
- Group1 on
Mesh_1 becomes
Group1_1 and
Group1 on Mesh_2
becomes Group1_2.
See <span style="font-weight: bold;"><B><a href="grouping_elements.htm">Creating
Groups</a></B></span> for more information about groups. </p></li>
<li class=kadov-p><p class="whs9"><span style="font-weight: normal;">You
can simply unite meshes or choose to</span> Merge coincident nodes and
elements, <span style="font-weight: normal;">in which case it is possible
to define the</span> Tolerance <span style="font-weight: normal;">for
this operation.</span> &nbsp;</p></li>
</ul>
<p class="whs10">Example:</p>
<p class="whs4"><img src="image160.gif" width="245px" height="257px" border="0" class="img_whs11"></p>
<p>&nbsp;</p>
<script type="text/javascript" language="javascript1.2">
<!--
if (window.writeIntopicBar)
writeIntopicBar(0);
//-->
</script>
</body>
</html>

View File

@ -1,140 +0,0 @@
<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
<html>
<head>
<title>Clipping</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">
<!--
p.whs1 { margin-left:40px; }
img_whs2 { border:none; width:332px; height:327px; float:none; border-style:none; }
p.whs3 { font-weight:bold; margin-left:40px; }
img_whs4 { border:none; width:326px; height:199px; border-style:none; }
p.whs5 { font-weight:bold; }
img_whs6 { border:none; width:329px; height:210px; 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; }
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("MESH module\nViewing meshes\nClipping");
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>Clipping</h1>
<p>Using this menu you can create cross-section views (clipping planes)
of your mesh.</p>
<p>&nbsp;</p>
<p>To start, click on the New button. </p>
<p>&nbsp;</p>
<p class="whs1"><img src="pics/a-clipping2.png" x-maintain-ratio="TRUE" width="332px" height="327px" border="0" class="img_whs2"></p>
<p>&nbsp;</p>
<p>Now you can define the parameters of your cross-section: <span style="font-weight: bold;"><B>Orientation</B></span>
&nbsp;(X-Y, X-Z
or Y-Z); <span style="font-weight: bold;"><B>Distance </B></span>between the
opposite extremities of the object,<span style="font-weight: bold;"> <B></B></span>if
it is set to 0.5 the object is split in two halves; and <span style="font-weight: bold;"><B>Rotation</B></span>
(in angle degrees) <span style="font-weight: bold;"><B>around X (Y to Z)
</B></span>and<span style="font-weight: bold;"><B> around Y (X to Z)</B></span>.
If the <span style="font-weight: bold;"><B>Show preview</B></span> button is
on, you can see the clipping plane in the <span style="font-weight: bold;"><B>Object
window. </B></span></p>
<p>&nbsp;</p>
<p class="whs3"><img src="image79.jpg" width="326px" height="199px" border="0" class="img_whs4"></p>
<p class="whs5">&nbsp;</p>
<p class="whs5"><span style="font-weight: normal;">If the</span>
Auto Apply<span style="font-weight: normal;"> button is on, you can preview
the cross-section in the</span> Object window</p>
<p class="whs5">&nbsp;</p>
<p class="whs3"><img src="image99.gif" width="329px" height="210px" border="0" class="img_whs6"></p>
<p class="whs5">&nbsp;</p>
<p class="whs5"><span style="font-weight: normal;">To get
a new object from </span>Clipping, <span style="font-weight: normal;">click</span>
Ok. </p>
<p class="whs5">&nbsp;</p>
<p class="whs5">&nbsp;</p>
<script type="text/javascript" language="javascript1.2">
<!--
if (window.writeIntopicBar)
writeIntopicBar(0);
//-->
</script>
</body>
</html>

View File

@ -1,448 +0,0 @@
<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
<html>
<head>
<title>Constructing Meshes</title>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
<meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com"><style type="text/css">
<!--
p.whs1 { margin-top:0pt; margin-bottom:0pt; }
p.whs2 { margin-top:0pt; margin-bottom:0pt; font-family:'Lucida Console' , monospace; }
p.whs3 { margin-top:0pt; margin-bottom:0pt; font-family:'Times New Roman' , serif; }
p.whs4 { font-family:'Lucida Console' , monospace; margin-top:0px; margin-bottom:0px; }
p.whs5 { margin-top:0px; margin-bottom:0px; font-family:'Times New Roman' , serif; }
p.whs6 { margin-top:0px; margin-bottom:0px; }
p.whs7 { margin-top:0px; margin-bottom:0px; font-family:'Lucida Console' , monospace; }
-->
</style><script type="text/javascript" language="JavaScript">
<!--
if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))
{
var strNSS = "<style type='text/css'>";
strNSS += "p.whs1 {margin-top:1pt;margin-bottom:1pt; }";
strNSS += "p.whs2 {margin-top:1pt;margin-bottom:1pt; }";
strNSS += "p.whs3 {margin-top:1pt;margin-bottom:1pt; }";
strNSS += "p.whs4 {margin-top:1pt;margin-bottom:1pt; }";
strNSS += "p.whs5 {margin-top:1pt;margin-bottom:1pt; }";
strNSS += "p.whs6 {margin-top:1pt;margin-bottom:1pt; }";
strNSS += "p.whs7 {margin-top:1pt;margin-bottom: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("MESH module\nTUI Scripts\nCreating Meshes");
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>Creating Meshes</h1>
<p class="whs1">First of all see <a href="smesh.py_introduction.htm">Example
of 3d mesh generation</a>, which is an example of good python script style
for Mesh module. </p>
<p class="whs1">Other examples of python
scripts will be also updated soon to use smesh package instead of direct
usage of idl interface. </p>
<h3><a name=bookmark>Construction of a Mesh</a></h3>
<p class="whs2"><span style="font-family: 'Lucida Console', monospace;">import
geompy</span></p>
<p class="whs2">import smesh</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># create a box</p>
<p class="whs2">box = geompy.MakeBox(0.,
0., 0., 100., 200., 300.)</p>
<p class="whs2">idbox = geompy.addToStudy(box,
&quot;box&quot;)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># create a mesh</p>
<p class="whs2">tetra = smesh.Mesh(box,
&quot;MeshBox&quot;)</p>
<p class="whs2">&nbsp;</p>
<p class="whs2">algo1D = tetra.Segment()</p>
<p class="whs2">algo1D.NumberOfSegments(7)</p>
<p class="whs2">&nbsp;</p>
<p class="whs2">algo2D = tetra.Triangle()</p>
<p class="whs2">algo2D.MaxElementArea(800.)</p>
<p class="whs2">&nbsp;</p>
<p class="whs2">algo3D = tetra.Tetrahedron(smesh.NETGEN)</p>
<p class="whs2">algo3D.MaxElementVolume(900.)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># compute the mesh</p>
<p class="whs2">ret = tetra.Compute()</p>
<p class="whs2">if ret == 0:</p>
<p class="whs2">&nbsp;&nbsp;&nbsp;&nbsp;print
&quot;problem when computing the mesh&quot;</p>
<p class="whs2">else:</p>
<p class="whs2">&nbsp;&nbsp;&nbsp;&nbsp;print
&quot;mesh computed&quot;</p>
<p class="whs2">&nbsp;&nbsp;&nbsp;&nbsp;pass
</p>
<p class="whs2">&nbsp;</p>
<p class="whs2">&nbsp;</p>
<h3><a name=bookmark1>Construction of a Submesh</a></h3>
<p class="whs4"><span style="font-family: 'Lucida Console', monospace;">from
geompy import *</span></p>
<p class="whs4">import smesh</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># create a box</p>
<p class="whs4">box = MakeBoxDXDYDZ(10., 10., 10.)</p>
<p class="whs4">addToStudy(box, &quot;Box&quot;)</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># select one edge of
the box for definition of a local hypothesis</p>
<p class="whs4">p5 = MakeVertex(5., 0., 0.)</p>
<p class="whs4">EdgeX = GetEdgeNearPoint(box, p5)</p>
<p class="whs4">addToStudyInFather(box, EdgeX, &quot;Edge
[0,0,0 - 10,0,0]&quot;)</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># create a hexahedral
mesh on the box</p>
<p class="whs4">quadra = smesh.Mesh(box, &quot;Box : quadrangle
2D mesh&quot;)</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># create a regular
1D algorithm for the faces</p>
<p class="whs4">algo1D = quadra.Segment()</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># define &quot;NumberOfSegments&quot;
hypothesis to cut</p>
<p class="whs5"># all the edges in
a fixed number of segments</p>
<p class="whs4">algo1D.NumberOfSegments(4)</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># create a quadrangle
2D algorithm for the faces</p>
<p class="whs4">quadra.Quadrangle()</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># construct a submesh
on the edge with a local hypothesis</p>
<p class="whs4">algo_local = quadra.Segment(EdgeX)</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># define &quot;Arithmetic1D&quot;
hypothesis to cut the edge<span style="margin-top: 0px;
margin-bottom: 0px;
font-family: 'Times New Roman', serif;">
in several segments with increasing arithmetic length</span></p>
<p class="whs4">algo_local.Arithmetic1D(1, 4)</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># define &quot;Propagation&quot;
hypothesis that propagates all other hypotheses</p>
<p class="whs5"># on all edges of the
opposite side in case of quadrangular faces</p>
<p class="whs4">algo_local.Propagation()</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># compute the mesh</p>
<p class="whs4">quadra.Compute() </p>
<p class="whs4">&nbsp;</p>
<h3><a name=bookmark2>Editing of a mesh</a></h3>
<p class="whs4"><span style="font-family: 'Lucida Console', monospace;">import
geompy</span></p>
<p class="whs4">import smesh</p>
<p class="whs4">&nbsp;</p>
<p class="whs4">def PrintMeshInfo(theMesh):</p>
<p class="whs4">&nbsp;&nbsp;&nbsp;&nbsp;aMesh
= theMesh.GetMesh()</p>
<p class="whs4">&nbsp;&nbsp;&nbsp;&nbsp;print
&quot;Information about mesh:&quot;</p>
<p class="whs4">&nbsp;&nbsp;&nbsp;&nbsp;print
&quot;Number of nodes &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
&quot;, aMesh.NbNodes()</p>
<p class="whs4">&nbsp;&nbsp;&nbsp;&nbsp;print
&quot;Number of edges &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
&quot;, aMesh.NbEdges()</p>
<p class="whs4">&nbsp;&nbsp;&nbsp;&nbsp;print
&quot;Number of faces &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
&quot;, aMesh.NbFaces()</p>
<p class="whs4">&nbsp;&nbsp;&nbsp;&nbsp;print
&quot;Number of volumes &nbsp;&nbsp;&nbsp;&nbsp;:
&quot;, aMesh.NbVolumes()</p>
<p class="whs4">&nbsp;&nbsp;&nbsp;&nbsp;pass</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># create a box</p>
<p class="whs4">box = geompy.MakeBox(0., 0., 0., 20.,
20., 20.)</p>
<p class="whs4">geompy.addToStudy(box, &quot;box&quot;)</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># select one edge of
the box for definition of a local hypothesis</p>
<p class="whs4">subShapeList = geompy.SubShapeAll(box,
geompy.ShapeType[&quot;EDGE&quot;])</p>
<p class="whs4">edge = subShapeList[0]</p>
<p class="whs4">name = geompy.SubShapeName(edge, box)</p>
<p class="whs4">geompy.addToStudyInFather(box, edge, name)</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># create a mesh</p>
<p class="whs4">tria = smesh.Mesh(box, &quot;Mesh 2D&quot;)</p>
<p class="whs4">algo1D = tria.Segment()</p>
<p class="whs4">hyp1 = algo1D.NumberOfSegments(3)</p>
<p class="whs4">algo2D = tria.Triangle()</p>
<p class="whs4">hyp2 = algo2D.MaxElementArea(10.)</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># create a sub-mesh</p>
<p class="whs4">algo_local = tria.Segment(edge)</p>
<p class="whs4">hyp3 = algo_local.Arithmetic1D(1, 6)</p>
<p class="whs4">hyp4 = algo_local.Propagation()</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># compute the mesh</p>
<p class="whs4">tria.Compute()</p>
<p class="whs4">PrintMeshInfo(tria)</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># remove a local hypothesis</p>
<p class="whs4">mesh = tria.GetMesh()</p>
<p class="whs4">mesh.RemoveHypothesis(edge, hyp4)</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># compute the mesh</p>
<p class="whs4">tria.Compute()</p>
<p class="whs4">PrintMeshInfo(tria)</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># change the value
of the 2D hypothesis</p>
<p class="whs4">hyp2.SetMaxElementArea(2.)</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># compute the mesh</p>
<p class="whs4">tria.Compute()</p>
<p class="whs4">PrintMeshInfo(tria) </p>
<p class="whs6">&nbsp;</p>
<h3><a name=bookmark3>Export of a Mesh</a></h3>
<p class="whs7">import geompy</p>
<p class="whs7">import smesh</p>
<p class="whs6">&nbsp;</p>
<p class="whs6"># create a box</p>
<p class="whs7">box = geompy.MakeBox(0.,
0., 0., 100., 200., 300.)</p>
<p class="whs7">idbox = geompy.addToStudy(box,
&quot;box&quot;)</p>
<p class="whs6">&nbsp;</p>
<p class="whs6"># create a mesh</p>
<p class="whs7">tetra = smesh.Mesh(box,
&quot;MeshBox&quot;)</p>
<p class="whs6">&nbsp;</p>
<p class="whs7">algo1D = tetra.Segment()</p>
<p class="whs7">algo1D.NumberOfSegments(7)</p>
<p class="whs7">&nbsp;</p>
<p class="whs7">algo2D = tetra.Triangle()</p>
<p class="whs7">algo2D.MaxElementArea(800.)</p>
<p class="whs7">&nbsp;</p>
<p class="whs7">algo3D = tetra.Tetrahedron(smesh.NETGEN)</p>
<p class="whs7">algo3D.MaxElementVolume(900.)</p>
<p class="whs6">&nbsp;</p>
<p class="whs6"># compute the mesh</p>
<p class="whs7">tetra.Compute()</p>
<p class="whs6">&nbsp;</p>
<p class="whs6"># export the mesh in a
MED file</p>
<p class="whs7">tetra.ExportMED(&quot;/tmp/meshMED.med&quot;,
0) </p>
<script type="text/javascript" language="javascript1.2">
<!--
if (window.writeIntopicBar)
writeIntopicBar(0);
//-->
</script>
</body>
</html>

View File

@ -1,258 +0,0 @@
<html>
<head>
<title>Mesh Module Reference Manual</title>
<meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com">
<meta name="description" content="WebHelp 5.50">
</head>
<body>
<script language="JavaScript">
<!--
var gArrayCsh = new Array();
var gstrWindowOption = "";
var gstrURL = "";
var gbWithNavPane = false;
function CshEntityItem(strAliasId, nTopicNum, strUrl)
{
this.strAliasId = strAliasId;
this.nTopicNum = nTopicNum;
this.strUrl = strUrl;
}
//Try to get to topic number from hash string
function GetTopicNumberAuto(strMayBeNumber)
{
var nNum = -1;
if (strMayBeNumber.length >= 1)
{
var strTmp = strMayBeNumber;
var iEnd = strTmp.length;
for (var i=0; i<iEnd; i++)
{
var ch = strTmp.charAt(i);
if (!((ch == "0") || (ch == "1") ||
(ch == "2") || (ch == "3") ||
(ch == "4") || (ch == "5") ||
(ch == "6") || (ch == "7") ||
(ch == "8") || (ch == "9")))
return GetTopicNumberById(strTmp);
}
nNum = parseInt(strTmp);
}
return nNum;
}
function GetTopicNumber(strHashString)
{
var nTopicEndPos = strHashString.indexOf(',')
if (nTopicEndPos == -1) { // no window option.
return GetTopicNumberOnly(strHashString);
}
else {
var strWindowOption = strHashString.substring(nTopicEndPos + 1, strHashString.length);
var strWithNavPane = 'withnavpane=true';
if (strWindowOption.toLowerCase().indexOf(strWithNavPane) == 0)
{
if (strWindowOption.length > strWithNavPane.length)
gstrWindowOption = strWindowOption.substring(strWithNavPane.length + 1);
else
gstrWindowOption = "";
gbWithNavPane = true;
}
else
gstrWindowOption = strWindowOption;
return GetTopicNumberOnly(strHashString.substring(0, nTopicEndPos));
}
}
function GetTopicNumberOnly(strTopicString)
{
var nEqualPos = strTopicString.indexOf('=');
if (nEqualPos == -1) {
return GetTopicNumberAuto(strTopicString);
}
else {
var strValue=strTopicString.substring(nEqualPos + 1, strTopicString.length);
if (strTopicString.toLowerCase().indexOf("topicnumber") == 0) {
return parseInt(strValue);
} else if (strTopicString.toLowerCase().indexOf("context") == 0) {
return GetTopicNumberById(strValue);
} else if (strTopicString.toLowerCase().indexOf("remoteurl") == 0) {
gstrURL = strValue;
return -1;
}
}
}
//Find HomePage of the WebHelp system
// we try to get the topic from remote project if it exists.
function RedirectToHomePage()
{
if (parent && parent != this && parent.goNext)
{
var sHome = parent.goNext();
if (sHome != "")
RedirectTo(sHome);
}
}
function getHomePage()
{
if (parent && parent != this && parent.getRelHomePage)
{
return parent.getRelHomePage(document.location.href);
}
return "";
}
function addRemoteProject(strPath)
{
if (parent && parent != this && parent.addProject)
{
parent.addProject(strPath);
}
}
//Redirect page to...
function RedirectTo(strUrl)
{
if (gstrWindowOption.length != 0) {
var wnd = window.open(strUrl, "HelpStub", gstrWindowOption);
// close current window and rename the stub window to current window.
if (wnd)
wnd.focus();
if (parent)
parent.close();
}
else {
parent.document.location.href = strUrl;
window.focus();
}
}
//Prompt the user that we can not find...
function FailToFind(strMsg)
{
RedirectToHomePage();
}
//Find topic by topic number (defined in h file)
function FindTopicByTopicNum(nTopicNum)
{
var i = 0;
var iEnd = gArrayCsh.length;
for (i=0; i<iEnd; i++)
{
if (gArrayCsh[i].nTopicNum == nTopicNum)
{
var strURL = gArrayCsh[i].strUrl;
if (gbWithNavPane)
{
var strHomePage = getHomePage();
if (strHomePage.length != 0)
strURL = strHomePage + strURL;
}
RedirectTo(strURL);
return true;
}
}
FailToFind("Fail to find topic assocaite with topic number: " + nTopicNum);
return false;
}
var oldPrefix = "HelpIdFromHTMLHelp_"
//Find topic by topic id (alias id defined in ali file)
function GetTopicNumberById(strTopicId)
{
if (strTopicId.indexOf(oldPrefix) == 0)
{
strTopicId = strTopicId.substring(oldPrefix.length);
}
var i = 0;
var iEnd = gArrayCsh.length;
for (i=0; i<iEnd; i++)
{
if (gArrayCsh[i].strAliasId.toLowerCase() == strTopicId.toLowerCase())
{
return gArrayCsh[i].nTopicNum;
}
}
gstrURL = "";
return -1;
}
//Set Context-sensitive help entity...
function SetCsh(n, strAliasId, nTopicNum, strUrl)
{
gArrayCsh[n] = new CshEntityItem(strAliasId,nTopicNum,strUrl);
}
function getHash()
{
if (parent && parent != this)
return parent.location.hash;
else
return "";
}
//-->
</script>
<script language="javascript">
<!--
//-->
</script>
<script language="javascript">
<!--
//Find CSH according to hash string after this page
if (getHash().length > 0)
{
// VH 05/16/00 now support
// TopicID=
// TopicNumber=
// RemoteURL=
// and WindowsOptions
// with the format #a=xxx,b=xxx,c=xxx...
var strHashString = getHash().toString();
// change ? to : for remote URL. because java applet have some problem to pass a URL with two : inside the URL so we changed it.
// so here need to change it back.
strHashString = strHashString.substring(1,strHashString.length);
strHashString = strHashString.replace("%072%057%057", "://");
var nTopicNum = GetTopicNumber(strHashString);
if (nTopicNum != -1)
{
FindTopicByTopicNum(nTopicNum);
}
else
{
if (gstrURL.length > 0)
RedirectTo(gstrURL);
else
RedirectToHomePage();
}
}
else
{
RedirectToHomePage();
}
//-->
</script>
<noscript>
<p> Your browser does not support JavaScript. WebHelp Context-Sensitive Help requires JavaScript support to run.</p>
</noscript>
</body>
</html>

View File

@ -1,251 +0,0 @@
<html>
<head>
<title>Mesh Module Reference Manual</title>
<meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com">
<meta name="description" content="WebHelp 5.50">
</head>
<body>
<script language="JavaScript">
<!--
var gArrayCsh = new Array();
var gstrWindowOption = "";
var gstrURL = "";
var gbWithNavPane = false;
function CshEntityItem(strAliasId, nTopicNum, strUrl)
{
this.strAliasId = strAliasId;
this.nTopicNum = nTopicNum;
this.strUrl = strUrl;
}
//Try to get to topic number from hash string
function GetTopicNumberAuto(strMayBeNumber)
{
var nNum = -1;
if (strMayBeNumber.length >= 1)
{
var strTmp = strMayBeNumber;
var iEnd = strTmp.length;
for (var i=0; i<iEnd; i++)
{
var ch = strTmp.charAt(i);
if (!((ch == "0") || (ch == "1") ||
(ch == "2") || (ch == "3") ||
(ch == "4") || (ch == "5") ||
(ch == "6") || (ch == "7") ||
(ch == "8") || (ch == "9")))
return GetTopicNumberById(strTmp);
}
nNum = parseInt(strTmp);
}
return nNum;
}
function GetTopicNumber(strHashString)
{
var nTopicEndPos = strHashString.indexOf(',')
if (nTopicEndPos == -1) { // no window option.
return GetTopicNumberOnly(strHashString);
}
else {
var strWindowOption = strHashString.substring(nTopicEndPos + 1, strHashString.length);
var strWithNavPane = 'withnavpane=true';
if (strWindowOption.toLowerCase().indexOf(strWithNavPane) == 0)
{
if (strWindowOption.length > strWithNavPane.length)
gstrWindowOption = strWindowOption.substring(strWithNavPane.length + 1);
else
gstrWindowOption = "";
gbWithNavPane = true;
}
else
gstrWindowOption = strWindowOption;
return GetTopicNumberOnly(strHashString.substring(0, nTopicEndPos));
}
}
function GetTopicNumberOnly(strTopicString)
{
var nEqualPos = strTopicString.indexOf('=');
if (nEqualPos == -1) {
return GetTopicNumberAuto(strTopicString);
}
else {
var strValue=strTopicString.substring(nEqualPos + 1, strTopicString.length);
if (strTopicString.toLowerCase().indexOf("topicnumber") == 0) {
return parseInt(strValue);
} else if (strTopicString.toLowerCase().indexOf("topicid") == 0) {
return GetTopicNumberById(strValue);
} else if (strTopicString.toLowerCase().indexOf("remoteurl") == 0) {
gstrURL = strValue;
return -1;
}
}
}
//Find HomePage of the WebHelp system
// we try to get the topic from remote project if it exists.
function RedirectToHomePage()
{
if (parent && parent != this && parent.goNext)
{
var sHome = parent.goNext();
if (sHome != "")
RedirectTo(sHome);
}
}
function getHomePage()
{
if (parent && parent != this && parent.getRelHomePage)
{
return parent.getRelHomePage(document.location.href);
}
return "";
}
function addRemoteProject(strPath)
{
if (parent && parent != this && parent.addProject)
{
parent.addProject(strPath);
}
}
//Redirect page to...
function RedirectTo(strUrl)
{
if (gstrWindowOption.length != 0) {
var wnd = window.open(strUrl, "HelpStub", gstrWindowOption);
// close current window and rename the stub window to current window.
wnd.focus();
if (parent)
parent.close();
}
else {
parent.document.location.href = strUrl;
window.focus();
}
}
//Prompt the user that we can not find...
function FailToFind(strMsg)
{
RedirectToHomePage();
}
//Find topic by topic number (defined in h file)
function FindTopicByTopicNum(nTopicNum)
{
var i = 0;
var iEnd = gArrayCsh.length;
for (i=0; i<iEnd; i++)
{
if (gArrayCsh[i].nTopicNum == nTopicNum)
{
var strURL = gArrayCsh[i].strUrl;
if (gbWithNavPane)
{
var strHomePage = getHomePage();
if (strHomePage.length != 0)
strURL = strHomePage + strURL;
}
RedirectTo(strURL);
return true;
}
}
FailToFind("Fail to find topic assocaite with topic number: " + nTopicNum);
return false;
}
//Find topic by topic id (alias id defined in ali file)
function GetTopicNumberById(strTopicId)
{
var i = 0;
var iEnd = gArrayCsh.length;
for (i=0; i<iEnd; i++)
{
if (gArrayCsh[i].strAliasId == strTopicId)
{
return gArrayCsh[i].nTopicNum;
}
}
gstrURL = "";
return -1;
}
//Set Context-sensitive help entity...
function SetCsh(n, strAliasId, nTopicNum, strUrl)
{
gArrayCsh[n] = new CshEntityItem(strAliasId,nTopicNum,strUrl);
}
function getHash()
{
if (parent && parent != this)
return parent.location.hash;
else
return "";
}
//-->
</script>
<script language="javascript">
<!--
//-->
</script>
<script language="javascript">
<!--
//Find CSH according to hash string after this page
if (getHash().length > 0)
{
// VH 05/16/00 now support
// TopicID=
// TopicNumber=
// RemoteURL=
// and WindowsOptions
// with the format #a=xxx,b=xxx,c=xxx...
var strHashString = getHash().toString();
// change ? to : for remote URL. because java applet have some problem to pass a URL with two : inside the URL so we changed it.
// so here need to change it back.
strHashString = strHashString.substring(1,strHashString.length);
strHashString = strHashString.replace("%072%057%057", "://");
var nTopicNum = GetTopicNumber(strHashString);
if (nTopicNum != -1)
{
FindTopicByTopicNum(nTopicNum);
}
else
{
if (gstrURL.length > 0)
RedirectTo(gstrURL);
else
RedirectToHomePage();
}
}
else
{
RedirectToHomePage();
}
//-->
</script>
<noscript>
<p> Your browser does not support JavaScript. WebHelp Context-Sensitive Help requires JavaScript support to run.</p>
</noscript>
</body>
</html>

View File

@ -1,101 +0,0 @@
BODY {
background-color:#ffffff;
font-family:"Times New Roman" , serif; }
H1 {
font-weight:bold;
font-size:24.0pt; }
LI.kadov-H1 {
font-weight:bold;
font-size:24.0pt; }
H2 {
font-weight:bold;
font-size:18.0pt; }
LI.kadov-H2 {
font-weight:bold;
font-size:18.0pt; }
H3 {
font-weight:bold;
font-size:14.0pt; }
LI.kadov-H3 {
font-weight:bold;
font-size:14.0pt; }
H4 {
font-weight:bold;
font-size:12.0pt; }
LI.kadov-H4 {
font-weight:bold;
font-size:12.0pt; }
H5 {
font-weight:bold;
font-size:10.0pt; }
LI.kadov-H5 {
font-weight:bold;
font-size:10.0pt; }
H6 {
font-weight:bold;
font-size:8.0pt; }
LI.kadov-H6 {
font-weight:bold;
font-size:8.0pt; }
P {
font-size:12.0pt;
margin-top:0pt;
margin-bottom:0pt; }
LI.kadov-P {
font-size:12.0pt; }
A.expandspot {
color:#008000;
cursor:hand;
font-style:italic;
x-text-underline:off;
x-text-overline:off;
x-text-line-through:off;
text-decoration:none none none; }
SPAN.expandtext {
font-style:italic;
font-weight:normal;
color:#ff0000; }
A.dropspot {
cursor:hand;
color:#008000;
font-style:italic;
x-text-underline:off;
x-text-overline:off;
x-text-line-through:off;
text-decoration:none none none; }
A.glossterm {
color:#800000;
cursor:hand;
font-style:italic;
x-text-underline:off;
x-text-overline:off;
x-text-line-through:off;
text-decoration:none none none; }
SPAN.glosstext {
font-style:italic;
font-weight:normal;
color:#0000ff; }
OL {
margin-top:0px;
margin-bottom:0px; }
UL {
margin-top:0px;
margin-bottom:0px; }
A:active { }
A:hover {
x-text-underline:Off;
text-decoration:none; }
A:link {
x-text-underline:Off;
text-decoration:none; }
A:visited {
x-text-underline:Off;
text-decoration:none; }
P.TODO {
font-weight:normal;
font-style:italic;
font-family:"Arial Black" , sans-serif; }
LI.kadov-P-CTODO {
font-weight:normal;
font-style:italic;
font-family:"Arial Black" , sans-serif; }

View File

@ -1,118 +0,0 @@
BODY {
background-color:#ffffff;
font-family:"Times New Roman" , serif; }
H1 {
font-weight:bold;
font-size:24.0pt;
font-family:"Times New Roman" , serif; }
LI.kadov-H1 {
font-weight:bold;
font-size:24.0pt; }
H2 {
font-weight:bold;
font-size:18.0pt;
font-family:"Times New Roman" , serif; }
LI.kadov-H2 {
font-weight:bold;
font-size:18.0pt; }
H3 {
font-weight:bold;
font-size:14.0pt;
font-family:"Times New Roman" , serif; }
LI.kadov-H3 {
font-weight:bold;
font-size:14.0pt; }
H4 {
font-weight:bold;
font-size:12.0pt;
font-family:"Times New Roman" , serif; }
LI.kadov-H4 {
font-weight:bold;
font-size:12.0pt; }
H5 {
font-weight:bold;
font-size:10.0pt;
font-family:"Times New Roman" , serif; }
LI.kadov-H5 {
font-weight:bold;
font-size:10.0pt; }
H6 {
font-weight:bold;
font-size:8.0pt;
font-family:"Times New Roman" , serif; }
LI.kadov-H6 {
font-weight:bold;
font-size:8.0pt; }
P {
font-size:12.0pt;
margin-top:1pt;
margin-bottom:1pt;
font-family:"Times New Roman" , serif; }
LI.kadov-P {
font-size:12.0pt; }
A.expandspot {
color:#008000;
cursor:hand;
font-style:italic;
x-text-underline:off;
x-text-overline:off;
x-text-line-through:off;
text-decoration:none none none; }
SPAN.expandtext {
font-style:italic;
font-weight:normal;
color:#ff0000; }
A.dropspot {
cursor:hand;
color:#008000;
font-style:italic;
x-text-underline:off;
x-text-overline:off;
x-text-line-through:off;
text-decoration:none none none; }
A.glossterm {
color:#800000;
cursor:hand;
font-style:italic;
x-text-underline:off;
x-text-overline:off;
x-text-line-through:off;
text-decoration:none none none; }
SPAN.glosstext {
font-style:italic;
font-weight:normal;
color:#0000ff; }
OL {
margin-top:0px;
margin-bottom:0px;
font-family:"Times New Roman" , serif; }
UL {
margin-top:0px;
margin-bottom:0px;
font-family:"Times New Roman" , serif; }
A:active { }
A:hover {
x-text-underline:Off;
text-decoration:none; }
A:link {
x-text-underline:Off;
text-decoration:none; }
A:visited {
x-text-underline:Off;
text-decoration:none; }
P.TODO {
font-weight:normal;
font-style:italic;
font-family:"Arial Black" , sans-serif; }
LI.kadov-P-CTODO {
font-weight:normal;
font-style:italic;
font-family:"Arial Black" , sans-serif; }
ol ol {
margin-top:1px; }
ol ul {
margin-top:1px; }
ul ul {
margin-top:1px; }
ul ol {
margin-top:1px; }

View File

@ -1,883 +0,0 @@
<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
<html>
<head>
<title>Defining hypotheses TUI</title>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
<meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com"><style>
<!--
P { margin-top:0pt; margin-bottom:0pt; }
LI.kadov-P { }
-->
</style><style type="text/css">
<!--
p.whs1 { font-weight:bold; }
p.whs2 { font-family:'Lucida Console' , monospace; }
p.whs3 { font-family:'Times New Roman' , serif; }
p.whs4 { margin-top:0pt; margin-bottom:0pt; font-family:'Lucida Console' , monospace; }
p.whs5 { margin-top:0pt; margin-bottom:0pt; font-family:'Times New Roman' , serif; }
p.whs6 { margin-top:0pt; margin-bottom:0pt; }
-->
</style><script type="text/javascript" language="JavaScript">
<!--
if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))
{
var strNSS = "<style type='text/css'>";
strNSS += "p.whs4 {margin-top:1pt;margin-bottom:1pt; }";
strNSS += "p.whs5 {margin-top:1pt;margin-bottom:1pt; }";
strNSS += "p.whs6 {margin-top:1pt;margin-bottom: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("MESH module\nTUI Scripts\nDefining Hypotheses");
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>Defining Hypotheses and Algorithms</h1>
<h3>Defining 1D Hypotheses</h3>
<p class="whs1"><a name=bookmark>1D Arithmetic</a></p>
<p>&nbsp;</p>
<p class="whs2"><span style="font-family: 'Lucida Console', monospace;">import
geompy</span></p>
<p class="whs2">import smesh</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># create a box</p>
<p class="whs2">box = geompy.MakeBoxDXDYDZ(10.,
10., 10.)</p>
<p class="whs2">geompy.addToStudy(box,
&quot;Box&quot;)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># create a hexahedral
mesh on the box</p>
<p class="whs2">hexa = smesh.Mesh(box,
&quot;Box : hexahedrical mesh&quot;)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># create a Regular 1D
algorithm for edges</p>
<p class="whs2">algo1D = hexa.Segment()</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># define &quot;Arithmetic1D&quot;
hypothesis to cut all edges in several segments with increasing arithmetic
length </p>
<p class="whs2">algo1D.Arithmetic1D(1,
4)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># create a quadrangle
2D algorithm for faces</p>
<p class="whs2">hexa.Quadrangle()</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># create a hexahedron
3D algorithm for solids</p>
<p class="whs2">hexa.Hexahedron()</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># compute the mesh</p>
<p class="whs2">hexa.Compute() </p>
<p class="whs2">&nbsp;</p>
<h4><a name=bookmark9>Deflection 1D and Number of Segments</a></h4>
<p class="whs2"><span style="font-family: 'Lucida Console', monospace;">import
geompy</span></p>
<p class="whs2">import smesh</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># create a face from
arc and straight segment</p>
<p class="whs2">px = geompy.MakeVertex(100.,
0. &nbsp;, 0.
&nbsp;)</p>
<p class="whs2">py = geompy.MakeVertex(0.
&nbsp;, 100.,
0. &nbsp;)</p>
<p class="whs2">pz = geompy.MakeVertex(0.
&nbsp;, 0. &nbsp;,
100.)</p>
<p class="whs2">&nbsp;</p>
<p class="whs2">exy = geompy.MakeEdge(px,
py)</p>
<p class="whs2">arc = geompy.MakeArc(py,
pz, px)</p>
<p class="whs2">&nbsp;</p>
<p class="whs2">wire = geompy.MakeWire([exy,
arc])</p>
<p class="whs2">&nbsp;</p>
<p class="whs2">isPlanarFace = 1</p>
<p class="whs2">face1 = geompy.MakeFace(wire,
isPlanarFace)</p>
<p class="whs2">geompy.addToStudy(face1,&quot;Face1&quot;)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># get edges from the
face</p>
<p class="whs2">e_straight,e_arc =
geompy.SubShapeAll(face1, geompy.ShapeType[&quot;EDGE&quot;])</p>
<p class="whs2">geompy.addToStudyInFather(face1,
e_arc, &quot;Arc Edge&quot;)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># create hexahedral mesh</p>
<p class="whs2">hexa = smesh.Mesh(face1,
&quot;Face : triangle mesh&quot;)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># define &quot;NumberOfSegments&quot;
hypothesis to cut a straight edge in a fixed number of segments</p>
<p class="whs2">algo1D = hexa.Segment()</p>
<p class="whs2">algo1D.NumberOfSegments(6)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># define &quot;MaxElementArea&quot;
hypothesis</p>
<p class="whs2">algo2D = hexa.Triangle()</p>
<p class="whs2">algo2D.MaxElementArea(70.0)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># define a local &quot;Deflection1D&quot;
hypothesis on the arc</p>
<p class="whs2">algo_local = hexa.Segment(e_arc)</p>
<p class="whs2">algo_local.Deflection1D(1.0)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># compute the mesh</p>
<p class="whs2">hexa.Compute() </p>
<h4><a name=bookmark2>Start and End Length</a></h4>
<p class="whs2"><span style="font-family: 'Lucida Console', monospace;">from
geompy import *</span></p>
<p class="whs2">import smesh</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># create a box</p>
<p class="whs2">box = MakeBoxDXDYDZ(10.,
10., 10.)</p>
<p class="whs2">addToStudy(box, &quot;Box&quot;)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># get one edge of the
box to put local hypothesis on</p>
<p class="whs2">p5 = MakeVertex(5.,
0., 0.)</p>
<p class="whs2">EdgeX = GetEdgeNearPoint(box,
p5)</p>
<p class="whs2">addToStudyInFather(box,
EdgeX, &quot;Edge [0,0,0 - 10,0,0]&quot;)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># create a hexahedral
mesh on the box</p>
<p class="whs2">hexa = smesh.Mesh(box,
&quot;Box : hexahedrical mesh&quot;)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># set algorithms</p>
<p class="whs2">algo1D = hexa.Segment()</p>
<p class="whs2">hexa.Quadrangle()</p>
<p class="whs2">hexa.Hexahedron()</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># define &quot;NumberOfSegments&quot;
hypothesis to cut an edge in a fixed number of segments</p>
<p class="whs2">algo1D.NumberOfSegments(4)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># create a local hypothesis</p>
<p class="whs2">algo_local = hexa.Segment(EdgeX)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># define &quot;StartEndLength&quot;
hypothesis to cut an edge in several segments with increasing geometric
length</p>
<p class="whs2">algo_local.StartEndLength(1,
6)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># define &quot;Propagation&quot;
hypothesis that propagates all other hypothesis</p>
<p class="whs3"># on all edges on the
opposite side in case of quadrangular faces</p>
<p class="whs2">algo_local.Propagation()</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># compute the mesh</p>
<p class="whs2">hexa.Compute() </p>
<h4><a name=bookmark3>Average Length</a></h4>
<p class="whs2"><span style="font-family: 'Lucida Console', monospace;">from
geompy import *</span></p>
<p class="whs2">import smesh</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># create a box</p>
<p class="whs2">box = MakeBoxDXDYDZ(10.,
10., 10.)</p>
<p class="whs2">addToStudy(box, &quot;Box&quot;)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># get one edge of the
box to put local hypothesis on</p>
<p class="whs2">p5 = MakeVertex(5.,
0., 0.)</p>
<p class="whs2">EdgeX = GetEdgeNearPoint(box,
p5)</p>
<p class="whs2">addToStudyInFather(box,
EdgeX, &quot;Edge [0,0,0 - 10,0,0]&quot;)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># create a hexahedral
mesh on the box</p>
<p class="whs2">hexa = smesh.Mesh(box,
&quot;Box : hexahedrical mesh&quot;)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># set algorithms</p>
<p class="whs2">algo1D = hexa.Segment()</p>
<p class="whs2">hexa.Quadrangle()</p>
<p class="whs2">hexa.Hexahedron()</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># define &quot;NumberOfSegments&quot;
hypothesis to cut all edges in a fixed number of segments</p>
<p class="whs2">algo1D.NumberOfSegments(4)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># create a sub-mesh</p>
<p class="whs2">algo_local = hexa.Segment(EdgeX)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># define &quot;LocalLength&quot;
hypothesis to cut an edge in several segments with the same length</p>
<p class="whs2">algo_local.LocalLength(2.)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># define &quot;Propagation&quot;
hypothesis that propagates all other hypothesis</p>
<p class="whs3"># on all edges on the
opposite side in case of quadrangular faces</p>
<p class="whs2">algo_local.Propagation()</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># compute the mesh</p>
<p class="whs2">hexa.Compute() </p>
<h3>Defining 2D and 3D hypotheses</h3>
<h4><a name=bookmark4>Maximum Element Area</a></h4>
<p class="whs4"><span style="font-family: 'Lucida Console', monospace;">import
geompy</span></p>
<p class="whs4">import smesh</p>
<p class="whs4">import salome </p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># create a face</p>
<p class="whs4">px &nbsp;&nbsp;=
geompy.MakeVertex(100., 0. &nbsp;,
0. &nbsp;)</p>
<p class="whs4">py &nbsp;&nbsp;=
geompy.MakeVertex(0. &nbsp;,
100., 0. &nbsp;)</p>
<p class="whs4">pz &nbsp;&nbsp;=
geompy.MakeVertex(0. &nbsp;,
0. &nbsp;, 100.)</p>
<p class="whs4">&nbsp;</p>
<p class="whs4">vxy = geompy.MakeVector(px,
py)</p>
<p class="whs4">arc = geompy.MakeArc(py,
pz, px)</p>
<p class="whs4">wire = geompy.MakeWire([vxy,
arc])</p>
<p class="whs4">&nbsp;</p>
<p class="whs4">isPlanarFace = 1</p>
<p class="whs4">face = geompy.MakeFace(wire,
isPlanarFace)</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># add the face in the
study</p>
<p class="whs4">id_face = geompy.addToStudy(face,
&quot;Face to be meshed&quot;)</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># create a mesh</p>
<p class="whs4">tria_mesh = smesh.Mesh(face,
&quot;Face : triangulation&quot;)</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># define 1D meshing:</p>
<p class="whs4">algo = tria_mesh.Segment()</p>
<p class="whs4">algo.NumberOfSegments(20)</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># define 2D meshing:</p>
<p class="whs5">&nbsp;</p>
<p class="whs5"># assign triangulation
algorithm</p>
<p class="whs4">algo = tria_mesh.Triangle()</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># apply &quot;Max Element
Area&quot; hypothesis to each triangle</p>
<p class="whs4">algo.MaxElementArea(100)</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># compute the mesh</p>
<p class="whs4">tria_mesh.Compute()
&nbsp;</p>
<p class="whs4">&nbsp;</p>
<h4><a name=bookmark5>Maximum Element Volume</a></h4>
<p class="whs4"><span style="font-family: 'Lucida Console', monospace;">import
geompy</span></p>
<p class="whs4">import smesh</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># create a cylinder</p>
<p class="whs4">cyl = geompy.MakeCylinderRH(30.,
50.)</p>
<p class="whs4">geompy.addToStudy(cyl,
&quot;cyl&quot;)</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># create a mesh on
the cylinder</p>
<p class="whs4">tetra = smesh.Mesh(cyl,
&quot;Cylinder : tetrahedrical mesh&quot;)</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># assign algorithms</p>
<p class="whs4">algo1D = tetra.Segment()</p>
<p class="whs4">algo2D = tetra.Triangle()</p>
<p class="whs4">algo3D = tetra.Tetrahedron(smesh.NETGEN)</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># assign 1D and 2D
hypotheses</p>
<p class="whs4">algo1D.NumberOfSegments(7)</p>
<p class="whs4">algo2D.MaxElementArea(150.)</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># assign Max Element
Volume hypothesis</p>
<p class="whs4">algo3D.MaxElementVolume(200.)</p>
<p class="whs4">&nbsp;</p>
<p class="whs5"># compute the mesh</p>
<p class="whs4">ret = tetra.Compute()</p>
<p class="whs4">if ret == 0:</p>
<p class="whs4">&nbsp;&nbsp;&nbsp;&nbsp;print
&quot;probleme when computing the mesh&quot;</p>
<p class="whs4">else:</p>
<p class="whs4">&nbsp;&nbsp;&nbsp;&nbsp;print
&quot;Computation succeded&quot; </p>
<h4><a name=bookmark6>Length from Edges</a></h4>
<p class="whs2"><span style="font-family: 'Lucida Console', monospace;">import
geompy</span></p>
<p class="whs2">import smesh</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># create sketchers</p>
<p class="whs2">sketcher1 = geompy.MakeSketcher(&quot;Sketcher:F
0 0:TT 70 0:TT 70 70:TT 0 70:WW&quot;)</p>
<p class="whs2">sketcher2 = geompy.MakeSketcher(&quot;Sketcher:F
20 20:TT 50 20:TT 50 50:TT 20 50:WW&quot;)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># create a face from
two wires</p>
<p class="whs2">isPlanarFace = 1</p>
<p class="whs2">face1 = geompy.MakeFaces([sketcher1,
sketcher2], isPlanarFace)</p>
<p class="whs2">geompy.addToStudy(face1,
&quot;Face1&quot;)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># create a mesh</p>
<p class="whs2">tria = smesh.Mesh(face1,
&quot;Face : triangle 2D mesh&quot;)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># Define 1D meshing</p>
<p class="whs2">algo1D = tria.Segment()</p>
<p class="whs2">algo1D.NumberOfSegments(2)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># create and assign the
algorithm for 2D meshing with triangles</p>
<p class="whs2">algo2D = tria.Triangle()</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># create and assign &quot;LengthFromEdges&quot;
hypothesis to build triangles<span style="font-family: 'Times New Roman', serif;">
based on the length of the edges taken from the wire</span></p>
<p class="whs2">algo2D.LengthFromEdges()</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># compute the mesh</p>
<p class="whs2">tria.Compute() </p>
<p class="whs2">&nbsp;</p>
<h3>Defining Additional Hypotheses</h3>
<h4><a name=bookmark7>Propagation</a></h4>
<p class="whs2">from geompy import
*</p>
<p class="whs2">import smesh</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># create a box</p>
<p class="whs2">box = MakeBoxDXDYDZ(10.,
10., 10.)</p>
<p class="whs2">addToStudy(box, &quot;Box&quot;)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># get one edge of the
box to put local hypothesis on</p>
<p class="whs2">p5 = MakeVertex(5.,
0., 0.)</p>
<p class="whs2">EdgeX = GetEdgeNearPoint(box,
p5)</p>
<p class="whs2">addToStudyInFather(box,
EdgeX, &quot;Edge [0,0,0 - 10,0,0]&quot;)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># create a hexahedral
mesh on the box</p>
<p class="whs2">hexa = smesh.Mesh(box,
&quot;Box : hexahedrical mesh&quot;)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># set global algorithms
and hypotheses</p>
<p class="whs2">algo1D = hexa.Segment()</p>
<p class="whs2">hexa.Quadrangle()</p>
<p class="whs2">hexa.Hexahedron()</p>
<p class="whs2">algo1D.NumberOfSegments(4)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># create a sub-mesh with
local 1D hypothesis and propagation</p>
<p class="whs2">algo_local = hexa.Segment(EdgeX)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># define &quot;Arithmetic1D&quot;
hypothesis to cut an edge in several segments with increasing length</p>
<p class="whs2">algo_local.Arithmetic1D(1,
4)</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># define &quot;Propagation&quot;
hypothesis that propagates all other 1D hypotheses</p>
<p class="whs3"># from all edges on the
opposite side of a face in case of quadrangular faces</p>
<p class="whs2">algo_local.Propagation()</p>
<p class="whs2">&nbsp;</p>
<p class="whs3"># compute the mesh</p>
<p><span style="font-family: 'Lucida Console', monospace;">hexa.Compute()</span>
</p>
<h3><a name=bookmark8>Defining Meshing Algorithms</a></h3>
<p class="whs4">import geompy</p>
<p class="whs4">import smesh</p>
<p class="whs6">&nbsp;</p>
<p class="whs6"># create a box</p>
<p class="whs4">box = geompy.MakeBoxDXDYDZ(10.,
10., 10.)</p>
<p class="whs4">geompy.addToStudy(box,
&quot;Box&quot;)</p>
<p class="whs4">&nbsp;</p>
<p class="whs6"># 1. Create a hexahedral
mesh on the box</p>
<p class="whs4">hexa = smesh.Mesh(box,
&quot;Box : hexahedrical mesh&quot;)</p>
<p class="whs6">&nbsp;</p>
<p class="whs6"># create a Regular 1D algorithm
for edges</p>
<p class="whs4">algo1D = hexa.Segment()</p>
<p class="whs6">&nbsp;</p>
<p class="whs6"># create a quadrangle 2D
algorithm for faces</p>
<p class="whs4">algo2D = hexa.Quadrangle()</p>
<p class="whs6">&nbsp;</p>
<p class="whs6"># create a hexahedron 3D
algorithm for solids</p>
<p class="whs4">algo3D = hexa.Hexahedron()</p>
<p class="whs6">&nbsp;</p>
<p class="whs6"># define hypotheses</p>
<p class="whs4">algo1D.Arithmetic1D(1,
4)</p>
<p class="whs6">&nbsp;</p>
<p class="whs6"># compute the mesh</p>
<p class="whs4">hexa.Compute()</p>
<p class="whs6">&nbsp;</p>
<p class="whs6"># 2. Create a tetrahedral
mesh on the box</p>
<p class="whs4">tetra = smesh.Mesh(box,
&quot;Box : tetrahedrical mesh&quot;)</p>
<p class="whs6">&nbsp;</p>
<p class="whs6"># create a Regular 1D algorithm
for edges</p>
<p class="whs4">algo1D = tetra.Segment()</p>
<p class="whs6">&nbsp;</p>
<p class="whs6"># create a Mefisto 2D algorithm
for faces</p>
<p class="whs4">algo2D = tetra.Triangle()</p>
<p class="whs6">&nbsp;</p>
<p class="whs6"># create a Netgen 3D algorithm
for solids</p>
<p class="whs4">algo3D = tetra.Tetrahedron(smesh.NETGEN)</p>
<p class="whs6">&nbsp;</p>
<p class="whs6"># define hypotheses</p>
<p class="whs4">algo1D.Arithmetic1D(1,
4)</p>
<p class="whs4">algo2D.LengthFromEdges()</p>
<p class="whs6">&nbsp;</p>
<p class="whs6"># compute the mesh</p>
<p class="whs4">tetra.Compute()</p>
<p class="whs6">&nbsp;</p>
<p class="whs6"># 3. Create a tetrahedral
mesh on the box with NETGEN_2D3D algorithm</p>
<p class="whs4">tetraN = smesh.Mesh(box,
&quot;Box : tetrahedrical mesh by NETGEN_2D3D&quot;)</p>
<p class="whs6">&nbsp;</p>
<p class="whs6"># create a Netgen_2D3D
algorithm for solids</p>
<p class="whs4">algo3D = tetraN.Tetrahedron(smesh.FULL_NETGEN)
</p>
<p class="whs6">&nbsp;</p>
<p class="whs6"># define hypotheses</p>
<p class="whs4">n23_params = algo3D.Parameters()</p>
<p class="whs6">&nbsp;</p>
<p class="whs6"># compute the mesh</p>
<p class="whs4">tetraN.Compute()
</p>
<script type="text/javascript" language="javascript1.2">
<!--
if (window.writeIntopicBar)
writeIntopicBar(0);
//-->
</script>
</body>
</html>

View File

@ -1,119 +0,0 @@
<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
<html>
<head>
<title>Deleting Groups</title>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
<meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com"><style type="text/css">
<!--
p.whs1 { margin-top:0pt; margin-bottom:0pt; }
img_whs2 { border:none; width:306px; height:234px; float:none; }
-->
</style><script type="text/javascript" language="JavaScript">
<!--
if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))
{
var strNSS = "<style type='text/css'>";
strNSS += "p.whs1 {margin-top:1pt;margin-bottom: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("MESH module\nGrouping elements\nDeleting Groups");
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>Deleting Groups</h1>
<p class="whs1">To delete a group in the
<span style="font-weight: bold;"><B>Main Menu</B></span> select <span style="font-weight: bold;"><B>Mesh
</B></span><span style="font-family: Arial, sans-serif;">-&gt;</span><span
style="font-weight: bold;"><B> Delete Groups</B></span> and select one or several
groups you wish to delete in the 3D viewer or in the Object Browser.</p>
<p class="whs1">The selected groups will
be listed in <span style="font-weight: bold;"><B>Delete groups with contents</B></span>
menu. Then click Ok button to remove the selected groups and close the
menu or Apply button to remove them and proceed with the selection. </p>
<p class="whs1">&nbsp;</p>
<p class="whs1"><img src="pics/deletegroups.png" x-maintain-ratio="TRUE" width="306px" height="234px" border="0" class="img_whs2"></p>
<p class="whs1">&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">Please, note that this
operation <span style="font-weight: bold;"><B>removes groups with their elements</B></span>.
To delete a group and leave its elements intact, right-click on the group
in the Object Browser and select <span style="font-weight: bold;"><B>Delete</B></span>
in the pop-up menu or select the group and choose <span style="font-weight: bold;"><B>Edit
-&gt; Delete</B></span> in the <span style="font-weight: bold;"><B>Main Menu.</B></span>
&nbsp;&nbsp;</p>
<script type="text/javascript" language="javascript1.2">
<!--
if (window.writeIntopicBar)
writeIntopicBar(0);
//-->
</script>
</body>
</html>

View File

@ -1,101 +0,0 @@
<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
<html>
<head>
<title>Display Entity</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">
<!--
p.whs1 { margin-left:40px; font-weight:bold; }
p.whs2 { margin-left:40px; }
img_whs3 { border:none; height:285px; width:260px; 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; }
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("MESH module\nViewing meshes\nDisplay Entity");
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>Display Entity</h1>
<p>In this submenu you can choose to display only volumes, faces or edges
or combine them. </p>
<p>&nbsp;</p>
<p class="whs1">Only Faces &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Only
Edges</p>
<p class="whs2"><img src="image56.jpg" height="285px" width="260px" border="0" class="img_whs3"> &nbsp;<img src="image58.gif" height="285px" width="260px" border="0" class="img_whs3"></p>
<p>&nbsp;</p>
<script type="text/javascript" language="javascript1.2">
<!--
if (window.writeIntopicBar)
writeIntopicBar(0);
//-->
</script>
</body>
</html>

View File

@ -0,0 +1,49 @@
#---------------------------------------------------------------------------
# Project related configuration options
#---------------------------------------------------------------------------
PROJECT_NAME = "Mesh Module Reference Manual v.@VERSION@"
OUTPUT_DIRECTORY = ./
CREATE_SUBDIRS = NO
OUTPUT_LANGUAGE = English
TAB_SIZE = 5
#---------------------------------------------------------------------------
# configuration options related to warning and progress messages
#---------------------------------------------------------------------------
QUIET = NO
WARNINGS = YES
#---------------------------------------------------------------------------
#Input related options
#---------------------------------------------------------------------------
INPUT = @srcdir@/input
FILE_PATTERNS = *.doc
IMAGE_PATH = @srcdir@/images
#---------------------------------------------------------------------------
#HTML related options
#---------------------------------------------------------------------------
GENERATE_HTML = YES
HTML_OUTPUT = ./
HTML_HEADER = @srcdir@/static/header.html
HTML_FOOTER = @srcdir@/static/footer.html
#HTML_STYLESHEET = @srcdir@/static/doxygen.css
TOC_EXPAND = YES
DISABLE_INDEX = NO
GENERATE_TREEVIEW = YES
TREEVIEW_WIDTH = 300
#---------------------------------------------------------------------------
#LaTeX related option
#---------------------------------------------------------------------------
GENERATE_LATEX = NO
#---------------------------------------------------------------------------
#RTF related options
#---------------------------------------------------------------------------
GENERATE_RTF = NO
#---------------------------------------------------------------------------
#External reference options
#---------------------------------------------------------------------------
TAGFILES = smeshpy_doc.tag=./smeshpy_doc

View File

@ -0,0 +1,137 @@
#---------------------------------------------------------------------------
# Project related configuration options
#---------------------------------------------------------------------------
PROJECT_NAME = "Mesh Module Reference Manual v.@VERSION@"
OUTPUT_DIRECTORY = ./
CREATE_SUBDIRS = NO
OUTPUT_LANGUAGE = English
USE_WINDOWS_ENCODING = NO
BRIEF_MEMBER_DESC = YES
REPEAT_BRIEF = NO
ALWAYS_DETAILED_SEC = YES
INLINE_INHERITED_MEMB = YES
FULL_PATH_NAMES = NO
SHORT_NAMES = NO
JAVADOC_AUTOBRIEF = YES
MULTILINE_CPP_IS_BRIEF = NO
DETAILS_AT_TOP = NO
INHERIT_DOCS = YES
SEPARATE_MEMBER_PAGES = NO
TAB_SIZE = 5
OPTIMIZE_OUTPUT_FOR_C = YES
OPTIMIZE_OUTPUT_JAVA = YES
BUILTIN_STL_SUPPORT = NO
DISTRIBUTE_GROUP_DOC = NO
SUBGROUPING = YES
#---------------------------------------------------------------------------
# Build related options
#---------------------------------------------------------------------------
EXTRACT_ALL = YES
EXTRACT_PRIVATE = YES
EXTRACT_STATIC = NO
EXTRACT_LOCAL_CLASSES = YES
EXTRACT_LOCAL_METHODS = NO
HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
HIDE_FRIEND_COMPOUNDS = NO
HIDE_IN_BODY_DOCS = NO
INTERNAL_DOCS = YES
CASE_SENSE_NAMES = YES
HIDE_SCOPE_NAMES = NO
SHOW_INCLUDE_FILES = YES
INLINE_INFO = YES
SORT_MEMBER_DOCS = NO
SORT_BRIEF_DOCS = NO
SORT_BY_SCOPE_NAME = NO
GENERATE_TODOLIST = YES
GENERATE_TESTLIST = YES
GENERATE_BUGLIST = YES
GENERATE_DEPRECATEDLIST= YES
MAX_INITIALIZER_LINES = 25
SHOW_USED_FILES = NO
SHOW_DIRECTORIES = NO
#---------------------------------------------------------------------------
# configuration options related to source browsing
#---------------------------------------------------------------------------
SOURCE_BROWSER = NO
INLINE_SOURCES = NO
STRIP_CODE_COMMENTS = YES
REFERENCED_BY_RELATION = NO
REFERENCES_RELATION = YES
USE_HTAGS = NO
VERBATIM_HEADERS = YES
#---------------------------------------------------------------------------
# configuration options related to warning and progress messages
#---------------------------------------------------------------------------
QUIET = NO
WARNINGS = YES
WARN_IF_UNDOCUMENTED = YES
WARN_IF_DOC_ERROR = YES
WARN_NO_PARAMDOC = NO
EXCLUDE_SYMLINKS = NO
EXAMPLE_RECURSIVE = NO
#---------------------------------------------------------------------------
#Input related options
#---------------------------------------------------------------------------
INPUT = @top_srcdir@/src/SMESH_SWIG
FILE_PATTERNS = smeshDC.py
IMAGE_PATH = @srcdir@/images
RECURSIVE = NO
#---------------------------------------------------------------------------
#HTML related options
#---------------------------------------------------------------------------
GENERATE_HTML = YES
HTML_OUTPUT = ./smeshpy_doc
HTML_HEADER = @srcdir@/static/header.html
HTML_FOOTER = @srcdir@/static/footer.html
#HTML_STYLESHEET = @srcdir@/static/doxygen.css
TOC_EXPAND = YES
DISABLE_INDEX = YES
GENERATE_TREEVIEW = NO
#---------------------------------------------------------------------------
#LaTeX related option
#---------------------------------------------------------------------------
GENERATE_LATEX = NO
#---------------------------------------------------------------------------
#RTF related options
#---------------------------------------------------------------------------
GENERATE_RTF = NO
#---------------------------------------------------------------------------
# Configuration options related to the dot tool
#---------------------------------------------------------------------------
CLASS_DIAGRAMS = YES
HIDE_UNDOC_RELATIONS = NO
HAVE_DOT = YES
CLASS_GRAPH = YES
COLLABORATION_GRAPH = NO
GROUP_GRAPHS = NO
UML_LOOK = NO
TEMPLATE_RELATIONS = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = NO
CALL_GRAPH = NO
GRAPHICAL_HIERARCHY = YES
DIRECTORY_GRAPH = YES
DOT_IMAGE_FORMAT = jpg
DOT_PATH =
DOTFILE_DIRS =
MAX_DOT_GRAPH_WIDTH = 1024
MAX_DOT_GRAPH_HEIGHT = 1200
MAX_DOT_GRAPH_DEPTH = 0
DOT_TRANSPARENT = NO
DOT_MULTI_TARGETS = NO
GENERATE_LEGEND = NO
DOT_CLEANUP = YES
#---------------------------------------------------------------------------
#External reference options
#---------------------------------------------------------------------------
GENERATE_TAGFILE = smeshpy_doc.tag

View File

@ -1,10 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE SYSTEM "ehelpopt.dtd">
<FILE-OPTIONS FILE-VERSION="2" FILE-KEY="f974c843_2d19_491f_a339_b0affd721669">
</FILE-OPTIONS>
<EHELP-OPTIONS FORMAT-VERSION="1.0">
<OPTIONS ENABLED="NO" EMBEDDED="YES" MAIN-WINDOW-ONLY="NO" COMMUNITY-NOTIFY="NO" FIRST-PAGE="NOT-SET">
</OPTIONS>
<BUTTON-LABEL>WebSearch
</BUTTON-LABEL>
</EHELP-OPTIONS>

File diff suppressed because it is too large Load Diff

View File

@ -1,164 +0,0 @@
<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
<html>
<head>
<title>Extrusion</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">
<!--
p.whs1 { margin-left:40px; }
img_whs2 { border:none; width:27px; height:24px; border-style:none; }
img_whs3 { border:none; width:411px; height:309px; float:none; border-style:none; }
ul.whs4 { list-style:disc; }
table.whs5 { x-cell-content-align:top; width:100%; border-spacing:0px; }
col.whs6 { width:50%; }
tr.whs7 { x-cell-content-align:top; }
td.whs8 { width:50%; padding-right:10px; padding-left:10px; border-right-style:none; border-left-style:none; border-top-style:none; border-bottom-style:none; }
img_whs9 { border:none; width:350px; height:201px; border-style:none; }
td.whs10 { width:50%; padding-right:10px; padding-left:10px; border-top-style:none; border-bottom-style:none; border-right-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; }
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("MESH module\nModifying meshes\nExtrusion");
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>Extrusion</h1>
<p>Extrusion is a type of surface meshing by generation from discretized
lines. It is used to build mesh elements of plus one dimension than the
swept ones. Each swept 1D element produces one or more quadrangles (or
triangles if one node of a rotated element lays on the revolution axis).</p>
<p>&nbsp;</p>
<p class=TODO>To use extrusion:</p>
<p class=TODO>&nbsp;</p>
<p class="whs1">1. From the <span style="font-weight: bold;"><B>Modification
</B></span>menu choose the <span style="font-weight: bold;"><B>Extrusion </B></span>item
or click <img src="image91.gif" width="27px" height="24px" border="0" class="img_whs2"> button in the toolbar. The following dialog box
will appear:</p>
<p class="whs1">&nbsp;</p>
<p class="whs1"><img src="pics/extrusionalongaline1.png" x-maintain-ratio="TRUE" width="411px" height="309px" border="0" class="img_whs3"> &nbsp;<img src="pics/extrusionalongaline2.png" x-maintain-ratio="TRUE" width="411px" height="309px" border="0" class="img_whs3"></p>
<p class="whs1">&nbsp;</p>
<p class="whs1">2. In this dialog box you should select </p>
<ul type="disc" class="whs4">
<li class=kadov-p><p class="whs1">the type of elements
which will be extruded (1D or 2D),</p></li>
<li class=kadov-p><p class="whs1">specify the IDs of
the elements which will be extruded by selecting them in the 3D viewer
or select the whole mesh or submesh,</p></li>
<li class=kadov-p><p class="whs1">specify the vector
along which the elements will be extruded,</p></li>
<li class=kadov-p><p class="whs1">number of steps</p></li>
</ul>
<p class="whs1">&nbsp;</p>
<p class="whs1">3. Click the <span style="font-weight: bold;"><B>Apply
</B></span>or <span style="font-weight: bold;"><B>OK </B></span>button.</p>
<p class=TODO
style="margin-left: 40px;">&nbsp;</p>
<p>&nbsp;</p>
<table x-use-null-cells cellspacing="0" width="100%" class="whs5">
<col class="whs6">
<col class="whs6">
<tr valign="top" class="whs7">
<td width="50%" class="whs8">
<p><img src="image77.jpg" width="350px" height="201px" border="0" class="img_whs9"></td>
<td width="50%" class="whs10">
<p><img src="image76.jpg" width="350px" height="201px" border="0" class="img_whs9"></td></tr>
</table>
<p class=TODO>&nbsp;</p>
<p>&nbsp;<span style="font-weight: bold;"><B>See
Also</B></span> a sample TUI Script of an <a href="modifying_meshes.htm#bookmark9">Extrusion</a>
operation. &nbsp;</p>
<p>&nbsp;</p>
<script type="text/javascript" language="javascript1.2">
<!--
if (window.writeIntopicBar)
writeIntopicBar(0);
//-->
</script>
</body>
</html>

View File

@ -1,378 +0,0 @@
<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
<html>
<head>
<title>Extrusion along a path</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; width:27px; height:24px; border-style:none; }
img_whs2 { border:none; width:387px; height:334px; float:none; border-style:none; }
ul.whs3 { list-style:disc; }
table.whs4 { x-cell-content-align:top; width:100%; border-spacing:0px; }
col.whs5 { width:50%; }
tr.whs6 { x-cell-content-align:top; }
td.whs7 { width:50%; padding-right:10px; padding-left:10px; border-right-style:none; border-left-style:none; border-top-style:none; border-bottom-style:none; }
p.whs8 { margin-left:0px; margin-right:53px; }
img_whs9 { border:none; width:389px; height:334px; float:none; border-style:none; }
td.whs10 { width:50%; padding-right:10px; padding-left:10px; border-top-style:none; border-bottom-style:none; border-right-style:none; }
p.whs11 { margin-left:0px; }
p.whs12 { margin-left:40px; }
col.whs13 { width:33.333%; }
td.whs14 { width:33.333%; padding-right:10px; padding-left:10px; border-bottom-style:none; border-right-style:none; border-left-style:none; border-top-style:none; }
td.whs15 { width:33.333%; padding-right:10px; padding-left:10px; border-bottom-style:none; border-right-style:none; border-top-style:none; }
td.whs16 { width:33.333%; padding-right:10px; padding-left:10px; border-bottom-style:none; border-top-style:none; border-right-style:none; }
td.whs17 { width:33.333%; padding-right:10px; padding-left:10px; border-right-style:none; border-left-style:none; border-bottom-style:none; }
td.whs18 { width:33.333%; padding-right:10px; padding-left:10px; border-right-style:none; border-bottom-style:none; }
td.whs19 { width:33.333%; padding-right:10px; padding-left:10px; border-bottom-style:none; border-right-style:none; }
p.whs20 { font-weight:bold; margin-left:0px; }
p.whs21 { font-weight:bold; }
img_whs22 { border:none; width:441px; height:541px; float:none; border-style:none; }
p.whs23 { margin-left:84px; }
p.whs24 { margin-left:156px; }
p.whs25 { margin-left:156px; font-weight:bold; }
img_whs26 { border:none; width:26px; height:25px; border-style:none; }
img_whs27 { border:none; width:29px; height:28px; 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.whs8 {margin-left:1pt; }";
strNSS += "p.whs11 {margin-left:1pt; }";
strNSS += "p.whs20 {margin-left: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("MESH module\nModifying meshes\nExtrusion along a path");
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><img src="image101.gif" width="27px" height="24px" border="0" class="img_whs1">Extrusion along a path</h1>
<p>In principle, <span style="font-weight: bold;"><B>Extrusion along a path</B></span>
works in the same way as <span style="font-weight: bold;"><B>Extrusion</B></span>,
the main difference is that we define not a vector, but a path of extrusion
which must be a meshed edge. To get an idea of how this algorithm works,
examine several examples, starting from the most simple case of extrusion
along a straight edge. In all examples the same mesh will be extruded
along different paths and with different parameters. This sample 2D mesh
has two quadrangle faces and seven edges. Look at the picture, where white
digits are the node numbers and green are the element numbers:</p>
<p><span style="margin-left: 40px;"><img src="pics/mesh_for_extr_along_path.png" x-maintain-ratio="TRUE" width="387px" height="334px" border="0" class="img_whs2"> .</span></p>
<p>&nbsp;</p>
<ul type="disc" class="whs3">
<li class=kadov-p><p><span style="font-weight: bold;"><B>Extrusion along
a straight edge</B></span> (not using base point or angles)</p></li>
</ul>
<table x-use-null-cells cellspacing="0" width="100%" class="whs4">
<col class="whs5">
<col class="whs5">
<tr valign="top" class="whs6">
<td width="50%" class="whs7">
<p class="whs8"><img src="pics/straight_before.png" x-maintain-ratio="TRUE" width="389px" height="334px" border="0" class="img_whs9"></td>
<td width="50%" class="whs10">
<p class="whs11"><img src="pics/straight_after.png" x-maintain-ratio="TRUE" width="389px" height="334px" border="0" class="img_whs9"></td></tr>
</table>
<p class="whs12">&nbsp;&nbsp;&nbsp;</p>
<p class="whs12">The left image shows a 1D path mesh, built
on a linear edge, and the initial 2D mesh. The right image shows the result
of extrusion of two edges (#1 and #2) of the initial mesh along the path.
Node #1 of path mesh has been selected as <span style="font-weight: bold;"><B>Start
node</B></span>.</p>
<p class="whs12">&nbsp;</p>
<ul type="disc" class="whs3">
<li class=kadov-p><p><span style="font-weight: bold;"><B>Extrusion along
a curvilinear edge</B></span> (with and without angles)</p></li>
</ul>
<table x-use-null-cells cellspacing="0" width="100%" class="whs4">
<col class="whs13">
<col class="whs13">
<col class="whs13">
<tr valign="top" class="whs6">
<td width="33.333%" class="whs14">
<p><img src="pics/curvi_simple_before.png" x-maintain-ratio="TRUE" width="389px" height="334px" border="0" class="img_whs9"></td>
<td width="33.333%" class="whs15">
<p><img src="pics/curvi_simple_after.png" x-maintain-ratio="TRUE" width="389px" height="334px" border="0" class="img_whs9"></td>
<td width="33.333%" class="whs16">
<p><img src="pics/curvi_angles_after.png" x-maintain-ratio="TRUE" width="389px" height="334px" border="0" class="img_whs9"></td></tr>
<tr valign="top" class="whs6">
<td width="33.333%" class="whs17">
<p>The left image shows a 1D path mesh, built on curvilinear edge, and
the initial &nbsp;2D
mesh.</td>
<td width="33.333%" class="whs18">
<p>The central image shows the result of extrusion of one edge (#2) of
the initial mesh along the path. &nbsp;Node
#1 of path mesh has been selected as <span style="font-weight: bold;"><B>Start
node</B></span>.</td>
<td width="33.333%" class="whs19">
<p>The same, but using angles {45, 45, 45, 0, -45, -45, -45}</td></tr>
</table>
<p class="whs11">&nbsp;</p>
<ul type="disc" class="whs3">
<li class=kadov-p><p class="whs11"><span style="font-weight: bold;"><B>Extrusion
along a sub-mesh.</B></span></p></li>
</ul>
<table x-use-null-cells cellspacing="0" width="100%" class="whs4">
<col class="whs5">
<col class="whs5">
<tr valign="top" class="whs6">
<td width="50%" class="whs7">
<p><img src="pics/edge_wire_before.png" x-maintain-ratio="TRUE" width="389px" height="334px" border="0" class="img_whs9"></td>
<td width="50%" class="whs10">
<p><img src="pics/edge_wire_after.png" x-maintain-ratio="TRUE" width="389px" height="334px" border="0" class="img_whs9"></td></tr>
</table>
<p class="whs12">&nbsp;</p>
<p class="whs12">In this example the path mesh has been built
on a wire (polyline with six edges). The first edge of the wire was used
as <span style="font-weight: bold;"><B>Shape (edge)</B></span>, node #1 as <span
style="font-weight: bold;"><B>Start node</B></span>. The angles have been defined
as {10, 10, 10}. The middle edge (#4) of the initial mesh has been extruded.</p>
<p class="whs12">&nbsp;</p>
<ul type="disc" class="whs3">
<li class=kadov-p><p class="whs20">Extrusion
of 2d elements along a sub-mesh.</p></li>
</ul>
<table x-use-null-cells cellspacing="0" width="100%" class="whs4">
<col class="whs5">
<col class="whs5">
<tr valign="top" class="whs6">
<td width="50%" class="whs7">
<p><img src="pics/edge_wire_3d_before.png" x-maintain-ratio="TRUE" width="389px" height="334px" border="0" class="img_whs9"></td>
<td width="50%" class="whs10">
<p><img src="pics/edge_wire_3d_after.png" x-maintain-ratio="TRUE" width="389px" height="334px" border="0" class="img_whs9"></td></tr>
</table>
<p class="whs12">&nbsp;</p>
<p class="whs12">This extrusion bases on the same path mesh
as in the previous example but the third edge of the wire was set as <span
style="font-weight: bold;"><B>Shape (edge)</B></span> and node #4 as <span style="font-weight: bold;"><B>Start
node</B></span>. Please note, that the extrusion has been done in direction
from node #4 to node #3, i.e. against the wire direction. In this example
both faces of the initial mesh have been extruded.</p>
<p class="whs12">&nbsp;</p>
<ul type="disc" class="whs3">
<li class=kadov-p><p class="whs21">Extrusion of 2d elements
along a closed path.</p></li>
</ul>
<table x-use-null-cells cellspacing="0" width="100%" class="whs4">
<col class="whs13">
<col class="whs13">
<col class="whs13">
<tr valign="top" class="whs6">
<td width="33.333%" class="whs14">
<p><img src="pics/circle_simple_before.png" x-maintain-ratio="TRUE" width="389px" height="334px" border="0" class="img_whs9"></td>
<td width="33.333%" class="whs15">
<p><img src="pics/circle_simple_after.png" x-maintain-ratio="TRUE" width="389px" height="334px" border="0" class="img_whs9"></td>
<td width="33.333%" class="whs16">
<p><img src="pics/circle_angles_after.png" x-maintain-ratio="TRUE" width="389px" height="334px" border="0" class="img_whs9"></td></tr>
<tr valign="top" class="whs6">
<td width="33.333%" class="whs17">
<p>The left image shows a path mesh built on a closed edge (circle).</td>
<td width="33.333%" class="whs18">
<p>The central image shows the result of extrusion of both faces of the
initial mesh. Note, that no sewing has been done, so, there are six coincident
nodes and two coincident faces in the resulting mesh.</td>
<td width="33.333%" class="whs19">
<p>The same, but using angles {45, -45, 45, -45, 45, -45, 45, -45}</td></tr>
</table>
<p class="whs12">&nbsp;</p>
<p>&nbsp;</p>
<p class=TODO>To use Extrusion along a path:</p>
<p class="whs12">1. From the <span style="font-weight: bold;"><B>Modification
</B></span>menu choose the <span style="font-weight: bold;"><B>Extrusion along
a path </B></span>item or click <img src="image101.gif" width="27px" height="24px" border="0" class="img_whs1"> button in the toolbar. The
following dialog box will appear:</p>
<p class="whs12">&nbsp;</p>
<p class=TODO
style="margin-left: 80px;"><img src="pics/extrusion1.png" x-maintain-ratio="TRUE" width="441px" height="541px" border="0" class="img_whs22"></p>
<p class="whs12">&nbsp;</p>
<p class="whs12">2. In the dialog box you should &nbsp;</p>
<ul type="disc" class="whs3">
<li class=kadov-p><p class="whs23">select the type of
elements which will be extruded (1D or 2D),</p></li>
<li class=kadov-p><p class="whs23">specify the <span style="font-weight: bold;"><B>IDs
of the elements</B></span> which will be extruded by selecting them in the
3D viewer or <span style="font-weight: bold;"><B>Select the whole mesh, submesh
or group</B></span>,</p></li>
<li class=kadov-p><p class="whs23">define the <span style="font-weight: bold;"><B>Path</B></span>
along which the elements will be extruded, </p></li>
</ul>
<p class="whs24">Path definition consists of several elements
</p>
<ul type="disc" class="whs3">
<li class=kadov-p><p class="whs25">Mesh
- <span style="font-weight: normal;">containing a 1D sub-mesh on the edge,
along which proceeds the extrusion.</span></p></li>
<li class=kadov-p><p class="whs25">Shape
(edge) - <span style="font-weight: normal;">as the mesh can be complex,
the edge is used to define the sub-mesh for the path.</span></p></li>
<li class=kadov-p><p class="whs25">Start
node - <span style="font-weight: normal;">&nbsp;the
first or the last node on the edge. It is used to define the direction
of extrusion.</span></p></li>
</ul>
<p class="whs12">&nbsp;</p>
<p class="whs12">3. There are two optional parameters, which
can be very useful.</p>
<ul type="disc" class="whs3">
<li class=kadov-p><p class="whs23">If the path of extrusion
is curvilinear, at each iteration the extruded shape is rotated to keep
its initial angularity to the curve. By default, the <span style="font-weight: bold;"><B>Base
Point</B></span> around which the shape is rotated is the mass center of the
shape, however, you can specify any point as the <span style="font-weight: bold;"><B>Base
Point</B></span> and the shape will be rotated with respect to this point.</p></li>
<li class=kadov-p><p class="whs23">The shape can also
be rotated around the path to get the resulting mesh in a helical fashion.
You can set the values of angles at the right, add them to the list of
angles at the left by pressing the <img src="image105.gif" width="26px" height="25px" border="0" class="img_whs26"> button and remove them
from the list by pressing the <img src="image106.gif" width="29px" height="28px" border="0" class="img_whs27"> button. </p></li>
</ul>
<p class="whs12">4. Click the <span style="font-weight: bold;"><B>Apply
</B></span>or <span style="font-weight: bold;"><B>OK </B></span>button. Mesh edges
will be extruded into faces, faces into volumes. The external surface
of the resulting 3d mesh (if faces have been extruded) is covered with
faces, and corners with edges. If the path is closed, the resulting mesh
can contain duplicated nodes and faces, because no sewing is done.</p>
<p class="whs12">&nbsp;</p>
<p>&nbsp;<span style="font-weight: bold;"><B>See
Also</B></span> a sample TUI Script of an <a href="modifying_meshes.htm#bookmark10">Extrusion
along a Path</a> operation. &nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<script type="text/javascript" language="javascript1.2">
<!--
if (window.writeIntopicBar)
writeIntopicBar(0);
//-->
</script>
</body>
</html>

View File

@ -1,120 +0,0 @@
<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
<html>
<head>
<title>Free borders</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; width:30px; height:30px; float:none; border-style:none; }
p.whs2 { margin-left:40px; }
img_whs3 { border:none; width:278px; height:231px; float:none; border-style:none; }
p.whs4 { margin-left:0px; }
-->
</style><script type="text/javascript" language="JavaScript">
<!--
if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))
{
var strNSS = "<style type='text/css'>";
strNSS += "p.whs4 {margin-left: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("MESH module\nQuality controls\nFree borders");
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>Free borders</h1>
<p><img src="i_blue.jpg" x-maintain-ratio="TRUE" width="30px" height="30px" border="0" class="img_whs1">This mesh quality control highlights borders of faces
consisting of edges belonging to one face only.</p>
<p>&nbsp;</p>
<p class="whs2"><img src="pics/free_borders1.png" x-maintain-ratio="TRUE" width="278px" height="231px" border="0" class="img_whs3"> &nbsp;</p>
<p>&nbsp;</p>
<p>In this picture the free borders are displayed in white. </p>
<p>&nbsp;</p>
<p class="whs4"><span style="font-weight: bold;"><B>See Also</B></span>
a sample TUI Script of a <a href="quality_controls.htm#bookmark">Free
Borders quality control</a> operation. &nbsp;</p>
<p>&nbsp;</p>
<script type="text/javascript" language="javascript1.2">
<!--
if (window.writeIntopicBar)
writeIntopicBar(0);
//-->
</script>
</body>
</html>

View File

@ -1,122 +0,0 @@
<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
<html>
<head>
<title>Free_edges</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; width:30px; height:30px; float:none; border-style:none; }
p.whs2 { margin-left:40px; }
img_whs3 { border:none; border-style:none; width:395px; height:445px; float:none; }
p.whs4 { margin-left:0px; }
-->
</style><script type="text/javascript" language="JavaScript">
<!--
if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))
{
var strNSS = "<style type='text/css'>";
strNSS += "p.whs4 {margin-left: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("MESH module\nQuality controls\nFree edges");
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>Free edges</h1>
<p><img src="i_blue.jpg" x-maintain-ratio="TRUE" width="30px" height="30px" border="0" class="img_whs1"> &nbsp;&nbsp;This
mesh quality control highlights borders of &nbsp;elements
of mesh consisting of edges belonging to one element of mesh only.</p>
<p>&nbsp;</p>
<p class="whs2"><img src="pics/free_edges.png" x-maintain-ratio="TRUE" width="395px" height="445px" border="0" class="img_whs3"></p>
<p class="whs2">&nbsp;</p>
<p class="whs2">In this picture some elements of mesh have
been deleted and the &quot;holes&quot; are outlined in red. </p>
<p class="whs2">&nbsp;</p>
<p class="whs4"><span style="font-weight: bold;"><B>See Also</B></span>
a sample TUI Script of a <a href="quality_controls.htm#bookmark3">Free
Edges quality control</a> operation. &nbsp;</p>
<p>&nbsp;</p>
<script type="text/javascript" language="javascript1.2">
<!--
if (window.writeIntopicBar)
writeIntopicBar(0);
//-->
</script>
</body>
</html>

View File

@ -1,662 +0,0 @@
<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
<html>
<head>
<title>Grouping Elements</title>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
<meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com"><style type="text/css">
<!--
p.whs1 { margin-top:0pt; margin-bottom:0pt; font-family:'Lucida Console' , monospace; }
p.whs2 { margin-top:0pt; margin-bottom:0pt; font-family:'Times New Roman' , serif; }
p.whs3 { margin-top:0pt; margin-bottom:0pt; }
img_whs4 { border:none; width:430px; height:391px; float:none; border-style:none; }
img_whs5 { border:none; float:none; width:463px; height:417px; border-style:none; }
img_whs6 { border:none; width:541px; height:417px; float:none; border-style:none; }
img_whs7 { border:none; width:394px; height:425px; float:none; border-style:none; }
img_whs8 { border:none; float:none; width:368px; height:379px; border-style:none; }
img_whs9 { border:none; float:none; width:344px; height:381px; border-style:none; }
img_whs10 { border:none; width:314px; height:351px; float:none; border-style:none; }
img_whs11 { border:none; float:none; width:319px; height:351px; border-style:none; }
img_whs12 { border:none; float:none; width:304px; height:352px; border-style:none; }
img_whs13 { border:none; width:318px; height:355px; float:none; border-style:none; }
img_whs14 { border:none; float:none; width:318px; height:355px; border-style:none; }
img_whs15 { border:none; float:none; width:320px; height:354px; 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.whs1 {margin-top:1pt;margin-bottom:1pt; }";
strNSS += "p.whs2 {margin-top:1pt;margin-bottom:1pt; }";
strNSS += "p.whs3 {margin-top:1pt;margin-bottom: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("MESH module\nTUI Scripts\nGrouping Elements");
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>Grouping Elements</h1>
<h3><a name=bookmark>Create a Standalone Group</a></h3>
<p class="whs1">import SMESH_mechanic</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">smesh &nbsp;=
SMESH_mechanic.smesh</p>
<p class="whs1">mesh &nbsp;&nbsp;=
SMESH_mechanic.mesh</p>
<p class="whs1">salome = SMESH_mechanic.salome</p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># Get ids of all faces
with area &gt; 100 </p>
<p class="whs1">aFilter = smesh.GetFilter(smesh.FACE,
smesh.FT_Area, smesh.FT_MoreThan, 100.)</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">anIds = mesh.GetIdsFromFilter(aFilter)
</p>
<p class="whs1">&nbsp;</p>
<p class="whs3"># create a group consisting
of faces with area &gt; 100</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">aGroup = mesh.MakeGroupByIds(&quot;Area
&gt; 100&quot;, smesh.FACE, anIds)</p>
<p class="whs1">&nbsp;</p>
<p class="whs3"><span style="font-family: 'Lucida Console', monospace;">salome.sg.updateObjBrowser(1)</span>
</p>
<p class="whs3">&nbsp;</p>
<p class="whs3"><img src="pics/create_group.png" x-maintain-ratio="TRUE" width="430px" height="391px" border="0" class="img_whs4"></p>
<h3><a name=bookmark5>Create a Group on Geometry</a></h3>
<p class="whs1">import salome</p>
<p class="whs1">import geompy</p>
<p class="whs1">import smesh</p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># create a box</p>
<p class="whs1">box = geompy.MakeBox(0.,
0., 0., 100., 100., 100.)</p>
<p class="whs1">geompy.addToStudy(box,
&quot;box&quot;)</p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># add the first face
of the box to the study</p>
<p class="whs1"><span style="font-family: 'Lucida Console', monospace;">subShapeList
= geompy.SubShapeAll(box, geompy.ShapeType[&quot;FACE&quot;])</span></p>
<p class="whs1">face = subShapeList[0]</p>
<p class="whs1">geompy.addToStudyInFather(box,
face, &quot;face 1&quot;) </p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># create group of edges
on the face</p>
<p class="whs1"><span style="font-family: 'Lucida Console', monospace;">aGeomGroupE
= geompy.CreateGroup(face, geompy.ShapeType[&quot;EDGE&quot;])</span></p>
<p class="whs1">geompy.AddObject(aGeomGroupE,
3)</p>
<p class="whs1">geompy.AddObject(aGeomGroupE,
6)</p>
<p class="whs1">geompy.AddObject(aGeomGroupE,
8)</p>
<p class="whs1">geompy.AddObject(aGeomGroupE,
10)</p>
<p class="whs1">geompy.addToStudyInFather(face,
aGeomGroupE, &quot;Group of Edges&quot;)</p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># create quadrangle
2D mesh on the box</p>
<p class="whs1"><span style="font-family: 'Lucida Console', monospace;">quadra
= smesh.Mesh(box, &quot;Box : quadrangle 2D mesh&quot;)</span></p>
<p class="whs1">algo1D = quadra.Segment()</p>
<p class="whs1">quadra.Quadrangle()</p>
<p class="whs1">algo1D.NumberOfSegments(7)
</p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># compute the mesh</p>
<p class="whs1">quadra.Compute()</p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># create SMESH group
on the face with name &quot;SMESHGroup1&quot;</p>
<p class="whs1"><span style="font-family: 'Lucida Console', monospace;">aSmeshGroup1
= quadra.GroupOnGeom(face, &quot;SMESHGroup1&quot;)</span></p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># create SMESH group
on &lt;aGeomGroupE&gt; with default name</p>
<p class="whs1">aSmeshGroup2 = quadra.GroupOnGeom(aGeomGroupE)
</p>
<p class="whs3">&nbsp;</p>
<p class="whs3"><span style="font-family: 'Lucida Console', monospace;">salome.sg.updateObjBrowser(1)</span>
</p>
<h3><a name=bookmark1>Edit a Group</a></h3>
<p class="whs1">import SMESH_mechanic</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">smesh &nbsp;=
SMESH_mechanic.smesh</p>
<p class="whs1">mesh &nbsp;&nbsp;=
SMESH_mechanic.mesh</p>
<p class="whs1">salome = SMESH_mechanic.salome</p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># Get ids of all faces
with area &gt; 35</p>
<p class="whs1">aFilter = smesh.GetFilter(smesh.FACE,
smesh.FT_Area, smesh.FT_MoreThan, 35.)</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">anIds = mesh.GetIdsFromFilter(aFilter)
</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">print &quot;Criterion:
Area &gt; 35, Nb = &quot;, len(anIds)</p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># create a group by
adding elements with area &gt; 35</p>
<p class="whs1"><span style="font-family: 'Lucida Console', monospace;">aGroup
= mesh.CreateEmptyGroup(smesh.FACE, &quot;Area &gt; 35&quot;)</span></p>
<p class="whs1">aGroup.Add(anIds)
</p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># Get ids of all faces
with area &gt; 40</p>
<p class="whs1">aFilter = smesh.GetFilter(smesh.FACE,
smesh.FT_Area, smesh.FT_MoreThan, 40.)</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">anIds = mesh.GetIdsFromFilter(aFilter)</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">print &quot;Criterion:
Area &gt; 40, Nb = &quot;, len(anIds) </p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># create a group of
elements with area [35; 40] by removing elements with area &gt; 40 from
group aGroup</p>
<p class="whs1">aGroup.Remove(anIds)
</p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># print the result</p>
<p class="whs1">aGroupElemIDs =
aGroup.GetListOfID()</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">print &quot;Criterion:
35 &lt; Area &lt; 40, Nb = &quot;, len(aGroupElemIDs)</p>
<p class="whs1">j = 1</p>
<p class="whs1">for i in range(len(aGroupElemIDs)):</p>
<p class="whs1">&nbsp;&nbsp;if
j &gt; 20: j = 1; print &quot;&quot;</p>
<p class="whs1">&nbsp;&nbsp;print
aGroupElemIDs[i],</p>
<p class="whs1">&nbsp;&nbsp;j
= j + 1</p>
<p class="whs1">&nbsp;&nbsp;pass</p>
<p class="whs1">print &quot;&quot;</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">salome.sg.updateObjBrowser(1)
</p>
<p class="whs3">&nbsp;</p>
<p class="whs3"><img src="pics/editing_groups1.png" x-maintain-ratio="TRUE" width="463px" height="417px" border="0" class="img_whs5"> &nbsp;<img src="pics/editing_groups2.png" x-maintain-ratio="TRUE" width="541px" height="417px" border="0" class="img_whs6"></p>
<h3><a name=bookmark2>Union of two groups</a></h3>
<p class="whs1">import SMESH_mechanic</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">smesh &nbsp;=
SMESH_mechanic.smesh</p>
<p class="whs1">mesh &nbsp;&nbsp;=
SMESH_mechanic.mesh</p>
<p class="whs1">salome = SMESH_mechanic.salome</p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># Criterion : AREA
&gt; 20</p>
<p class="whs1">aFilter = smesh.GetFilter(smesh.FACE,
smesh.FT_Area, smesh.FT_MoreThan, 20.)</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">anIds = mesh.GetIdsFromFilter(aFilter)</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">print &quot;Criterion:
Area &gt; 20, Nb = &quot;, len( anIds ) </p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># create a group by
adding elements with area &gt; 20</p>
<p class="whs1">aGroup1 = mesh.CreateEmptyGroup(SMESH.FACE,
&quot;Area &gt; 20&quot;)</p>
<p class="whs1">aGroup1.Add(anIds)</p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># Criterion : AREA
= 20</p>
<p class="whs1"><span style="font-family: 'Lucida Console', monospace;">aFilter
= smesh.GetFilter(smesh.FACE, smesh.FT_Area, smesh.FT_EqualTo, 20.)</span></p>
<p class="whs1">&nbsp;</p>
<p class="whs1">anIds = mesh.GetIdsFromFilter(aFilter)</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">print &quot;Criterion:
Area = 20, Nb = &quot;, len( anIds ) </p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># create a group by
adding elements with area = 20</p>
<p class="whs1">aGroup2 = mesh.CreateEmptyGroup(
smesh.FACE, &quot;Area = 20&quot; )</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">aGroup2.Add(anIds)</p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># create union group
: area &gt;= 20</p>
<p class="whs1"><span style="font-family: 'Lucida Console', monospace;">aGroup3
= mesh.UnionGroups(aGroup1, aGroup2, &quot;Area &gt;= 20&quot;)</span></p>
<p class="whs1">print &quot;Criterion:
Area &gt;= 20, Nb = &quot;, len(aGroup3.GetListOfID())</p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># Criterion : AREA
&lt; 20</p>
<p class="whs1"><span style="font-family: 'Lucida Console', monospace;">aFilter
= smesh.GetFilter(smesh.FACE, smesh.FT_Area, smesh.FT_LessThan, 20.)</span></p>
<p class="whs1">&nbsp;</p>
<p class="whs1">anIds = mesh.GetIdsFromFilter(aFilter)</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">print &quot;Criterion:
Area &lt; 20, Nb = &quot;, len(anIds)</p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># create a group by
adding elements with area &lt; 20</p>
<p class="whs1"><span style="font-family: 'Lucida Console', monospace;">aGroup4
= mesh.CreateEmptyGroup(smesh.FACE, &quot;Area &lt; 20&quot;)</span></p>
<p class="whs1">aGroup4.Add(anIds)</p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># create union group
: area &gt;= 20 and area &lt; 20</p>
<p class="whs1"><span style="font-family: 'Lucida Console', monospace;">aGroup5
= mesh.UnionGroups(aGroup3, aGroup4, &quot;Any Area&quot;)</span></p>
<p class="whs1">print &quot;Criterion:
Any Area, Nb = &quot;, len(aGroup5.GetListOfID())</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">salome.sg.updateObjBrowser(1)
</p>
<p class="whs1">&nbsp;</p>
<p class="whs1"><img src="pics/union_groups1.png" x-maintain-ratio="TRUE" width="394px" height="425px" border="0" class="img_whs7"></p>
<p class="whs1">&nbsp;</p>
<p class="whs1"><img src="pics/union_groups2.png" x-maintain-ratio="TRUE" width="368px" height="379px" border="0" class="img_whs8"> <img src="pics/union_groups3.png" x-maintain-ratio="TRUE" width="344px" height="381px" border="0" class="img_whs9"></p>
<p class="whs1">&nbsp;</p>
<h3><a name=bookmark3>Intersection of two groups</a></h3>
<p class="whs1">import SMESH_mechanic</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">smesh &nbsp;=
SMESH_mechanic.smesh</p>
<p class="whs1">mesh &nbsp;&nbsp;=
SMESH_mechanic.mesh</p>
<p class="whs1">salome = SMESH_mechanic.salome</p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># Criterion : AREA
&gt; 20</p>
<p class="whs1">aFilter = smesh.GetFilter(smesh.FACE,
smesh.FT_Area, smesh.FT_MoreThan, 20.)</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">anIds = mesh.GetIdsFromFilter(aFilter)</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">print &quot;Criterion:
Area &gt; 20, Nb = &quot;, len(anIds) </p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># create a group by
adding elements with area &gt; 20</p>
<p class="whs1">aGroup1 = mesh.CreateEmptyGroup(SMESH.FACE,
&quot;Area &gt; 20&quot;)</p>
<p class="whs1">aGroup1.Add(anIds)</p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># Criterion : AREA
&lt; 60</p>
<p class="whs1">aFilter = smesh.GetFilter(smesh.FACE,
smesh.FT_Area, smesh.FT_LessThan, 60.)</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">anIds = mesh.GetIdsFromFilter(aFilter)</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">print &quot;Criterion:
Area &lt; 60, Nb = &quot;, len(anIds) </p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># create a group by
adding elements with area &lt; 60</p>
<p class="whs1">aGroup2 = mesh.CreateEmptyGroup(SMESH.FACE,
&quot;Area &lt; 60&quot;)</p>
<p class="whs1">aGroup2.Add(anIds)</p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># create an intersection
of groups : 20 &lt; area &lt; 60</p>
<p class="whs1"><span style="font-family: 'Lucida Console', monospace;">aGroup3
= mesh.IntersectGroups(aGroup1, aGroup2, &quot;20 &lt; Area &lt; 60&quot;)</span></p>
<p class="whs1">print &quot;Criterion:
20 &lt; Area &lt; 60, Nb = &quot;, len(aGroup3.GetListOfID())</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">salome.sg.updateObjBrowser(1)
</p>
<p class="whs3">&nbsp;</p>
<p class="whs3"><img src="pics/intersect_groups1.png" x-maintain-ratio="TRUE" width="314px" height="351px" border="0" class="img_whs10"> &nbsp;<img src="pics/intersect_groups2.png" x-maintain-ratio="TRUE" width="319px" height="351px" border="0" class="img_whs11"> &nbsp;<img src="pics/intersect_groups3.png" x-maintain-ratio="TRUE" width="304px" height="352px" border="0" class="img_whs12"></p>
<h3><a name=bookmark4>Cut of two groups</a></h3>
<p class="whs1">import SMESH_mechanic</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">smesh &nbsp;=
SMESH_mechanic.smesh</p>
<p class="whs1">mesh &nbsp;&nbsp;=
SMESH_mechanic.mesh</p>
<p class="whs1">salome = SMESH_mechanic.salome</p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># Criterion : AREA
&gt; 20</p>
<p class="whs1">aFilter = smesh.GetFilter(smesh.FACE,
smesh.FT_Area, smesh.FT_MoreThan, 20.)</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">anIds = mesh.GetIdsFromFilter(aFilter)</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">print &quot;Criterion:
Area &gt; 20, Nb = &quot;, len(anIds) </p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># create a group by
adding elements with area &gt; 20</p>
<p class="whs1"><span style="font-family: 'Lucida Console', monospace;">aGroupMain
= mesh.MakeGroupByIds(&quot;Area &gt; 20&quot;, smesh.FACE, anIds)</span></p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># Criterion : AREA
&lt; 60</p>
<p class="whs1">aFilter = smesh.GetFilter(smesh.FACE,
smesh.FT_Area, smesh.FT_LessThan, 60.)</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">anIds = mesh.GetIdsFromFilter(aFilter)</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">print &quot;Criterion:
Area &lt; 60, Nb = &quot;, len(anIds) </p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># create a group by
adding elements with area &lt; 60</p>
<p class="whs1"><span style="font-family: 'Lucida Console', monospace;">aGroupTool
= mesh.MakeGroupByIds(&quot;Area &lt; 60&quot;, smesh.FACE, anIds)</span></p>
<p class="whs1">&nbsp;</p>
<p class="whs2"># create a cut of groups
: area &gt;= 60</p>
<p class="whs1"><span style="font-family: 'Lucida Console', monospace;">aGroupRes
= mesh.CutGroups(aGroupMain, aGroupTool, &quot;Area &gt;= 60&quot;)</span></p>
<p class="whs1">print &quot;Criterion:
Area &gt;= 60, Nb = &quot;, len(aGroupRes.GetListOfID())</p>
<p class="whs1">&nbsp;</p>
<p class="whs1">salome.sg.updateObjBrowser(1)
</p>
<p class="whs1">&nbsp;</p>
<p class="whs3"><img src="pics/cut_groups1.png" x-maintain-ratio="TRUE" width="318px" height="355px" border="0" class="img_whs13"> &nbsp;<img src="pics/cut_groups2.png" x-maintain-ratio="TRUE" width="318px" height="355px" border="0" class="img_whs14"> &nbsp;<img src="pics/cut_groups3.png" x-maintain-ratio="TRUE" width="320px" height="354px" border="0" class="img_whs15"></p>
<script type="text/javascript" language="javascript1.2">
<!--
if (window.writeIntopicBar)
writeIntopicBar(0);
//-->
</script>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 927 B

After

Width:  |  Height:  |  Size: 977 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Some files were not shown because too many files have changed in this diff Show More