FXS (Fast Access) Layer Structure

The FXS layer is an ugly device introduced to speed up layer handling in time critical situations. Use of FXS layers makes time expensive retrieval of nodes and triangles by their IDs unneccessary.

The disadvantage is that pointers from triangles to nodes and from nodes to fitness lists break when arrays are sorted, whereas the ID-dependent retrieval is robust against sorting of layer fields. So please do not use FXS layers when ever you can avoid it! (I am very ashamed of the existence of FXS, since it means that either my planning or my implementation was not good enough)

FXS layer structures have the same fields as normal LAYER structures, but all node IDs are replaced by the respective array indexes - which means you can access e.g. nodes directly with the numbers given in the triangle's node list.

Few new fields were introduced. Only these are described in the following.

FXS Layer structure: new fields
Field Type Units Description
.maxfit number - The maximum value of all fitness values in the .fit field
.triids numeric array - List of IDs of all triangles, for fats search for triangles by ID

eof.