I am struggling with computing a parallel line to the existing line in certain distance.
I have tried:
OdGeLine2d::getTrimmedOffset()
OdGeLineSeg2d::getTrimmedOffset()
OdGeLine3d::getTrimmedOffset()
OdGeLineSeg3d::getTrimmedOffset()
but all of them trow a "Not implemented" exception.
Than I tried to use a OdGeOffsetCurve2d
class. Constructing of this class doesn't throw exception, but any attempt to get a point of this curve does. Same exception: "Not implemented".
So, how can a get a point that lies on the OdGeOffsetCurve2d
? Or is there any other way to compute an offset curve?
And what are all those getTrimmedOffset()
methods for? Just to throw exceptions?
PS: I do not have enough reputation to create a new Teigha tag. Please, do so and edit my question. Teigha is a core library for developing CAD applications https://www.opendesign.com/.