Salome HOME
PAL12557: Documentation for scripts is not up to date.
[modules/geom.git] / doc / salome / gui / GEOM / extrusion.htm
1 <!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">\r
2 \r
3 <html>\r
4 \r
5 <head>\r
6 <title>Extrusion</title>\r
7 <meta http-equiv="content-type" content="text/html; charset=windows-1252">\r
8 <meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com">\r
9 <link rel="stylesheet" href="default_ns.css"><script type="text/javascript" language="JavaScript" title="WebHelpSplitCss">\r
10 <!--\r
11 if (navigator.appName !="Netscape")\r
12 {   document.write("<link rel='stylesheet' href='default.css'>");}\r
13 //-->\r
14 </script>\r
15 <style type="text/css">\r
16 <!--\r
17 img_whs1 { width:20px; height:20px; border-style:none; }\r
18 p.whs2 { font-size:12pt; }\r
19 p.whs3 { font-size:12pt; margin-left:40px; }\r
20 img_whs4 { border:none; width:400px; height:350px; float:none; }\r
21 p.whs5 { font-size:12pt; font-weight:bold; }\r
22 p.whs6 { font-size:12pt; margin-left:40px; font-weight:normal; font-style:italic; }\r
23 img_whs7 { border:none; width:400px; height:359px; float:none; }\r
24 p.whs8 { font-size:12pt; font-style:italic; margin-left:40px; }\r
25 img_whs9 { border:none; float:none; width:300px; height:175px; border-style:none; }\r
26 img_whs10 { border:none; width:350px; height:175px; float:none; border-style:none; }\r
27 -->\r
28 </style><script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">\r
29 <!--\r
30 function reDo() {\r
31   if (innerWidth != origWidth || innerHeight != origHeight)\r
32      location.reload();\r
33 }\r
34 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {\r
35         origWidth = innerWidth;\r
36         origHeight = innerHeight;\r
37         onresize = reDo;\r
38 }\r
39 onerror = null; \r
40 //-->\r
41 </script>\r
42 <style type="text/css">\r
43 <!--\r
44 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }\r
45 p.WebHelpNavBar { text-align:right; }\r
46 -->\r
47 </style><script type="text/javascript" language="javascript1.2" src="whmsg.js"></script>\r
48 <script type="text/javascript" language="javascript" src="whver.js"></script>\r
49 <script type="text/javascript" language="javascript1.2" src="whproxy.js"></script>\r
50 <script type="text/javascript" language="javascript1.2" src="whutils.js"></script>\r
51 <script type="text/javascript" language="javascript1.2" src="whtopic.js"></script>\r
52 <script type="text/javascript" language="javascript1.2">\r
53 <!--\r
54 if (window.gbWhTopic)\r
55 {\r
56         if (window.setRelStartPage)\r
57         {\r
58         addTocInfo("Geometry module\nCreating geometrical objects\nCreating Complex Objects\nExtrusion");\r
59 addButton("show",BTN_IMG,"Show","","","","",0,0,"whd_show0.gif","whd_show2.gif","whd_show1.gif");\r
60 addButton("hide",BTN_IMG,"Hide","","","","",0,0,"whd_hide0.gif","whd_hide2.gif","whd_hide1.gif");\r
61 \r
62         }\r
63 \r
64 \r
65         if (window.setRelStartPage)\r
66         {\r
67         setRelStartPage("index.htm");\r
68 \r
69                 autoSync(1);\r
70                 sendSyncInfo();\r
71                 sendAveInfoOut();\r
72         }\r
73 \r
74 }\r
75 else\r
76         if (window.gbIE4)\r
77                 document.location.reload();\r
78 //-->\r
79 </script>\r
80 </head>\r
81 <body><script type="text/javascript" language="javascript1.2">\r
82 <!--\r
83 if (window.writeIntopicBar)\r
84         writeIntopicBar(4);\r
85 //-->\r
86 </script>\r
87 <h1><span style="font-size: 14pt;"><font size=4 style="font-size:14pt;"><b style="font-weight: bold;"><img src="files/salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image56.gif" width="20px" height="20px" border="0" class="img_whs1"> &nbsp;</b></font></span>Extrusion</h1>\r
88 \r
89 <p><b><span style="font-weight: normal;">T</b>o</span> generate an <span \r
90  style="font-weight: bold;"><B>Extrusion</B></span> on an object in the <span \r
91  style="font-weight: bold;"><B>Main Menu</B></span> select <span style="font-weight: bold;"><B>New \r
92  Entity - &gt; Generation &nbsp;- \r
93  &gt; Create an Extrusion</B></span></p>\r
94 \r
95 <p class="whs2">&nbsp;</p>\r
96 \r
97 <p>There are 2 algorithms for creation of <span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">an \r
98  Extrusion (Prism)</font></span>. </p>\r
99 \r
100 <p class="whs2">Firstly, you can define the <span style="font-weight: bold;"><B>Base \r
101  Shape </B></span>(a basis of the extrusion)<span style="font-weight: bold;"><B>, \r
102  </B></span>the <span style="font-weight: bold;"><B>Vector</B></span> (a direction \r
103  of the extrusion) and the <span style="font-weight: bold;"><B>Height</B></span> \r
104  of extrusion. &nbsp;</p>\r
105 \r
106 <p class="whs2"><b style="font-weight: bold;"><span style="font-weight: normal;">The</span> \r
107  Result <span style="font-weight: normal;">of the operation will be a</span></b> \r
108  GEOM_Object (edge, face, solid or compsolid).</p>\r
109 \r
110 <p class="whs2"><span style="font-weight: bold;"><B><b style="font-weight: bold;">TUI \r
111  Command :</b><i> </i></B></span><span style="font-style: italic;"><I>geompy.MakePrismVecH(Base, \r
112  Vector, Height)</I></span></p>\r
113 \r
114 <p class="whs2"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"><b style="font-weight: bold;">Arguments:</b> \r
115  Name + 1 shape (vertex, edge, wire, face or shell) serving as base object \r
116  + 1 vector (for direction of the extrusion) + 1 value (dimension).</font></span></p>\r
117 \r
118 <p>&nbsp;</p>\r
119 \r
120 <p class="whs3"><img src="pics/extrusion1.png" x-maintain-ratio="TRUE" width="400px" height="350px" border="0" class="img_whs4"></p>\r
121 \r
122 <p class="whs2">&nbsp;</p>\r
123 \r
124 <p class="whs5"><span style="font-weight: normal;">Secondly, \r
125  you can define the</span> Extrusion <span style="font-weight: normal;">by \r
126  the </span>Base Shape<span style="font-weight: normal;"> and the </span>Start<span \r
127  style="font-weight: normal;"> and </span>End Point<span style="font-weight: normal;"> \r
128  of the </span>Vector<span style="font-weight: normal;"> &nbsp;(in \r
129  this way you don't need to create it in advance).</span> </p>\r
130 \r
131 <p class="whs5"><b>TUI Command:</b> <span \r
132  style="font-weight: normal; font-style: italic;"><I>geompy.MakePrism(Base, \r
133  Point1, Point2) </I></span></p>\r
134 \r
135 <p class="whs2"><b>Arguments:</b> Name + 1 shape (vertex, edge, \r
136  wire, face or shell) serving as base object + 2 vertices.</p>\r
137 \r
138 <p>&nbsp;</p>\r
139 \r
140 <p class="whs6"><img src="pics/extrusion2.png" x-maintain-ratio="TRUE" width="400px" height="359px" border="0" class="img_whs7"></p>\r
141 \r
142 <p class="whs6">&nbsp;</p>\r
143 \r
144 <p class="whs2"><b style="font-weight: bold;">Examples:</b></p>\r
145 \r
146 <p class="whs2">&nbsp;</p>\r
147 \r
148 <p class="whs8">Base Shape &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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prisms</p>\r
149 \r
150 <p class="whs3"><img src="pics/prisms_basessn.png" x-maintain-ratio="TRUE" width="300px" height="175px" border="0" class="img_whs9"> <img src="pics/prismssn.png" x-maintain-ratio="TRUE" width="350px" height="175px" border="0" class="img_whs10"> &nbsp;</p>\r
151 \r
152 <p class="whs2">&nbsp;</p>\r
153 \r
154 <p class="whs2">Our <span style="font-weight: bold;"><B>TUI Scripts</B></span> \r
155  provide you with useful examples of creation of <a href="complex_objects.htm#bookmark">Complex \r
156  Geometric Objects</a>. </p>\r
157 \r
158 <p>&nbsp;</p>\r
159 \r
160 <script type="text/javascript" language="javascript1.2">\r
161 <!--\r
162 if (window.writeIntopicBar)\r
163         writeIntopicBar(0);\r
164 //-->\r
165 </script>\r
166 </body>\r
167 </html>\r