Close

Relief for ODA Team in Ukraine

Learn more
ODA Kernel SDK
OdGeCurve2d::convertTo3d Method (OdGeCurve3d&)
Syntax
C++
void convertTo3d(OdGeCurve3d& curve3d) const;

Gets a 3D variant of the curve (z-coordinate equal to zero). 

 

Parameters
Description
curve3d
[out] Reference to the resulting 3D curve of suitable type.

The user of this method should pass a 3D curve to the method that corresponds to the type of 2D curve, otherwise an eNotThatKindOfClass exception will be thrown. Examples of corresponding curve types:

  • OdGeRay2d - OdGeRay3d;
  • OdGeLine2d - OdGeLine3d;
  • OdGeLineSeg2d - OdGeLineSeg3d;
  • OdGeCircArc2d - OdGeCircArc3d;
  • OdGeEllipArc2d - OdGeEllipArc3d;
  • OdGePolyline2d - OdGePolyline3d;
  • OdGeNurbCurve2d - OdGeNurbCurve3d;

Copyright © 2002-2022. Open Design Alliance All rights reserved.