API Reference > OdGe Classes > OdGeCurve2d Class > OdGeCurve2d Methods > OdGeCurve2d::getSplitCurves Method
OdGeCurve2d::getSplitCurves Method
Syntax
C++
void getSplitCurves(double param, OdGeCurve2d*& piece1, OdGeCurve2d*& piece2) const;
Parameters 
Description 
double param 
[in] Parameter value at which curve is to be split  
OdGeCurve2d*& piece1 
[out] Pointer to first curve segment.  
OdGeCurve2d*& piece2 
[out] Pointer to second curve segment. 

Returns two segments that are obtained by splitting the curve at the input parameter value.

If the specified parameter value does not lie within the parametric interval of the curve or if it corresponds to the start or endpoint of the curve, then piece1 and piece2 are set to null. 

By default this function throws the exception "not Implemented". Should be implemented in derived classes.

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