File: glnode.mdc

package info (click to toggle)
freemat 4.2%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 141,800 kB
  • ctags: 14,082
  • sloc: ansic: 126,788; cpp: 62,046; python: 2,080; perl: 1,255; sh: 1,146; yacc: 1,019; lex: 239; makefile: 100
file content (26 lines) | stat: -rw-r--r-- 942 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

 Usage

Define a GL Node. A GL Node is an object that can be
displayed in a GL Window. It is defined by a triangular mesh
of vertices. It must also have a material that defines its
appearance (i.e. color, shininess, etc.). The syntax for the
glnode command is

    glnode(name,material,pointset)

where material is the name of a material that has already
been defined with gldefmaterial, pointset is a 3 x N matrix
of points that define the geometry of the object. Note that
the points are assumed to be connected in triangular facts,
with the points defined counter clock-wise as seen from the
outside of the facet. FreeMat will compute the normals. The
name argument must be unique. If you want multiple instances
of a given glnode in your GLWindow, that is fine, as
instances of a glnode are created through a glassembly.

* FreeMat_Documentation
* OpenGL_Models
* Generated on Thu Jul 25 2013 17:17:14 for FreeMat by
  doxygen_ 1.8.1.1