Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDgBSplineSurface::getWeight Method
Syntax
C++
OdResult getWeight(OdUInt32 iUIndex, OdUInt32 iVIndex, double& weight) const;

Returns the weight at a specified position (uIndex, vIndex) in the weights array. Returns valid weight value only when the surface is rational. 

 

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 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.

Copyright © 2002-2022. Open Design Alliance All rights reserved.