API Reference > OdGe Classes > OdGeOffsetCurve2d Class > OdGeOffsetCurve2d Methods > OdGeOffsetCurve2d::setOffsetDistance Method
OdGeOffsetCurve2d::setOffsetDistance Method
Syntax
C++
OdGeOffsetCurve2d& setOffsetDistance(double distance);
Parameters 
Description 
double distance 
[in] Distance by which this curve is offset from the base curve. 

Sets the offset distance for this curve. 

 

Positive offset distances at any point on the base curve are defined as 90° counterclockwise from the tangent of the base curve at that point. The direction of offset is determined by the sign of the distance parameter. 

An offset curve with a 0.0 offset distance is exact replica of the base curve.

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