This approach requires that more than one file be maintained; however it allows a user to isolate and separately maintain pieces of a master SDL definition in distinct files. To use an #include statement in the MODEL section to replace a large list of CVs, place the CV list in a separate file.
It is useful to use a ".h" extension after the file name; it is simply a convention in naming - it is not required, but it can help you more easily keep track of those files that contain only fragments of an SDL file, whether they are pieces of geometry of any complexity, transformations, surfaces, or some animation definitions.
The presence of a directory within the sdl directory called "include" in which all ".h" files are stored also helps reduce confusion. Shader and light definitions can be maintained externally in ".h" files as well. Different physical proportions of the geometry can be created through varied use of transformations and not by altering the geometry. These transformations can remain in the SDL file or be part of the file to be included. For example, a scene containing many different spheres of different proportions can be simplified by placing one sphere in the file to be included, and referencing it for the geometry for each of the spheres, while leaving the transformations in the SDL file.
In order for #include statements to work properly it is necessary for the C Pre-Processor (known by the acronym "cpp") to handle the primary SDL file (ie. the one that isn't #included itself anywhere else) and its associated ".h" files before rendering actually begins. If initiating a rendering operation from the Alias system, this is taken care of automatically.
If manually rendering, the following order of commands must be followed:
/lib/cpp -C -P sdl/<sdlfile> temp renderer temp where <sdlfile> is the primary SDL file containing the #include statements, and temp is a temporary file created by /lib/cpp in which the original SDL file contents have been copied along with all #included references which have been inserted and expanded in their proper places.
In order for #include statements to work correctly, all ".h" files referenced should be placed inside the renderer's sdl/include directory while the parent SDL file remains in the sdl directory. The -P option is required. Alternatively, the Alias-supplied renderit script automatically runs /lib/cpp on the SDL file.