Salome HOME
PAL12557: Documentation for scripts is not up to date.
[modules/geom.git] / doc / salome / gui / GEOM / multi_transformation.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>Multi Transformation</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 { border:none; width:24px; height:22px; border-style:none; }\r
18 p.whs2 { font-size:12pt; }\r
19 p.whs3 { font-size:12pt; font-weight:bold; }\r
20 p.whs4 { font-size:12pt; margin-left:40px; }\r
21 img_whs5 { border:none; width:312px; height:381px; float:none; border-style:none; }\r
22 img_whs6 { border:none; width:301px; height:306px; float:none; border-style:none; }\r
23 img_whs7 { border:none; width:312px; height:494px; float:none; border-style:none; }\r
24 img_whs8 { border:none; width:277px; height:304px; float:none; border-style:none; }\r
25 p.whs9 { font-weight:bold; }\r
26 p.whs10 { font-size:12pt; text-indent:-40px; font-weight:bold; margin-left:80px; }\r
27 -->\r
28 </style><script type="text/javascript" language="JavaScript">\r
29 <!--\r
30 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))\r
31 {\r
32   var strNSS = "<style type='text/css'>";\r
33   strNSS += "p.whs10 {text-indent:1pt; }";\r
34   strNSS +="</style>";\r
35   document.write(strNSS);\r
36 }\r
37 //-->\r
38 </script>\r
39 <script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">\r
40 <!--\r
41 function reDo() {\r
42   if (innerWidth != origWidth || innerHeight != origHeight)\r
43      location.reload();\r
44 }\r
45 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {\r
46         origWidth = innerWidth;\r
47         origHeight = innerHeight;\r
48         onresize = reDo;\r
49 }\r
50 onerror = null; \r
51 //-->\r
52 </script>\r
53 <style type="text/css">\r
54 <!--\r
55 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }\r
56 p.WebHelpNavBar { text-align:right; }\r
57 -->\r
58 </style><script type="text/javascript" language="javascript1.2" src="whmsg.js"></script>\r
59 <script type="text/javascript" language="javascript" src="whver.js"></script>\r
60 <script type="text/javascript" language="javascript1.2" src="whproxy.js"></script>\r
61 <script type="text/javascript" language="javascript1.2" src="whutils.js"></script>\r
62 <script type="text/javascript" language="javascript1.2" src="whtopic.js"></script>\r
63 <script type="text/javascript" language="javascript1.2">\r
64 <!--\r
65 if (window.gbWhTopic)\r
66 {\r
67         if (window.setRelStartPage)\r
68         {\r
69         addTocInfo("Geometry module\nTransforming geometrical objects\nBlocks Operations\nMulti Transformation");\r
70 addButton("show",BTN_IMG,"Show","","","","",0,0,"whd_show0.gif","whd_show2.gif","whd_show1.gif");\r
71 addButton("hide",BTN_IMG,"Hide","","","","",0,0,"whd_hide0.gif","whd_hide2.gif","whd_hide1.gif");\r
72 \r
73         }\r
74 \r
75 \r
76         if (window.setRelStartPage)\r
77         {\r
78         setRelStartPage("index.htm");\r
79 \r
80                 autoSync(1);\r
81                 sendSyncInfo();\r
82                 sendAveInfoOut();\r
83         }\r
84 \r
85 }\r
86 else\r
87         if (window.gbIE4)\r
88                 document.location.reload();\r
89 //-->\r
90 </script>\r
91 </head>\r
92 <body><script type="text/javascript" language="javascript1.2">\r
93 <!--\r
94 if (window.writeIntopicBar)\r
95         writeIntopicBar(4);\r
96 //-->\r
97 </script>\r
98 <h1><img src="image52.gif" width="24px" height="22px" border="0" class="img_whs1"> Block Multi Transformation</h1>\r
99 \r
100 <p class="whs2"><b style="font-weight: normal;">T</b>o produce \r
101  a <span style="font-weight: bold;"><B>Multi Transformation</B></span> operation \r
102  in the Main Menu select <span style="font-weight: bold;"><B>Operations - \r
103  &gt; Blocks - &gt; Multi Transformation</B></span></p>\r
104 \r
105 <p class="whs2">&nbsp;</p>\r
106 \r
107 <p class="whs2">This operation makes several translations of \r
108  a block (solid) in <span style="font-weight: bold;"><B>one</B></span> or <span \r
109  style="font-weight: bold;"><B>two</B></span> directions depending on the arguments \r
110  specified by the user.</p>\r
111 \r
112 <p class="whs2"><b style="font-weight: bold;"><span style="font-weight: normal;">The</span> \r
113  Result<span style="font-weight: normal;"> in both cases will be a</span></b> \r
114  GEOM_Object.</p>\r
115 \r
116 <p>&nbsp;</p>\r
117 \r
118 <p class="whs2"><b style="font-weight: bold;">Simple Multi \r
119  Transformation (in one direction).</b></p>\r
120 \r
121 <p class="whs3"><b style="font-weight: bold;">TUI \r
122  Command:</b><i> </i><span style="font-style: italic; font-weight: normal;"><I>geompy. \r
123  MakeMultiTransformation1D(Block, DirFaceID1, DirFaceID2, NbTimes), </I></span><span \r
124  style="font-weight: normal;">where</span><span style="font-style: italic; font-weight: normal;"><I> \r
125  Block </I></span><span style="font-weight: normal;">is a block to be transformed,</span><span \r
126  style="font-style: italic; font-weight: normal;"><I> DirFaceID1 </I></span><span \r
127  style="font-weight: normal;">is an ID of the face which defines the first \r
128  direction of transformation,</span><span style="font-style: italic; font-weight: normal;"><I> \r
129  DirFaceID2 </I></span><span style="font-weight: normal;">is an ID of the face \r
130  which defines the second direction of transformation,</span><span style="font-style: italic; font-weight: normal;"><I> \r
131  NbTimes </I></span><span style="font-weight: normal;">is a number of transformations.</span></p>\r
132 \r
133 <p class="whs2"><b style="font-weight: bold;">Arguments: </b>Name \r
134  + 1 hexahedral solid + 1 or 2 faces + 1 integer (number of blocks).</p>\r
135 \r
136 <p class="whs2">&nbsp;</p>\r
137 \r
138 <p class="whs4"><img src="pics/mtransf1.png" x-maintain-ratio="TRUE" width="312px" height="381px" border="0" class="img_whs5"> &nbsp;&nbsp;<img src="pics/multi_transformationsn1d.png" x-maintain-ratio="TRUE" width="301px" height="306px" border="0" class="img_whs6"></p>\r
139 \r
140 <p class="whs2">&nbsp;</p>\r
141 \r
142 <p class="whs2"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"><b style="font-weight: bold;">Double \r
143  Multi Transformation (in two directions).</b></font></span></p>\r
144 \r
145 <p class="whs2"><span style="font-weight: bold;"><B><b style="font-weight: bold;">TUI \r
146  Command:</b><i> </i></B></span><span style="font-size: 12pt; font-style: italic;"><font size=3 style="font-size:12pt;"><I>geompy. \r
147  MakeMultiTransformation2D(Block, DirFaceID1U, DirFaceID2U, NbTimesU, DirFaceID1V, \r
148  DirFaceID2V, NbTimesV)</I></font></span><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">, where Block \r
149  is a block to be transformed, DirFaceID1U and DirFaceID2U are IDs of the \r
150  faces, which define directions of the first transformation, DirFaceID1V \r
151  and DirFaceID2V are ID\92s of the faces which define directions of the second \r
152  transformation, NbTimesU and NbTimesV are numbers of transformations.</font></span></p>\r
153 \r
154 <p class="whs2"><b style="font-weight: bold;">Arguments: &nbsp;</b><span \r
155  style="font-size: 12pt; font-weight: normal;"><font size=3 style="font-size:12pt;">Name \r
156  + 1 hexahedral solid + 2, 3 or 4 faces + 2 integers (number of blocks).</font></span></p>\r
157 \r
158 <p class="whs2">&nbsp;</p>\r
159 \r
160 <p class="whs4"><img src="pics/mtransf2.png" x-maintain-ratio="TRUE" width="312px" height="494px" border="0" class="img_whs7"> &nbsp;<img src="pics/multi_transformationsn2d.png" x-maintain-ratio="TRUE" width="277px" height="304px" border="0" class="img_whs8"></p>\r
161 \r
162 <p class="whs2">&nbsp;</p>\r
163 \r
164 <p class="whs9">&nbsp;&nbsp;&nbsp;<span \r
165  style="font-size: 12pt; font-weight: normal;"><font size=3 style="font-size:12pt;">Our</font></span><span \r
166  style="font-size: 12pt;"><font size=3 style="font-size:12pt;"> TUI Scripts</font></span><span style="font-size: 12pt; font-weight: normal;"><font size=3 style="font-size:12pt;"> \r
167  provide you with useful examples of the use of</font></span><span style="font-size: 12pt;"> \r
168  <font size=3 style="font-size:12pt;"><a href="blocks_operations.htm#bookmark4">Blocks Operations</a>. </font></span></p>\r
169 \r
170 <p class="whs9">&nbsp;&nbsp;</p>\r
171 \r
172 <p>&nbsp;</p>\r
173 \r
174 <p class="whs10">&nbsp;</p>\r
175 \r
176 <script type="text/javascript" language="javascript1.2">\r
177 <!--\r
178 if (window.writeIntopicBar)\r
179         writeIntopicBar(0);\r
180 //-->\r
181 </script>\r
182 </body>\r
183 </html>\r