API Reference > OdGe Classes > OdGeCurve2d Class > OdGeCurve2d Methods > convertTo3d Method > OdGeCurve2d::convertTo3d Method (OdGeCurve3d&)
OdGeCurve2d::convertTo3d Method (OdGeCurve3d&)
Syntax
C++
void convertTo3d(OdGeCurve3d& curve3d) const;
Parameters 
Description 
OdGeCurve3d& curve3d 
[out] Reference to resulting 3d curve of suitable type. 

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

 

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–2020. Open Design Alliance. All rights reserved.