Share

acdbConvertGelibCurveToAcDbCurve Function

C++

ACDBCORE2D_PORT Acad::ErrorStatus acdbConvertGelibCurveToAcDbCurve(
    const AcGeCurve3d& geCurve, 
    AcDbCurve*& pDbCurve, 
    AcGeVector3d* normal = NULL, 
    const AcGeTol& tol = AcGeContext::gTol
);

File

dbxutil.h

Description

This function takes an AcGeCurve3d and returns an AcDbCurve that is geometrically identical to the AcGeCurve3d.

Parameters

Parameters Description
geCurve Input reference to an AcGeCurve3d.
pDbCurve Output pointer to an AcDbCurve object that is geometrically identical to geCurve. The caller of this function is responsible for deleting this AcDbCurve object or adding it to the database.
normal 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.
tol Optional input tolerance.

Returns

eOk if successful.

Was this information helpful?