formZ SDK | 5.0 API Reference | Project | Modeling | Attributes
Description
Gets the smooth shading attribute of an object. The
fz_attr_sshd_ptr sshd parameter must be created and
deleted by the calling function. For example :
fz_objt_attr_sshd_init(windex,&sshd);
(windex,obj,FALSE,&has_sshd,sshd);
fz_objt_attr_sshd_finit(windex,&sshd);
If display is TRUE, the smooth shading settings of the layer on which the
object is placed is taken into account. Otherwise the true smooth shading
attribute of the object is returned.
Note, that an object may not have a smooth shading attribute, in which case
the has_sshd parameter will be returned as FALSE.
Plugin Prototype
fzrt_error_td fz_objt_attr_get_objt_sshd(
fzrt_int | windex, |
obj, | |
display, | |
has_sshd, | |
sshd ) |
Parameters
windex [Input]
project window index
obj [Input]
object
display [Input]
get from display context or attribute.
has_sshd [Result, Optional]
TRUE if the object has a smooth shading attribute. FALSE otherwise. This parameter always looks at the true object attribute, even id display is set to TRUE.
sshd [Result, Optional]
smooth shading attribute
Returns
Error codes
Availability
5.0.0.0
Example Files
See Also
Function Set
Defined in