API Reference > OdGe Classes > OdGeOffsetCurve2d Class
OdGeOffsetCurve2d Class
OdGeOffsetCurve2dOdGeOffsetCurve2dOdGeOffsetCurve2d
Syntax
C++
class OdGeOffsetCurve2d : public OdGeCurve2d;

GeOffsetCurve2d.h

This class represents 2D curves that are exact offsets of other curves.

Every GeOffsetCurve2d contains a pointer to the curve from which it is offset. Modifying the base curve modifies the offset curve. Modifying the offset curve does not modify the base curve. Actual base curve can be obtained by calling curve() method, it can be changed relative to the curve passed in constructor due to cloning under the flag in constructor or applying transformBy() and reverseParam() methods. setInterval() for an offset curve result create a curve that is an offset of the specified interval in the base curve. 

This curve may be self-intersecting, even if the base curve is not. 

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. 

An offset curve with a 0.0 offset distance is exact replica of the base curve. An offset curve with a non-zero 0.0 offset distance has a continuity of one less than that of the base curve. To insure that the offset curve is a valid curve, the base curve must have a continuity of at least 1. 

Corresponding C++ library: TD_Ge 

 

 
Name 
Description 
 
This is the overview for the OdGeOffsetCurve2d constructor overload. 
 
Name 
Description 
 
Returns a pointer to the base curve. 
 
Returns the offset distance of this curve. 
 
Checks whether this curve has the same parameter direction as the base curve. 
 
Sets the base curve for this OdGeOffsetCurve2d object.
 
 
Sets the offset distance for this curve.
 
 
Returns the concatenation of the transformation matrices applied to this curve with transformBy(). 
 
Name 
Description 
 
= 
Assignment operator for the OdGeOffsetCurve2d object.
 
Copyright © 2002–2022. Open Design Alliance. All rights reserved.