formZ SDK | 5.0 API Reference | Project | Modeling

# Attributes

Description

formZ object attributes. There are three levels of attributes. Simple attributes, such as surface style tag, visibility, lock, snap, etc. are set and retrieved directly from an object or face. They are simple types : boolean, fzrt_int or enum.
A second level of attributes are complex attributes such as display resolution, smooth shading, radiosity meshing. To retrieve such an attribute, storage must first be allocated by the respective fz_objt_attr_xxxx_init function. Then the content of the attribute is retrieved from the object and loaded into the allocated storage via the fz_objt_attr_obj_get_xxxx function. Individual fields of the attributes can be set and retrieved via fz_objt_attr_xxxx_set and fz_objt_attr_xxxx_get. The attribute can be assigned back to an object with the fz_objt_attr_obj_set_xxxx function. Finally, the allocated storage must be discarded with fz_objt_attr_xxxx_finit.
The third level of attributes are those that are firmly bound to the geometry of an object, such as the texture map control and decal attributes. Functions are provided to create the attribute, remove it and manipulate individual parameters of the attribute. In each case the object is passed to the function, as it is needed to deal with the attribute.
For convenience, functions are provided for simple and complex attributes (level 1 and 2), which check whether the attribute of a certain type of two objects or faces are the same.

Function Sets

fz_objt_attr_fset