- FMETriangleFan.setAppearanceReference(appearanceRef, front)
This method associates an appearance within the Library with this surface. This is done by passing in the unique appearance reference for this appearance. Subsequent calls to this method on the same side, will override the previous appearance used with the new appearance passed in.
An appearance reference of ‘0’ represents the default appearance. Interpretation of the default appearance is left to the consumer of this geometry. When set at this
FMESurfacelevel, the appearance represents the default appearance to apply when the contained surfaces use the default appearance instead of a specific appearance. Contained surfaces may be found within nested surfaces, geometry instances that reference geometries containing surfaces, or as surfaces or multi-surfaces.
The second parameter controls whether this action should take place on the front of the contained surfaces or the back. Both can be set independently. The appearanceRef should be a valid reference to a definition stored in the
FMELibrary. If the reference was not found in the library, it will still attach the reference to the instance, but will throw a
FMEException. This is an unhealthy situation as it represents a ‘dangling reference’.
FMEException – An exception is raised if an error occurred or the reference was not found in the library and a dangling reference was attached.