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

Reference to this OdGeNurbCurve2d 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.