API Reference > OdDb Classes > OdDbNurbSurface Class > OdDbNurbSurface Methods > OdDbNurbSurface::getWeight Method
OdDbNurbSurface::getWeight Method
Syntax
C++
OdResult getWeight(int iUIndex, int iVIndex, double& weight) const;
Parameters 
Description 
int iUIndex 
[in] An index of weight value in the u direction. Index starts from the 0 value.  
int 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–2020. Open Design Alliance. All rights reserved.