API Reference > OdGe Classes > OdGeNurbCurve3d Class > OdGeNurbCurve3d Methods > OdGeNurbCurve3d::setWeightAt Method
OdGeNurbCurve3d::setWeightAt Method
Syntax
C++
OdGeNurbCurve3d& setWeightAt(int weightIndex, double weight);
Parameters 
Description 
int weightIndex 
[in] Weight index.  
double weight 
[in] Weight at the specified fit point. 

Reference to this OdGeNurbCurve3d object.

Sets the weight at the specified index. 

 

The closer the weight value is to zero, the closer the curve is to a straight line near the corresponding control point. If the weight increases, the curve pulls toward the corresponding control point. If the weight decreases, the curve pushes from the corresponding control point.

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