API Reference > OdDg Classes > OdDgBSplineSurface Class > OdDgBSplineSurface Methods > OdDgBSplineSurface::getWeight Method
OdDgBSplineSurface::getWeight Method
Syntax
C++
OdResult getWeight(OdUInt32 iUIndex, OdUInt32 iVIndex, double& weight) const;
Parameters 
Description 
OdUInt32 iUIndex 
[in] An index of weight value in the u direction. Index starts from the 0 value.  
OdUInt32 iVIndex 
[in] An index of weight value in the v direction. Index starts from the 0 value.  
double& 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.

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

 

Copyright © 2002–2021. Open Design Alliance. All rights reserved.