Share

AcGeCurve3d::explode

C++

GE_DLLEXPIMPORT Adesk::Boolean explode(
    AcGeVoidPointerArray& explodedCurves, 
    AcGeIntArray& newExplodedCurves, 
    const AcGeInterval* intrvl = NULL
) const;

Description

Explodes the curve into its individual components. If the curve is a composite curve, then explodedCurves contains the list of component curves of the composite. If the curve is a spline, then it is exploded at the points of C1 discontinuity and explodedCurves contains a copy of each continuous sub-curve.

This function returns Adesk::kTrue if the curve was exploded (that is, the curve was a composite or a discontinuous spline) and Adesk::kFalse otherwise.

The number of entries returned in newExplodedCurves is always the same as the number of entries in explodedCurves.

Each flag in newExplodedCurves indicates whether the corresponding curve in explodedCurves was created with the new operator. If the flag is 1, then it is the responsibility of the caller to delete the curve. If the flag is 0, the curve is deleted by gelib and the caller should not attempt to delete it.

If no intrvl parameter is supplied, then the interval is taken to be the entire curve.

Parameters

Parameters Description
explodedCurves Output list of curves into which this curve was exploded
newExplodedCurves Output flag telling whether returned curves should be deleted
intrvl Input interval of curve that is to be exploded

Links

AcGeCurve3d

Was this information helpful?