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

# fz_objt_attr_set_objt_tctl_uv

Description

Sets the uv texture coordinates of an object. The object must have a texture map control attribute and the mapping type must be set to MAP_SPACE_UV_CORDS. The object also must be a plain facetted object. The uv_pts array passed in must be allocated to and filled with as many uv's as there are segments in the object. In other words, the uv_pts array passed in is parallel to the segment list of an object, not the point list. This is necessary, because a different uv value may be assigned to a point when it is part of one face, as opposed to another face.

Plugin Prototype

fzrt_error_td fz_objt_attr_set_objt_tctl_uv(

fzrt_int | windex,
fz_objt_ptr | obj,
fz_xy_td * | uv )

Parameters

windex [Input]

project window index

obj [Input]

object

uv [Input]

uv points array, allocated to the number of segments of the object and filled parallel to the segment list of the object

Availability

5.0.0.0

Example Files

util_attr_tctl.fsl

See Also

Function Set

fz_objt_attr_fset

Defined in

fz_objt_tctl_api.h