Salome HOME
Merge from OCC_development_generic_2006
[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 img_whs5 { border:none; width:312px; height:289px; float:none; border-style:none; }\r
22 p.whs6 { font-size:12pt; font-style:normal; font-weight:bold; }\r
23 p.whs7 { font-size:12pt; font-weight:bold; font-style:italic; x-text-underline:off; text-decoration:none; }\r
24 img_whs8 { border:none; float:none; width:310px; height:308px; border-style:none; }\r
25 img_whs9 { border:none; width:313px; height:310px; float:none; border-style:none; }\r
26 img_whs10 { border:none; float:none; width:291px; height:313px; border-style:none; }\r
27 p.whs11 { font-size:12pt; margin-left:40px; }\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 Basic Geometric Objects\nCurve");\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="image32.gif" width="20px" height="20px" border="0" class="img_whs1"> &nbsp;</b></font></span>Curve</h1>\r
84 \r
85 <p>To create a <span style="font-weight: bold;"><B>Curve</B></span> in the <span \r
86  style="font-weight: bold;"><B>Main Menu</B></span> select <span style="font-weight: bold;"><B>New \r
87  Entity - &gt; Basic - &gt; Curve</B></span></p>\r
88 \r
89 <p>&nbsp;</p>\r
90 \r
91 <p>There are three algorithms to <span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">create \r
92  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
93  style="font-size: 12pt;"><font size=3 style="font-size:12pt;"> in the 3D space. Each time you define it by \r
94  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
95  style="font-size: 12pt;"><font size=3 style="font-size:12pt;"> through which the curve passes. The three </font></span><span \r
96  style="font-size: 12pt; font-weight: bold;"><font size=3 style="font-size:12pt;"><B>Curve Construction</B></font></span><span \r
97  style="font-size: 12pt;"><font size=3 style="font-size:12pt;"> menu choices correspond to three possible types \r
98  of curves: Polyline, Besier or B-spline (Interpolated). </font></span></p>\r
99 \r
100 <p class="whs2"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"><b style="font-weight: bold;"><span \r
101  style="font-weight: normal;">The</span> Result <span style="font-weight: normal;">of \r
102  each operation will be a</span></b> GEOM_Object (edge).</font></span></p>\r
103 \r
104 <p>&nbsp;</p>\r
105 \r
106 <p class="whs2"><b style="font-weight: bold;">TUI Commands:</b> \r
107  </p>\r
108 \r
109 <ul type="disc" class="whs3">\r
110         \r
111         <li class=kadov-p><p class="whs2"><span style="font-style: italic;"><I>geompy.MakePolyline(ListOfShapes)</I></span></p></li>\r
112         \r
113         <li class=kadov-p><p class="whs2"><span style="font-style: italic;"><I>geompy.MakeBezier(ListOfShapes)</I></span></p></li>\r
114         \r
115         <li class=kadov-p><p class="whs2"><span style="font-style: italic;"><I>geompy.MakeInterpol(ListOfShapes)</I></span></p></li>\r
116 </ul>\r
117 \r
118 <p class="whs2">ListOfShape is a list of points through which \r
119  the curve passes.</p>\r
120 \r
121 <p class="whs2"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"><b style="font-weight: bold;">Arguments:</b> \r
122  Name + at least 2 points which will serve as nodes on the curve.</font></span></p>\r
123 \r
124 <p class="whs4">&nbsp;</p>\r
125 \r
126 <p class="whs4"><img src="pics/curve.png" x-maintain-ratio="TRUE" width="312px" height="289px" border="0" class="img_whs5"> </p>\r
127 \r
128 <p class="whs4">&nbsp;</p>\r
129 \r
130 <p class="whs6">Examples:</p>\r
131 \r
132 <p class="whs2">&nbsp;</p>\r
133 \r
134 <p class="whs7">Polyline \r
135  &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
136  style="font-size: 12pt;\r
137                 font-weight: bold;\r
138                 font-style: italic;\r
139                 x-text-underline: off;\r
140                 /*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
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;&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
142 \r
143 <p class="whs2"><img src="pics/polyline.png" x-maintain-ratio="TRUE" width="310px" height="308px" border="0" class="img_whs8"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="pics/bezier.png" x-maintain-ratio="TRUE" width="313px" height="310px" border="0" class="img_whs9"> &nbsp;&nbsp;&nbsp;&nbsp;<img src="pics/interpol.png" x-maintain-ratio="TRUE" width="291px" height="313px" border="0" class="img_whs10"></p>\r
144 \r
145 <p class="whs11">&nbsp;</p>\r
146 \r
147 <p class="whs2">Our TUI Scripts provide you with useful examples \r
148  of creation of <a href="basic_geometrical_objects.htm#bookmark4">Basic \r
149  Geometric Objects</a>. </p>\r
150 \r
151 <p>&nbsp;</p>\r
152 \r
153 <p class="whs2">&nbsp;</p>\r
154 \r
155 <script type="text/javascript" language="javascript1.2">\r
156 <!--\r
157 if (window.writeIntopicBar)\r
158         writeIntopicBar(0);\r
159 //-->\r
160 </script>\r
161 </body>\r
162 </html>\r