formZ SDK | 5.0 API Reference | Project | Modeling | Attributes

# fz_objt_attr_get_objt_sshd

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,
fz_objt_ptr | obj,
fzrt_boolean | display,
fzrt_boolean * | has_sshd,
fz_attr_sshd_ptr | 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

util_attr_sshd.fsl

See Also

Function Set

fz_objt_attr_fset

Defined in

fz_objt_attr_api.h