diff options
Diffstat (limited to 'src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-primitive.html')
-rw-r--r-- | src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-primitive.html | 508 |
1 files changed, 508 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-primitive.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-primitive.html new file mode 100644 index 0000000..cf7facc --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-primitive.html | |||
@@ -0,0 +1,508 @@ | |||
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | ||
2 | <html> | ||
3 | <head> | ||
4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
5 | <title>primitive</title> | ||
6 | <meta name="generator" content="DocBook XSL Stylesheets V1.73.2"> | ||
7 | <link rel="start" href="index.html" title="libg3d Reference Manual"> | ||
8 | <link rel="up" href="ch02.html" title="Plugin interface"> | ||
9 | <link rel="prev" href="libg3d-read.html" title="read"> | ||
10 | <link rel="next" href="libg3d-matrix.html" title="matrix"> | ||
11 | <meta name="generator" content="GTK-Doc V1.10 (XML mode)"> | ||
12 | <link rel="stylesheet" href="style.css" type="text/css"> | ||
13 | <link rel="chapter" href="ch01.html" title="Application interface"> | ||
14 | <link rel="chapter" href="ch02.html" title="Plugin interface"> | ||
15 | </head> | ||
16 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> | ||
17 | <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> | ||
18 | <tr valign="middle"> | ||
19 | <td><a accesskey="p" href="libg3d-read.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> | ||
20 | <td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> | ||
21 | <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> | ||
22 | <th width="100%" align="center">libg3d Reference Manual</th> | ||
23 | <td><a accesskey="n" href="libg3d-matrix.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> | ||
24 | </tr> | ||
25 | <tr><td colspan="5" class="shortcuts"><nobr><a href="#libg3d-primitive.synopsis" class="shortcut">Top</a> | ||
26 | | | ||
27 | <a href="#libg3d-primitive.description" class="shortcut">Description</a></nobr></td></tr> | ||
28 | </table> | ||
29 | <div class="refentry" lang="en"> | ||
30 | <a name="libg3d-primitive"></a><div class="titlepage"></div> | ||
31 | <div class="refnamediv"><table width="100%"><tr> | ||
32 | <td valign="top"> | ||
33 | <h2><span class="refentrytitle"><a name="libg3d-primitive.top_of_page"></a>primitive</span></h2> | ||
34 | <p>primitive — 3D primitive generation functions</p> | ||
35 | </td> | ||
36 | <td valign="top" align="right"></td> | ||
37 | </tr></table></div> | ||
38 | <div class="refsynopsisdiv"> | ||
39 | <a name="libg3d-primitive.synopsis"></a><h2>Synopsis</h2> | ||
40 | <pre class="synopsis"> | ||
41 | |||
42 | #include <g3d/primitive.h> | ||
43 | |||
44 | <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* <a class="link" href="libg3d-primitive.html#g3d-primitive-cube" title="g3d_primitive_cube ()">g3d_primitive_cube</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> width, | ||
45 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> height, | ||
46 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> depth, | ||
47 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material); | ||
48 | <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* <a class="link" href="libg3d-primitive.html#g3d-primitive-box" title="g3d_primitive_box ()">g3d_primitive_box</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> width, | ||
49 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> height, | ||
50 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> depth, | ||
51 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material); | ||
52 | <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* <a class="link" href="libg3d-primitive.html#g3d-primitive-box-strip-2d" title="g3d_primitive_box_strip_2d ()">g3d_primitive_box_strip_2d</a> (<a | ||
53 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
54 | >guint32</a> vcnt, | ||
55 | <a | ||
56 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble" | ||
57 | >gdouble</a> *vdata, | ||
58 | <a | ||
59 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble" | ||
60 | >gdouble</a> height, | ||
61 | <a | ||
62 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble" | ||
63 | >gdouble</a> width, | ||
64 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material); | ||
65 | <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* <a class="link" href="libg3d-primitive.html#g3d-primitive-mesh" title="g3d_primitive_mesh ()">g3d_primitive_mesh</a> (<a | ||
66 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
67 | >guint32</a> m, | ||
68 | <a | ||
69 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
70 | >guint32</a> n, | ||
71 | <a | ||
72 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
73 | >gboolean</a> wrap_m, | ||
74 | <a | ||
75 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
76 | >gboolean</a> wrap_n, | ||
77 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material); | ||
78 | <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* <a class="link" href="libg3d-primitive.html#g3d-primitive-cylinder" title="g3d_primitive_cylinder ()">g3d_primitive_cylinder</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> radius, | ||
79 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> height, | ||
80 | <a | ||
81 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
82 | >guint32</a> sides, | ||
83 | <a | ||
84 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
85 | >gboolean</a> top, | ||
86 | <a | ||
87 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
88 | >gboolean</a> bottom, | ||
89 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material); | ||
90 | <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* <a class="link" href="libg3d-primitive.html#g3d-primitive-tube" title="g3d_primitive_tube ()">g3d_primitive_tube</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r_in, | ||
91 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r_out, | ||
92 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> height, | ||
93 | <a | ||
94 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
95 | >guint32</a> sides, | ||
96 | <a | ||
97 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
98 | >gboolean</a> top, | ||
99 | <a | ||
100 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
101 | >gboolean</a> bottom, | ||
102 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material); | ||
103 | <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* <a class="link" href="libg3d-primitive.html#g3d-primitive-sphere" title="g3d_primitive_sphere ()">g3d_primitive_sphere</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> radius, | ||
104 | <a | ||
105 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
106 | >guint32</a> vseg, | ||
107 | <a | ||
108 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
109 | >guint32</a> hseg, | ||
110 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material); | ||
111 | </pre> | ||
112 | </div> | ||
113 | <div class="refsect1" lang="en"> | ||
114 | <a name="libg3d-primitive.description"></a><h2>Description</h2> | ||
115 | <p> | ||
116 | Primitives are objects containing basic 3D geometrical structures. A | ||
117 | variety of them can be created using these functions.</p> | ||
118 | <p> | ||
119 | |||
120 | </p> | ||
121 | </div> | ||
122 | <div class="refsect1" lang="en"> | ||
123 | <a name="libg3d-primitive.details"></a><h2>Details</h2> | ||
124 | <div class="refsect2" lang="en"> | ||
125 | <a name="g3d-primitive-cube"></a><h3>g3d_primitive_cube ()</h3> | ||
126 | <pre class="programlisting"><a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* g3d_primitive_cube (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> width, | ||
127 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> height, | ||
128 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> depth, | ||
129 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);</pre> | ||
130 | <p> | ||
131 | Generates an object containing a box. It is deprecated and now a wrapper for | ||
132 | <a class="link" href="libg3d-primitive.html#g3d-primitive-box" title="g3d_primitive_box ()"><code class="function">g3d_primitive_box()</code></a>.</p> | ||
133 | <p> | ||
134 | |||
135 | </p> | ||
136 | <div class="variablelist"><table border="0"> | ||
137 | <col align="left" valign="top"> | ||
138 | <tbody> | ||
139 | <tr> | ||
140 | <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td> | ||
141 | <td> the width of the box | ||
142 | </td> | ||
143 | </tr> | ||
144 | <tr> | ||
145 | <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> | ||
146 | <td> the height of the box | ||
147 | </td> | ||
148 | </tr> | ||
149 | <tr> | ||
150 | <td><p><span class="term"><em class="parameter"><code>depth</code></em> :</span></p></td> | ||
151 | <td> the depth of the box | ||
152 | </td> | ||
153 | </tr> | ||
154 | <tr> | ||
155 | <td><p><span class="term"><em class="parameter"><code>material</code></em> :</span></p></td> | ||
156 | <td> the material to use for all faces | ||
157 | </td> | ||
158 | </tr> | ||
159 | <tr> | ||
160 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
161 | <td> the box object | ||
162 | </td> | ||
163 | </tr> | ||
164 | </tbody> | ||
165 | </table></div> | ||
166 | </div> | ||
167 | <hr> | ||
168 | <div class="refsect2" lang="en"> | ||
169 | <a name="g3d-primitive-box"></a><h3>g3d_primitive_box ()</h3> | ||
170 | <pre class="programlisting"><a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* g3d_primitive_box (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> width, | ||
171 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> height, | ||
172 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> depth, | ||
173 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);</pre> | ||
174 | <p> | ||
175 | Generates an object containing a box.</p> | ||
176 | <p> | ||
177 | |||
178 | </p> | ||
179 | <div class="variablelist"><table border="0"> | ||
180 | <col align="left" valign="top"> | ||
181 | <tbody> | ||
182 | <tr> | ||
183 | <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td> | ||
184 | <td> the width of the box | ||
185 | </td> | ||
186 | </tr> | ||
187 | <tr> | ||
188 | <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> | ||
189 | <td> the height of the box | ||
190 | </td> | ||
191 | </tr> | ||
192 | <tr> | ||
193 | <td><p><span class="term"><em class="parameter"><code>depth</code></em> :</span></p></td> | ||
194 | <td> the depth of the box | ||
195 | </td> | ||
196 | </tr> | ||
197 | <tr> | ||
198 | <td><p><span class="term"><em class="parameter"><code>material</code></em> :</span></p></td> | ||
199 | <td> the material to use for all faces | ||
200 | </td> | ||
201 | </tr> | ||
202 | <tr> | ||
203 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
204 | <td> the box object | ||
205 | </td> | ||
206 | </tr> | ||
207 | </tbody> | ||
208 | </table></div> | ||
209 | </div> | ||
210 | <hr> | ||
211 | <div class="refsect2" lang="en"> | ||
212 | <a name="g3d-primitive-box-strip-2d"></a><h3>g3d_primitive_box_strip_2d ()</h3> | ||
213 | <pre class="programlisting"><a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* g3d_primitive_box_strip_2d (<a | ||
214 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
215 | >guint32</a> vcnt, | ||
216 | <a | ||
217 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble" | ||
218 | >gdouble</a> *vdata, | ||
219 | <a | ||
220 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble" | ||
221 | >gdouble</a> height, | ||
222 | <a | ||
223 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble" | ||
224 | >gdouble</a> width, | ||
225 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);</pre> | ||
226 | <p> | ||
227 | Generates a strip of box segments defined by corner center points | ||
228 | using two-dimensional data (x/z plane).</p> | ||
229 | <p> | ||
230 | |||
231 | </p> | ||
232 | <div class="variablelist"><table border="0"> | ||
233 | <col align="left" valign="top"> | ||
234 | <tbody> | ||
235 | <tr> | ||
236 | <td><p><span class="term"><em class="parameter"><code>vcnt</code></em> :</span></p></td> | ||
237 | <td> number of control points | ||
238 | </td> | ||
239 | </tr> | ||
240 | <tr> | ||
241 | <td><p><span class="term"><em class="parameter"><code>vdata</code></em> :</span></p></td> | ||
242 | <td> 2-dimensional control point data (2 * vcnt * gdouble) | ||
243 | </td> | ||
244 | </tr> | ||
245 | <tr> | ||
246 | <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> | ||
247 | <td> height of resulting strip (y component) | ||
248 | </td> | ||
249 | </tr> | ||
250 | <tr> | ||
251 | <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td> | ||
252 | <td> width of strip (corner diameter) | ||
253 | </td> | ||
254 | </tr> | ||
255 | <tr> | ||
256 | <td><p><span class="term"><em class="parameter"><code>material</code></em> :</span></p></td> | ||
257 | <td> material to use for faces | ||
258 | </td> | ||
259 | </tr> | ||
260 | <tr> | ||
261 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
262 | <td> strip object | ||
263 | </td> | ||
264 | </tr> | ||
265 | </tbody> | ||
266 | </table></div> | ||
267 | </div> | ||
268 | <hr> | ||
269 | <div class="refsect2" lang="en"> | ||
270 | <a name="g3d-primitive-mesh"></a><h3>g3d_primitive_mesh ()</h3> | ||
271 | <pre class="programlisting"><a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* g3d_primitive_mesh (<a | ||
272 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
273 | >guint32</a> m, | ||
274 | <a | ||
275 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
276 | >guint32</a> n, | ||
277 | <a | ||
278 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
279 | >gboolean</a> wrap_m, | ||
280 | <a | ||
281 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
282 | >gboolean</a> wrap_n, | ||
283 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);</pre> | ||
284 | <p> | ||
285 | Generate a mesh consisting of m * n vertices. The vertex data is | ||
286 | initialized with (0.0, 0.0, 0.0) and has to be set to something | ||
287 | useful.</p> | ||
288 | <p> | ||
289 | |||
290 | </p> | ||
291 | <div class="variablelist"><table border="0"> | ||
292 | <col align="left" valign="top"> | ||
293 | <tbody> | ||
294 | <tr> | ||
295 | <td><p><span class="term"><em class="parameter"><code>m</code></em> :</span></p></td> | ||
296 | <td> number of vertices in m direction | ||
297 | </td> | ||
298 | </tr> | ||
299 | <tr> | ||
300 | <td><p><span class="term"><em class="parameter"><code>n</code></em> :</span></p></td> | ||
301 | <td> number of vertices in n direction | ||
302 | </td> | ||
303 | </tr> | ||
304 | <tr> | ||
305 | <td><p><span class="term"><em class="parameter"><code>wrap_m</code></em> :</span></p></td> | ||
306 | <td> wrap around in m direction | ||
307 | </td> | ||
308 | </tr> | ||
309 | <tr> | ||
310 | <td><p><span class="term"><em class="parameter"><code>wrap_n</code></em> :</span></p></td> | ||
311 | <td> wrap around in n direction | ||
312 | </td> | ||
313 | </tr> | ||
314 | <tr> | ||
315 | <td><p><span class="term"><em class="parameter"><code>material</code></em> :</span></p></td> | ||
316 | <td> material to use for faces | ||
317 | </td> | ||
318 | </tr> | ||
319 | <tr> | ||
320 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
321 | <td> mesh object | ||
322 | </td> | ||
323 | </tr> | ||
324 | </tbody> | ||
325 | </table></div> | ||
326 | </div> | ||
327 | <hr> | ||
328 | <div class="refsect2" lang="en"> | ||
329 | <a name="g3d-primitive-cylinder"></a><h3>g3d_primitive_cylinder ()</h3> | ||
330 | <pre class="programlisting"><a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* g3d_primitive_cylinder (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> radius, | ||
331 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> height, | ||
332 | <a | ||
333 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
334 | >guint32</a> sides, | ||
335 | <a | ||
336 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
337 | >gboolean</a> top, | ||
338 | <a | ||
339 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
340 | >gboolean</a> bottom, | ||
341 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);</pre> | ||
342 | <p> | ||
343 | Generates an object containing a cylinder.</p> | ||
344 | <p> | ||
345 | |||
346 | </p> | ||
347 | <div class="variablelist"><table border="0"> | ||
348 | <col align="left" valign="top"> | ||
349 | <tbody> | ||
350 | <tr> | ||
351 | <td><p><span class="term"><em class="parameter"><code>radius</code></em> :</span></p></td> | ||
352 | <td> the radius of the cylinder | ||
353 | </td> | ||
354 | </tr> | ||
355 | <tr> | ||
356 | <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> | ||
357 | <td> the height of the side faces | ||
358 | </td> | ||
359 | </tr> | ||
360 | <tr> | ||
361 | <td><p><span class="term"><em class="parameter"><code>sides</code></em> :</span></p></td> | ||
362 | <td> number of side faces (number of circle segments) | ||
363 | </td> | ||
364 | </tr> | ||
365 | <tr> | ||
366 | <td><p><span class="term"><em class="parameter"><code>top</code></em> :</span></p></td> | ||
367 | <td> add top faces | ||
368 | </td> | ||
369 | </tr> | ||
370 | <tr> | ||
371 | <td><p><span class="term"><em class="parameter"><code>bottom</code></em> :</span></p></td> | ||
372 | <td> add bottom faces | ||
373 | </td> | ||
374 | </tr> | ||
375 | <tr> | ||
376 | <td><p><span class="term"><em class="parameter"><code>material</code></em> :</span></p></td> | ||
377 | <td> material to use for faces | ||
378 | </td> | ||
379 | </tr> | ||
380 | <tr> | ||
381 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
382 | <td> cylinder object | ||
383 | </td> | ||
384 | </tr> | ||
385 | </tbody> | ||
386 | </table></div> | ||
387 | </div> | ||
388 | <hr> | ||
389 | <div class="refsect2" lang="en"> | ||
390 | <a name="g3d-primitive-tube"></a><h3>g3d_primitive_tube ()</h3> | ||
391 | <pre class="programlisting"><a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* g3d_primitive_tube (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r_in, | ||
392 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r_out, | ||
393 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> height, | ||
394 | <a | ||
395 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
396 | >guint32</a> sides, | ||
397 | <a | ||
398 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
399 | >gboolean</a> top, | ||
400 | <a | ||
401 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
402 | >gboolean</a> bottom, | ||
403 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);</pre> | ||
404 | <p> | ||
405 | Generates an object containing a tube (a cylinder with a hole).</p> | ||
406 | <p> | ||
407 | |||
408 | </p> | ||
409 | <div class="variablelist"><table border="0"> | ||
410 | <col align="left" valign="top"> | ||
411 | <tbody> | ||
412 | <tr> | ||
413 | <td><p><span class="term"><em class="parameter"><code>r_in</code></em> :</span></p></td> | ||
414 | <td> inner radius | ||
415 | </td> | ||
416 | </tr> | ||
417 | <tr> | ||
418 | <td><p><span class="term"><em class="parameter"><code>r_out</code></em> :</span></p></td> | ||
419 | <td> outer radius | ||
420 | </td> | ||
421 | </tr> | ||
422 | <tr> | ||
423 | <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> | ||
424 | <td> the height of the side faces | ||
425 | </td> | ||
426 | </tr> | ||
427 | <tr> | ||
428 | <td><p><span class="term"><em class="parameter"><code>sides</code></em> :</span></p></td> | ||
429 | <td> number of side faces (number of circle segments) | ||
430 | </td> | ||
431 | </tr> | ||
432 | <tr> | ||
433 | <td><p><span class="term"><em class="parameter"><code>top</code></em> :</span></p></td> | ||
434 | <td> add top faces | ||
435 | </td> | ||
436 | </tr> | ||
437 | <tr> | ||
438 | <td><p><span class="term"><em class="parameter"><code>bottom</code></em> :</span></p></td> | ||
439 | <td> add bottom faces | ||
440 | </td> | ||
441 | </tr> | ||
442 | <tr> | ||
443 | <td><p><span class="term"><em class="parameter"><code>material</code></em> :</span></p></td> | ||
444 | <td> material to use for faces | ||
445 | </td> | ||
446 | </tr> | ||
447 | <tr> | ||
448 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
449 | <td> tube object | ||
450 | </td> | ||
451 | </tr> | ||
452 | </tbody> | ||
453 | </table></div> | ||
454 | </div> | ||
455 | <hr> | ||
456 | <div class="refsect2" lang="en"> | ||
457 | <a name="g3d-primitive-sphere"></a><h3>g3d_primitive_sphere ()</h3> | ||
458 | <pre class="programlisting"><a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* g3d_primitive_sphere (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> radius, | ||
459 | <a | ||
460 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
461 | >guint32</a> vseg, | ||
462 | <a | ||
463 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
464 | >guint32</a> hseg, | ||
465 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);</pre> | ||
466 | <p> | ||
467 | Generates an object containing a sphere.</p> | ||
468 | <p> | ||
469 | |||
470 | </p> | ||
471 | <div class="variablelist"><table border="0"> | ||
472 | <col align="left" valign="top"> | ||
473 | <tbody> | ||
474 | <tr> | ||
475 | <td><p><span class="term"><em class="parameter"><code>radius</code></em> :</span></p></td> | ||
476 | <td> radius | ||
477 | </td> | ||
478 | </tr> | ||
479 | <tr> | ||
480 | <td><p><span class="term"><em class="parameter"><code>vseg</code></em> :</span></p></td> | ||
481 | <td> number of vertical segments | ||
482 | </td> | ||
483 | </tr> | ||
484 | <tr> | ||
485 | <td><p><span class="term"><em class="parameter"><code>hseg</code></em> :</span></p></td> | ||
486 | <td> number of horizontal segments | ||
487 | </td> | ||
488 | </tr> | ||
489 | <tr> | ||
490 | <td><p><span class="term"><em class="parameter"><code>material</code></em> :</span></p></td> | ||
491 | <td> material to use for faces | ||
492 | </td> | ||
493 | </tr> | ||
494 | <tr> | ||
495 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
496 | <td> sphere object | ||
497 | </td> | ||
498 | </tr> | ||
499 | </tbody> | ||
500 | </table></div> | ||
501 | </div> | ||
502 | </div> | ||
503 | </div> | ||
504 | <div class="footer"> | ||
505 | <hr> | ||
506 | Generated by GTK-Doc V1.10</div> | ||
507 | </body> | ||
508 | </html> | ||