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