API Reference > OdDb Classes > OdDbCurve Class > OdDbCurve Methods > OdDbCurve::createFromOdGeCurve Method
OdDbCurve::createFromOdGeCurve Method
Syntax
C++
static OdResult createFromOdGeCurve(const OdGeCurve3d& geCurve, OdDbCurve*& pDbCurve, OdGeVector3d * normal = NULL, const OdGeTol& tol = OdGeContext::gTol);
Parameters 
Description 
const OdGeCurve3d& geCurve 
[in] Reference to an OdGeCurve3d.  
OdDbCurve*& pDbCurve 
[out] Receives a pointer to an OdDbCurve 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.  
OdGeVector3d * normal = NULL 
[in] Optional normal vector. If this parameter is supplied then it must be a valid vector that is perpendicular to the input geCurve, and this vector will become the normal vector of the output pDbCurve. If this parameter is not supplied, then this function will compute the normal vector itself.  
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.