/usr/share/freemat/help/text/glnode.mdc is in freemat-help 4.0-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | GLNODE GLNODE Create a GL Node
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.
|