Geomview Manual - SKEL

Go to the first, previous, next, last section, table of contents.

### SKEL Files

`SKEL` files represent collections of points and polylines, with shared vertices. The conventional suffix for `SKEL` files is ``.skel'`.

Syntax:

    [4][n]SKEL
    [NDim]                    # Vertex dimension, present only if nSKEL
    NVertices  NPolylines

    x[0]  y[0]  z[0]      # Vertices
    				    # (if nSKEL, each vertex has NDim components)
    ...
    x[NVertices-1]  y[NVertices-1]  z[NVertices-1]

                            # Polylines
                            # Nv = # vertices on this polyline (1 = point)
                            # v[0] ... v[Nv-1]: vertex indices                        #               in range 0..NVertices-1
    Nv  v[0] v[1] ... v[Nv-1]  [colorspec]
    ...
                            # colorspec continues past v[Nv-1]
                            # to end-of-line; may be nothing, or 3 or 4 numbers.
                            # nothing: default color
    			# 3 or 4 floats: RGB[A] values 0..1

The syntax resembles that of `OFF` files, with a table of vertices followed by a sequence of polyline descriptions, each referring to vertices by index in the table. Each polyline has an optional color.

For `nSKEL` objects, each vertex has NDim components. For `4nSKEL` objects, each vertex has NDim+1 components; the final component is the homogeneous divisor.

No `BINARY` format is implemented as yet for `SKEL` objects.

Go to the first, previous, next, last section, table of contents.