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 pointer to 2d variant of the curve (z-coordinate will be ignored). 

 

If it is possible, then curve will be converted analytically (i.e. 3d line segment becomes 2d line segment, etc), otherwise it will be projected onto XY-plane.

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