API Reference > OdDg Classes > OdDgCurveElement3d Class > OdDgCurveElement3d Methods > OdDgCurveElement3d::createFromOdGeCurve Method
OdDgCurveElement3d::createFromOdGeCurve Method
Syntax
C++
static OdResult createFromOdGeCurve(const OdGeCurve3d& geCurve, OdDgCurveElement3d*& pDgCurve, OdGeVector3d * normal = NULL, const OdGeTol& tol = OdGeContext::gTol);
Parameters 
Description 
const OdGeCurve3d& geCurve 
[in] Reference to an OdGeCurve3d.  
OdDgCurveElement3d*& pDgCurve 
[out] Receives a pointer to an OdDgCurveElement3d 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–2021. Open Design Alliance. All rights reserved.