API Reference > OdGe Classes > OdGeOffsetCurve2d Class > OdGeOffsetCurve2d Constructor > OdGeOffsetCurve2d::OdGeOffsetCurve2d Constructor (OdGeCurve2d&, double, bool)
OdGeOffsetCurve2d::OdGeOffsetCurve2d Constructor (OdGeCurve2d&, double, bool)
Syntax
C++
OdGeOffsetCurve2d(const OdGeCurve2d& baseCurve, double offsetDistance, bool makeCopy = false);
Parameters 
Description 
const OdGeCurve2d& baseCurve 
[in] Any 2D curve to be set as the base curve.  
double offsetDistance 
[in] Offset distance.  
bool makeCopy = false 
[in] If true, makes a copy of the base curve specified by the baseCurve parameter. 

Sets the base curve pointer to baseCurve, and the offset distance to offsetDistance. 

 

If makeCopy is true, the constructor makes a copy of the 2D curve entity specified by the baseCurve parameter. The OdGeOffsetCurve2d object that is being created becomes the owner of the newly made copy of the given 2D curve. The direction of the offset is determined by the sign of the offsetDistance parameter.

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