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

fz_objt_attr_get_objt_mdns

Description

Gets the material density attribute of an object. The fz_attr_mdns_ptr mdns parameter must be created and deleted by the calling function. For example :
fz_objt_attr_mdns_init(windex,&mdns); (windex,obj,&has_mdns,mdns); fz_objt_attr_mdns_finit(windex,&mdns);
Note, that an object may not have a material density attribute, in which case the has_mdns parameter will be returned as FALSE.

Plugin Prototype

fzrt_error_td fz_objt_attr_get_objt_mdns(

fzrt_int

windex,

fz_objt_ptr

obj,

fzrt_boolean *

has_mdns,

fz_attr_mdns_ptr

mdns_ptr )

Parameters

windex [Input]

project window index

obj [Input]

object

has_mdns [Result, Optional]

TRUE if the object has a material density attribute. FALSE otherwise.

mdns_ptr [Result, Optional]

material density attribute

Returns

Error codes

Availability

5.0.0.0

Example Files

modl_attr_basic.fsl

See Also

fz_objt_attr_set_objt_mdns

Function Set

fz_objt_attr_fset


Defined in

fz_objt_attr_api.h