API Reference > Classes > PRC Curve Classes > OdPrcCurve2d Class > OdPrcCurve2d Methods > OdPrcCurve2d::createFromOdGeCurve Method
OdPrcCurve2d::createFromOdGeCurve Method
Syntax
C++
static OdResult createFromOdGeCurve(const OdGeCurve2d& geCurve, OdPrcCurve2dPtr& pPrcCurve, const OdGeTol& tol = OdGeContext::gTol);
Parameters 
Description 
const OdGeCurve2d& geCurve 
[in] A reference to an OdGeCurve2d object containing curve information to be set.  
OdPrcCurve2dPtr& pPrcCurve 
[in/out] Pointer object to which the result will be written.  
const OdGeTol& tol = OdGeContext::gTol 
[in] Tolerance. Default value is equal to OdGeContext::gTol.  

Returns eOk if common curve information was successfully set or an appropriate error code in the other case.

Creates new 2d curve instance from OdGeCurve2d. 

 

Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.