API Reference > OdDg Classes > OdDgShape2d Class > OdDgShape2d Methods > OdDgShape2d::setFromOdGeCurve Method
OdDgShape2d::setFromOdGeCurve Method
Syntax
C++
virtual OdResult setFromOdGeCurve(const OdGeCurve2d& geCurve, const OdGeTol& tol = OdGeContext::gTol);
Parameters 
Description 
const OdGeCurve2d& geCurve 
[in] reference to an OdGeCurve2d.  
const OdGeTol& tol = OdGeContext::gTol 
[in] Optional tolerance. 

Returns eOk if successful.

Takes an OdGeCurve3d and sets this OdDbCurve to be geometrically identical to the OdGeCurve3d.

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