API Reference > OdGe Classes > OdGeCurve3d Class > OdGeCurve3d Methods > OdGeCurve3d::convertTo2d Method
OdGeCurve3d::convertTo2d Method
Syntax
C++
OdGeCurve2d* convertTo2d(const OdGeTol& tol = OdGeContext::gTol, bool sameParametrization = false) const;
Parameters 
Description 
const OdGeTol& tol = OdGeContext::gTol 
[in] Tolerance used in case of interpolation.  
bool sameParametrization = false 
[in] Necessity of parametrization preserving during conversion. 

Returns a pointer to the 2D variant of the curve (z-coordinate will be ignored). 

 

If it is possible, than the curve will be converted analytically (i.e. 3D line segment becomes a 2D line segment, etc), otherwise it will be projected onto an XY-plane.

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