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

# fz_objt_attr_get_objt_tctl_uv

Description

Gets the uv texture coordinates of an object. If the object uses the MAP_SPACE_UV_CORDS mapping type, the uv coordinates are used directly from the values stored with the object. If the object uses other mapping types, the uv coordinates are generated from the existing mapping type, so that the uv coordinate at each topological point (start and end point of each segment) corresponds to the uv value of the point when rendered. The uv_pts array passed in must be allocated to as many uv's as there are segments of the facetted topology 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_get_objt_tctl_uv(

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

Parameters

windex [Input]

project window index

obj [Input]

object

uv [Result]

uv points array, allocated to the number of segments of the object. It will be filled parallel to the segment list of the object

Availability

5.0.0.0

Example Files

util_attr_tctl.fsl

See Also

fz_objt_attr_set_objt_tctl_uv

Function Set

fz_objt_attr_fset

Defined in

fz_objt_tctl_api.h