Close

Relief for ODA Team in Ukraine

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

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

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

 

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

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

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