]> SALOME platform Git repositories - modules/geom.git/blob - doc/salome/gui/GEOM/box.htm
Salome HOME
d03a7cf81e3c28a8fa16c8ef80a7ab466b120920
[modules/geom.git] / doc / salome / gui / GEOM / box.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>Box</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-style:italic; }\r
20 img_whs4 { border:none; width:312px; height:324px; float:none; border-style:none; }\r
21 p.whs5 { font-weight:normal; }\r
22 img_whs6 { border:none; width:312px; height:332px; float:none; border-style:none; }\r
23 p.whs7 { font-size:12pt; font-weight:bold; }\r
24 p.whs8 { font-size:12pt; font-weight:bold; font-style:normal; }\r
25 p.whs9 { font-size:12pt; font-style:normal; font-weight:bold; }\r
26 p.whs10 { font-size:12pt; font-style:normal; font-weight:normal; }\r
27 img_whs11 { border:none; width:267px; height:280px; float:none; border-style:none; }\r
28 -->\r
29 </style><script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">\r
30 <!--\r
31 function reDo() {\r
32   if (innerWidth != origWidth || innerHeight != origHeight)\r
33      location.reload();\r
34 }\r
35 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {\r
36         origWidth = innerWidth;\r
37         origHeight = innerHeight;\r
38         onresize = reDo;\r
39 }\r
40 onerror = null; \r
41 //-->\r
42 </script>\r
43 <style type="text/css">\r
44 <!--\r
45 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }\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 </head>\r
53 <body><script type="text/javascript" language="javascript1.2">\r
54 <!--\r
55 if (window.gbWhTopic)\r
56 {\r
57         if (window.addTocInfo)\r
58         {\r
59         addTocInfo("GEOM module\nCreating geometrical objects\nCreation of Primitives\nBox");\r
60 addButton("show",BTN_TEXT,"Show","","","","",0,0,"","","");\r
61 \r
62         }\r
63         if (window.writeBtnStyle)\r
64                 writeBtnStyle();\r
65 \r
66         if (window.writeIntopicBar)\r
67                 writeIntopicBar(1);\r
68 \r
69         if (window.setRelStartPage)\r
70         {\r
71         setRelStartPage("geom.htm");\r
72 \r
73                 autoSync(1);\r
74                 sendSyncInfo();\r
75                 sendAveInfoOut();\r
76         }\r
77 }\r
78 else\r
79         if (window.gbIE4)\r
80                 document.location.reload();\r
81 //-->\r
82 </script>\r
83 <h1><span style="font-size: 14pt;"><font size=4 style="font-size:14pt;"><b style="font-weight: bold;"><img src="files/salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image99.gif" width="20px" height="20px" border="0" class="img_whs1"> </b></font></span>Box</h1>\r
84 \r
85 <p><b><span style="font-weight: normal;">T</b>o</span> create a <span style="font-weight: bold;"><B>Box</B></span> \r
86  in the <span style="font-weight: bold;"><B>Main Menu</B></span> select <span \r
87  style="font-weight: bold;"><B>New Entity - &gt; Primitives - &gt; Box</B></span></p>\r
88 \r
89 <p>&nbsp;</p>\r
90 \r
91 <p>There are 2 algorithms for creation of a <span style="font-weight: bold;"><B>Box</B></span>. \r
92  </p>\r
93 \r
94 <p class="whs2"><b style="font-weight: bold;"><span style="font-weight: normal;">The</span> \r
95  Result <span style="font-weight: normal;">of each operation will be a</span></b> \r
96  GEOM_Object (SOLID).</p>\r
97 \r
98 <p>&nbsp;</p>\r
99 \r
100 <p>Firstly, you can define a <span style="font-weight: bold;"><B>Box</B></span> \r
101  by two specified <span style="font-weight: bold;"><B>Vertices (</B></span>its \r
102  opposite corners), and with edges, parallel to the coordinate axes. </p>\r
103 \r
104 <p><span style="font-weight: bold;"><B><b style="font-weight: bold;">TUI Command \r
105  :</b> </B></span><span style="font-style: italic;"><I>geompy.MakeBoxTwoPnt(Point1, \r
106  Point2)</I></span></p>\r
107 \r
108 <p><b style="font-weight: bold;">Arguments: </b><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">Name \r
109  + </font></span>2 vertices (opposite corners of the box).</p>\r
110 \r
111 <p class="whs3">&nbsp;</p>\r
112 \r
113 <p><b style="font-weight: bold;"><img src="pics/box1.png" x-maintain-ratio="TRUE" width="312px" height="324px" border="0" class="img_whs4"></b></p>\r
114 \r
115 <p>&nbsp;</p>\r
116 \r
117 <p class="whs5"><b style="font-weight: normal;"><span style="font-weight: normal;">Secondly, \r
118  you can define a </span><span style="font-weight: bold;"><B>Box</B></span><span \r
119  style="font-weight: normal;"> by </b>specified dimensions along the coordinate \r
120  axes</span> and with edges, parallel to them. &nbsp;The \r
121  center of the box will be at point (DX/2, DY/2, DZ/2). </p>\r
122 \r
123 <p><span style="font-weight: bold;"><B><b style="font-weight: bold;">TUI Command \r
124  :</b> </B></span><span style="font-style: italic;"><I>geompy.MakeBoxDXDYDZ(DX, \r
125  DY, DZ)</I></span></p>\r
126 \r
127 <p><span><b style="font-weight: bold;">Arguments: </b></span><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">Name \r
128  + 3 values (dimensions at origin).</font></span></p>\r
129 \r
130 <p class="whs2"><b style="font-weight: bold;"><img src="pics/box2.png" x-maintain-ratio="TRUE" width="312px" height="332px" border="0" class="img_whs6"></b></p>\r
131 \r
132 <p>&nbsp;</p>\r
133 \r
134 <p><span style="font-size: 12pt; font-weight: bold;"><font size=3 style="font-size:12pt;"><B>NB! </B></font></span>The is \r
135  a third way to create a Box, which is currently accessible only via<span \r
136  style="font-size: 12pt; font-weight: bold;"><font size=3 style="font-size:12pt;"><B> TUI </B></font></span>commands.</p>\r
137 \r
138 <p class="whs7"><span style="font-weight: normal;">You \r
139  can define a </span>Box<span style="font-weight: normal;"> by the coordinates \r
140  of two </span>Vertices<span style="font-weight: normal;"> (in this way \r
141  you don't need to create them in advance). </span></p>\r
142 \r
143 <p class="whs8"><b style="font-weight: bold;">TUI Command:</b> \r
144  <span style="font-weight: normal; font-style: italic;"><I>geompy.MakeBox(x1,y1,z1,x2,y2,z2)</I></span> \r
145  </p>\r
146 \r
147 <p class="whs8"><b>Arguments:<span style="font-weight: normal;"> \r
148  </b>Name</span> + <span style="font-weight: normal;">X, Y and Z coordinates \r
149  of both points.</span></p>\r
150 \r
151 <p class="whs8">&nbsp;</p>\r
152 \r
153 <p class="whs9">Example:</p>\r
154 \r
155 <p class="whs10"><img src="pics/boxes.png" x-maintain-ratio="TRUE" width="267px" height="280px" border="0" class="img_whs11"></p>\r
156 \r
157 <p>&nbsp;</p>\r
158 \r
159 <p class="whs2">Our <span style="font-weight: bold;"><B>TUI Scripts</B></span> \r
160  provide you with useful examples of creation of <a href="primitives.htm#bookmark">Primitives</a>. \r
161  </p>\r
162 \r
163 <p>&nbsp;</p>\r
164 \r
165 <script type="text/javascript" language="javascript1.2">\r
166 <!--\r
167 if (window.writeIntopicBar)\r
168         writeIntopicBar(0);\r
169 //-->\r
170 </script>\r
171 </body>\r
172 </html>\r