Close

Relief for ODA Team in Ukraine

Learn more
ODA Kernel SDK
OdGeOffsetCurve2d Class
Syntax
C++
class OdGeOffsetCurve2d : public OdGeCurve2d;

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 

 

OdGeOffsetCurve2dOdGeOffsetCurve2dOdGeOffsetCurve2d

File: GeOffsetCurve2d.h 

Module: API Reference 

Show:
No members matching the current filter
Show:
No members matching the current filter
Show:
No members matching the current filter
Copyright © 2002-2022. Open Design Alliance All rights reserved.