API Reference > OdDg Classes > OdDgCurveElement2d Class > OdDgCurveElement2d Methods > OdDgCurveElement2d::createFromOdGeCurve Method
OdDgCurveElement2d::createFromOdGeCurve Method
Syntax
C++
static OdResult createFromOdGeCurve(const OdGeCurve2d& geCurve, OdDgCurveElement2d*& pDgCurve, const OdGeTol& tol = OdGeContext::gTol);
Parameters 
Description 
const OdGeCurve2d& geCurve 
[in] Reference to an OdGeCurve2d.  
OdDgCurveElement2d*& pDgCurve 
[out] Receives a pointer to an OdDgCurveElement2d object that is geometrically identical to geCurve. The caller of this function is responsible for deleting this OdDbCurve object or adding it to the database.  
const OdGeTol& tol = OdGeContext::gTol 
[in] Optional tolerance 

Returns eOk if successful.

Takes an OdGeCurve3d and returns an OdDbCurve that is geometrically identical to the OdGeCurve3d.

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