Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1
[modules/geom.git] / doc / salome / gui / GEOM / curve.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>Curve</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:20px; height:20px; border-style:none; }\r
18 p.whs2 { font-size:12pt; }\r
19 ul.whs3 { list-style:disc; }\r
20 p.whs4 { font-size:12pt; font-style:italic; }\r
21 p.whs5 { font-size:12pt; font-style:italic; margin-left:40px; }\r
22 img_whs6 { border:none; width:312px; height:289px; float:none; border-style:none; }\r
23 p.whs7 { font-size:12pt; font-style:normal; font-weight:bold; }\r
24 p.whs8 { font-size:12pt; font-weight:bold; font-style:italic; x-text-underline:off; text-decoration:none; }\r
25 img_whs9 { border:none; float:none; width:310px; height:308px; border-style:none; }\r
26 img_whs10 { border:none; width:313px; height:310px; float:none; border-style:none; }\r
27 img_whs11 { border:none; float:none; width:291px; height:313px; border-style:none; }\r
28 p.whs12 { font-size:12pt; margin-left:40px; }\r
29 -->\r
30 </style><script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">\r
31 <!--\r
32 function reDo() {\r
33   if (innerWidth != origWidth || innerHeight != origHeight)\r
34      location.reload();\r
35 }\r
36 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {\r
37         origWidth = innerWidth;\r
38         origHeight = innerHeight;\r
39         onresize = reDo;\r
40 }\r
41 onerror = null; \r
42 //-->\r
43 </script>\r
44 <style type="text/css">\r
45 <!--\r
46 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }\r
47 p.WebHelpNavBar { text-align:right; }\r
48 -->\r
49 </style><script type="text/javascript" language="javascript1.2" src="whmsg.js"></script>\r
50 <script type="text/javascript" language="javascript" src="whver.js"></script>\r
51 <script type="text/javascript" language="javascript1.2" src="whproxy.js"></script>\r
52 <script type="text/javascript" language="javascript1.2" src="whutils.js"></script>\r
53 <script type="text/javascript" language="javascript1.2" src="whtopic.js"></script>\r
54 <script type="text/javascript" language="javascript1.2">\r
55 <!--\r
56 if (window.gbWhTopic)\r
57 {\r
58         if (window.setRelStartPage)\r
59         {\r
60         addTocInfo("Geometry module\nCreating geometrical objects\nCreating Basic Geometric Objects\nCurve");\r
61 addButton("show",BTN_IMG,"Show","","","","",0,0,"whd_show0.gif","whd_show2.gif","whd_show1.gif");\r
62 addButton("hide",BTN_IMG,"Hide","","","","",0,0,"whd_hide0.gif","whd_hide2.gif","whd_hide1.gif");\r
63 \r
64         }\r
65 \r
66 \r
67         if (window.setRelStartPage)\r
68         {\r
69         setRelStartPage("index.htm");\r
70 \r
71                 autoSync(1);\r
72                 sendSyncInfo();\r
73                 sendAveInfoOut();\r
74         }\r
75 \r
76 }\r
77 else\r
78         if (window.gbIE4)\r
79                 document.location.reload();\r
80 //-->\r
81 </script>\r
82 </head>\r
83 <body><script type="text/javascript" language="javascript1.2">\r
84 <!--\r
85 if (window.writeIntopicBar)\r
86         writeIntopicBar(4);\r
87 //-->\r
88 </script>\r
89 <h1><span style="font-size: 14pt;"><font size=4 style="font-size:14pt;"><b style="font-weight: bold;"><img src="image32.gif" width="20px" height="20px" border="0" class="img_whs1"> &nbsp;</b></font></span>Curve</h1>\r
90 \r
91 <p>To create a <span style="font-weight: bold;"><B>Curve</B></span> in the <span \r
92  style="font-weight: bold;"><B>Main Menu</B></span> select <span style="font-weight: bold;"><B>New \r
93  Entity - &gt; Basic - &gt; Curve</B></span></p>\r
94 \r
95 <p>&nbsp;</p>\r
96 \r
97 <p>There are three algorithms to <span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">create \r
98  a </font></span><span style="font-size: 12pt; font-weight: bold;"><font size=3 style="font-size:12pt;"><B>Curve</B></font></span><span \r
99  style="font-size: 12pt;"><font size=3 style="font-size:12pt;"> in the 3D space. Each time you define it by \r
100  a list of </font></span><span style="font-size: 12pt; font-weight: bold;"><font size=3 style="font-size:12pt;"><B>Points</B></font></span><span \r
101  style="font-size: 12pt;"><font size=3 style="font-size:12pt;"> through which the curve passes. The three </font></span><span \r
102  style="font-size: 12pt; font-weight: bold;"><font size=3 style="font-size:12pt;"><B>Curve Construction</B></font></span><span \r
103  style="font-size: 12pt;"><font size=3 style="font-size:12pt;"> menu choices correspond to three possible types \r
104  of curves: Polyline, Besier or B-spline (Interpolated). </font></span></p>\r
105 \r
106 <p class="whs2"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"><b style="font-weight: bold;"><span \r
107  style="font-weight: normal;">The</span> Result <span style="font-weight: normal;">of \r
108  each operation will be a</span></b> GEOM_Object (edge).</font></span></p>\r
109 \r
110 <p>&nbsp;</p>\r
111 \r
112 <p class="whs2"><b style="font-weight: bold;">TUI Commands:</b> \r
113  </p>\r
114 \r
115 <ul type="disc" class="whs3">\r
116         \r
117         <li class=kadov-p><p class="whs2"><span style="font-style: italic;"><I>geompy.MakePolyline(ListOfShapes)</I></span></p></li>\r
118         \r
119         <li class=kadov-p><p class="whs2"><span style="font-style: italic;"><I>geompy.MakeBezier(ListOfShapes)</I></span></p></li>\r
120         \r
121         <li class=kadov-p><p class="whs2"><span style="font-style: italic;"><I>geompy.MakeInterpol(ListOfShapes)</I></span></p></li>\r
122 </ul>\r
123 \r
124 <p class="whs2">ListOfShape is a list of points through which \r
125  the curve passes.</p>\r
126 \r
127 <p class="whs2"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"><b style="font-weight: bold;">Arguments:</b> \r
128  Name + at least 2 points which will serve as nodes on the curve.</font></span></p>\r
129 \r
130 <p class="whs4">&nbsp;</p>\r
131 \r
132 <p class="whs5"><img src="pics/curve.png" x-maintain-ratio="TRUE" width="312px" height="289px" border="0" class="img_whs6"> </p>\r
133 \r
134 <p class="whs4">&nbsp;</p>\r
135 \r
136 <p class="whs7">Examples:</p>\r
137 \r
138 <p class="whs2">&nbsp;</p>\r
139 \r
140 <p class="whs8">Polyline \r
141  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span \r
142  style="font-size: 12pt;\r
143                 font-weight: bold;\r
144                 font-style: italic;\r
145                 x-text-underline: off;\r
146                 /*begin!kadov{{*/ text-decoration: none; /*}}end!kadov*/ "><font size=3 style="font-size:12pt;"><I><B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Bezier \r
147  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;B-Spline</B></I></font></span></p>\r
148 \r
149 <p class="whs2"><img src="pics/polyline.png" x-maintain-ratio="TRUE" width="310px" height="308px" border="0" class="img_whs9"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="pics/bezier.png" x-maintain-ratio="TRUE" width="313px" height="310px" border="0" class="img_whs10"> &nbsp;&nbsp;&nbsp;&nbsp;<img src="pics/interpol.png" x-maintain-ratio="TRUE" width="291px" height="313px" border="0" class="img_whs11"></p>\r
150 \r
151 <p class="whs12">&nbsp;</p>\r
152 \r
153 <p class="whs2">Our TUI Scripts provide you with useful examples \r
154  of creation of <a href="basic_geometrical_objects.htm#bookmark4">Basic \r
155  Geometric Objects</a>. </p>\r
156 \r
157 <p>&nbsp;</p>\r
158 \r
159 <p class="whs2">&nbsp;</p>\r
160 \r
161 <script type="text/javascript" language="javascript1.2">\r
162 <!--\r
163 if (window.writeIntopicBar)\r
164         writeIntopicBar(0);\r
165 //-->\r
166 </script>\r
167 </body>\r
168 </html>\r