Salome HOME
Join modifications from branch OCC_debug_for_3_2_0b1
[modules/geom.git] / doc / salome / gui / GEOM / sphere.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>Sphere</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 { margin-left:40px; }\r
20 img_whs4 { border:none; width:312px; height:315px; float:none; border-style:none; }\r
21 p.whs5 { font-size:12pt; font-weight:bold; }\r
22 img_whs6 { border:none; width:286px; height:284px; float:none; border-style:none; }\r
23 p.whs7 { margin-left:40px; font-weight:bold; }\r
24 -->\r
25 </style><script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">\r
26 <!--\r
27 function reDo() {\r
28   if (innerWidth != origWidth || innerHeight != origHeight)\r
29      location.reload();\r
30 }\r
31 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {\r
32         origWidth = innerWidth;\r
33         origHeight = innerHeight;\r
34         onresize = reDo;\r
35 }\r
36 onerror = null; \r
37 //-->\r
38 </script>\r
39 <style type="text/css">\r
40 <!--\r
41 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }\r
42 -->\r
43 </style><script type="text/javascript" language="javascript1.2" src="whmsg.js"></script>\r
44 <script type="text/javascript" language="javascript" src="whver.js"></script>\r
45 <script type="text/javascript" language="javascript1.2" src="whproxy.js"></script>\r
46 <script type="text/javascript" language="javascript1.2" src="whutils.js"></script>\r
47 <script type="text/javascript" language="javascript1.2" src="whtopic.js"></script>\r
48 </head>\r
49 <body><script type="text/javascript" language="javascript1.2">\r
50 <!--\r
51 if (window.gbWhTopic)\r
52 {\r
53         if (window.addTocInfo)\r
54         {\r
55         addTocInfo("Geometry module\nCreating geometrical objects\nCreating Primitives\nSphere");\r
56 addButton("show",BTN_TEXT,"Show","","","","",0,0,"","","");\r
57 \r
58         }\r
59         if (window.writeBtnStyle)\r
60                 writeBtnStyle();\r
61 \r
62         if (window.writeIntopicBar)\r
63                 writeIntopicBar(1);\r
64 \r
65         if (window.setRelStartPage)\r
66         {\r
67         setRelStartPage("geom.htm");\r
68 \r
69                 autoSync(1);\r
70                 sendSyncInfo();\r
71                 sendAveInfoOut();\r
72         }\r
73 }\r
74 else\r
75         if (window.gbIE4)\r
76                 document.location.reload();\r
77 //-->\r
78 </script>\r
79 <h1><span style="font-size: 14pt;"><font size=4 style="font-size:14pt;"><img src="files/salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image101.gif" width="20px" height="20px" border="0" class="img_whs1"> &nbsp;</font></span>Sphere</h1>\r
80 \r
81 <p><b><span style="font-weight: normal;">T</b>o</span> create a <span style="font-weight: bold;"><B>Sphere</B></span> \r
82  in the <span style="font-weight: bold;"><B>Main Menu</B></span> select <span \r
83  style="font-weight: bold;"><B>New Entity - &gt; Primitives - &gt; Sphere</B></span></p>\r
84 \r
85 <p>&nbsp;</p>\r
86 \r
87 <p>There are two algorithms for creation of a <span style="font-weight: bold;"><B>Sphere</B></span>. \r
88  </p>\r
89 \r
90 <p class="whs2"><b style="font-weight: bold;"><span style="font-weight: normal;">The</span> \r
91  Result <span style="font-weight: normal;">of each operation will be a</span></b> \r
92  GEOM_Object (SOLID).</p>\r
93 \r
94 <p>&nbsp;</p>\r
95 \r
96 <p class="whs2">Firstly, you can define a <span style="font-weight: bold;"><B>Sphere</B></span> \r
97  by the <span style="font-weight: bold;"><B>Center Point</B></span> and the <span \r
98  style="font-weight: bold;"><B>Radius</B></span>.</p>\r
99 \r
100 <p><b style="font-weight: bold;">TUI Command:</b> <span style="font-style: italic;"><I>geompy.MakeSphere(Point, \r
101  Radius)</I></span></p>\r
102 \r
103 <p><b style="font-weight: bold;">Arguments:</b> <span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">Name \r
104  + </font></span>1 vertex + 1 value (Radius).</p>\r
105 \r
106 <p class="whs3"><b style="font-weight: bold;"><img src="pics/sphere1.png" x-maintain-ratio="TRUE" width="312px" height="315px" border="0" class="img_whs4"></b></p>\r
107 \r
108 <p>&nbsp;</p>\r
109 \r
110 <p><b style="font-weight: bold;"><span style="font-weight: normal;">Secondly, \r
111  you can define a</span> Sphere <span style="font-weight: normal;">with \r
112  the center at the origin of coordinate system by the</span> Radius.</b></p>\r
113 \r
114 <p><b style="font-weight: bold;">TUI Command: <span style="font-weight: normal; font-style: italic;"><I>geompy. \r
115  MakeSphereR(Radius)</I></span></b></p>\r
116 \r
117 <p><b style="font-weight: bold;">Arguments:</b> <span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">Name \r
118  + </font></span>1 &nbsp;value \r
119  (Radius from the origin).</p>\r
120 \r
121 <p class="whs3"><img src="pics/sphere2.png" x-maintain-ratio="TRUE" width="312px" height="315px" border="0" class="img_whs4"></p>\r
122 \r
123 <p class="whs5">&nbsp;</p>\r
124 \r
125 <p class="whs5">NB! <span style="font-weight: normal;">The \r
126  is another way to create a </span>Sphere<span style="font-weight: normal;">, \r
127  which is currently accessible only via</span> TUI <span style="font-weight: normal;">commands.</span></p>\r
128 \r
129 <p class="whs5"><span style="font-weight: normal;">You \r
130  can define the</span> Sphere <span style="font-weight: normal;">by the \r
131  coordinates of the</span> Center Point <span style="font-weight: normal;">and \r
132  its</span> Radius <span style="font-weight: normal;">(in this way you \r
133  don't need to create it in advance).</span> </p>\r
134 \r
135 <p class="whs5"><b style="font-weight: bold;">TUI \r
136  Command:</b> <span style="font-weight: normal; font-style: italic;"><I>geompy.MakeSphere(X, \r
137  Y, Z, Radius)</I></span></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="whs3"><img src="pics/spheres.png" x-maintain-ratio="TRUE" width="286px" height="284px" border="0" class="img_whs6"></p>\r
146 \r
147 <p class="whs7">&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#bookmark2">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