API Reference > OdDb Classes > OdDbNurbSurface Class > OdDbNurbSurface Methods > OdDbNurbSurface::setWeight Method
OdDbNurbSurface::setWeight Method
Syntax
C++
OdResult setWeight(int iUIndex, int iVIndex, double weight);
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 
[in] A new weight value to be set at a specified position.
 

Returns eOk if a new weight value was successfully set. 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.

Sets the weight value at a specified position in the weights array. 

If the surface is not rational, the method does nothing. 

 

This method is implemented only for Spatial modeler and returns eNotImplementedYet status for other modelers.

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