API Reference > OdDb Classes > OdDbEllipse Class > OdDbEllipse Methods > OdDbEllipse::setFromOdGeCurve Method
OdDbEllipse::setFromOdGeCurve Method
Syntax
C++
virtual OdResult setFromOdGeCurve(const OdGeCurve3d& geCurve, OdGeVector3d * normal = NULL, const OdGeTol& tol = OdGeContext::gTol);
Parameters 
Description 
const OdGeCurve3d& geCurve 
[in] reference to an OdGeCurve3d.  
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 sets this OdDbCurve to be geometrically identical to the OdGeCurve3d.

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