API Reference > OdDg Classes > OdDgBSplineSurface Class > OdDgBSplineSurface Methods > OdDgBSplineSurface::setWeight Method
OdDgBSplineSurface::setWeight Method
Syntax
C++
OdResult setWeight(OdUInt32 iUIndex, OdUInt32 iVIndex, double weight);
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 
[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.