Returns the weight at a specified position (uIndex, vIndex) in the weights array. Returns valid weight value only when the surface is rational.
Parameters
Parameters
Description
iUIndex
[in] An index of weight value in the u direction. Index starts from the 0 value.
iVIndex
[in] An index of weight value in the v direction. Index starts from the 0 value.
weight
[out] A passed-in parameter for returning the weight value at the specified position.
Returns
Returns eOk if the weight value was successfully returned. If the surface doesn't contain the weight information (weight array is empty or is NULL), returns eFail. If the uIndex or vIndex values are invalid, returns eOutOfRange.