Salome HOME
Update GEOM documentation.
[modules/geom.git] / doc / salome / gui / GEOM / cone.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>Cone</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-weight:bold; }\r
20 img_whs4 { border:none; width:312px; height:402px; float:none; border-style:none; }\r
21 p.whs5 { margin-left:0px; }\r
22 p.whs6 { font-size:12pt; margin-left:40px; }\r
23 img_whs7 { border:none; width:276px; height:282px; float:none; border-style:none; }\r
24 -->\r
25 </style><script type="text/javascript" language="JavaScript">\r
26 <!--\r
27 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))\r
28 {\r
29   var strNSS = "<style type='text/css'>";\r
30   strNSS += "p.whs5 {margin-left:1pt; }";\r
31   strNSS +="</style>";\r
32   document.write(strNSS);\r
33 }\r
34 //-->\r
35 </script>\r
36 <script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">\r
37 <!--\r
38 function reDo() {\r
39   if (innerWidth != origWidth || innerHeight != origHeight)\r
40      location.reload();\r
41 }\r
42 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {\r
43         origWidth = innerWidth;\r
44         origHeight = innerHeight;\r
45         onresize = reDo;\r
46 }\r
47 onerror = null; \r
48 //-->\r
49 </script>\r
50 <style type="text/css">\r
51 <!--\r
52 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }\r
53 -->\r
54 </style><script type="text/javascript" language="javascript1.2" src="whmsg.js"></script>\r
55 <script type="text/javascript" language="javascript" src="whver.js"></script>\r
56 <script type="text/javascript" language="javascript1.2" src="whproxy.js"></script>\r
57 <script type="text/javascript" language="javascript1.2" src="whutils.js"></script>\r
58 <script type="text/javascript" language="javascript1.2" src="whtopic.js"></script>\r
59 </head>\r
60 <body><script type="text/javascript" language="javascript1.2">\r
61 <!--\r
62 if (window.gbWhTopic)\r
63 {\r
64         if (window.addTocInfo)\r
65         {\r
66         addTocInfo("GEOM module\nCreating geometrical objects\nCreation of Primitives\nCone");\r
67 addButton("show",BTN_TEXT,"Show","","","","",0,0,"","","");\r
68 \r
69         }\r
70         if (window.writeBtnStyle)\r
71                 writeBtnStyle();\r
72 \r
73         if (window.writeIntopicBar)\r
74                 writeIntopicBar(1);\r
75 \r
76         if (window.setRelStartPage)\r
77         {\r
78         setRelStartPage("geom.htm");\r
79 \r
80                 autoSync(1);\r
81                 sendSyncInfo();\r
82                 sendAveInfoOut();\r
83         }\r
84 }\r
85 else\r
86         if (window.gbIE4)\r
87                 document.location.reload();\r
88 //-->\r
89 </script>\r
90 <h1><span style="font-size: 14pt;"><font size=4 style="font-size:14pt;"><img src="files/salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image103.gif" width="20px" height="20px" border="0" class="img_whs1"> &nbsp;</font></span>Cone</h1>\r
91 \r
92 <p><b><span style="font-weight: normal;">T</b>o</span> create a <span style="font-weight: bold;"><B>Cone</B></span> \r
93  in the <span style="font-weight: bold;"><B>Main Menu</B></span> select <span \r
94  style="font-weight: bold;"><B>New Entity - &gt; Primitives - &gt; Cone</B></span></p>\r
95 \r
96 <p>&nbsp;</p>\r
97 \r
98 <p>There are two algorithms for creation of a <span style="font-weight: bold;"><B>Torus</B></span>. \r
99  </p>\r
100 \r
101 <p class="whs2"><b style="font-weight: bold;"><span style="font-weight: normal;">The</span> \r
102  Result <span style="font-weight: normal;">of each operation will be a</span></b> \r
103  GEOM_Object (SOLID).</p>\r
104 \r
105 <p>&nbsp;</p>\r
106 \r
107 <p>Firstly, you can define a <span style="font-weight: bold;"><B>Cone</B></span> \r
108  by the <span style="font-weight: bold;"><B>Base Point</B></span> (the central \r
109  point of the cone base), the <span style="font-weight: bold;"><B>Axis</B></span>, \r
110  the <span style="font-weight: bold;"><B>Height</B></span> and the first and the \r
111  second <span style="font-weight: bold;"><B>Radiuses</B></span>. </p>\r
112 \r
113 <p><b style="font-weight: bold;">TUI Command:</b> <span style="font-style: italic;"><I>geompy.MakeCone(Point, \r
114  Axis, Radius1, Radius2)</I></span></p>\r
115 \r
116 <p class="whs3"><b style="font-weight: bold;">Arguments: \r
117  </b><span style="font-size: 12pt; font-weight: normal;"><font size=3 style="font-size:12pt;">Name + 1 vertex \r
118  + 1 vector (for direction) + 3 values (Radius of the base part, radius \r
119  of the upper part, height).</font></span></p>\r
120 \r
121 <p><img src="pics/cone1.png" x-maintain-ratio="TRUE" width="312px" height="402px" border="0" class="img_whs4"></p>\r
122 \r
123 <p>&nbsp;</p>\r
124 \r
125 <p>Secondly, you can define a <span style="font-weight: bold;"><B>Cone</B></span> \r
126  with the centre at the origin of coordinates by its <span style="font-weight: bold;"><B>Height</B></span> \r
127  and <span style="font-weight: bold;"><B>Radiuses</B></span>. The <span style="font-weight: bold;"><B>Axis</B></span> \r
128  of the <span style="font-weight: bold;"><B>Cone</B></span> will be collinear \r
129  to the OZ axis of the coordinate system. </p>\r
130 \r
131 <p><b style="font-weight: bold;">TUI Command:</b> <span style="font-weight: bold;"><B>geompy.MakeConeR1R2H(Radius1, \r
132  Radius2, Height)</B></span> </p>\r
133 \r
134 <p class="whs3"><b style="font-weight: bold;">Arguments: \r
135  </b><span style="font-size: 12pt; font-weight: normal;"><font size=3 style="font-size:12pt;">Name + 3 values \r
136  (Radius of the base part, radius of the upper part, height).</font></span></p>\r
137 \r
138 <p class="whs5">&nbsp;&nbsp;<img src="pics/cone2.png" x-maintain-ratio="TRUE" width="312px" height="402px" border="0" class="img_whs4"></p>\r
139 \r
140 <p>&nbsp;</p>\r
141 \r
142 <p><span style="font-weight: bold;"><B>Note:</B></span> If both radiuses are non-zero, \r
143  the <span style="font-weight: bold;"><B>Cone</B></span> will be truncated. If \r
144  the radiuses are equal, a <span style="font-weight: bold;"><B>Cylinder</B></span> \r
145  will be created instead. </p>\r
146 \r
147 <p>&nbsp;</p>\r
148 \r
149 <p><b style="font-weight: bold;">Example:</b></p>\r
150 \r
151 <p>&nbsp;</p>\r
152 \r
153 <p class="whs6"><img src="pics/cones.png" x-maintain-ratio="TRUE" width="276px" height="282px" border="0" class="img_whs7"></p>\r
154 \r
155 <p class="whs6">&nbsp;</p>\r
156 \r
157 <p class="whs2">Our TUI Scripts provide you with useful examples \r
158  of creation of <a href="primitives.htm#bookmark4">Primitives</a>. </p>\r
159 \r
160 <p>&nbsp;</p>\r
161 \r
162 <script type="text/javascript" language="javascript1.2">\r
163 <!--\r
164 if (window.writeIntopicBar)\r
165         writeIntopicBar(0);\r
166 //-->\r
167 </script>\r
168 </body>\r
169 </html>\r