Hi,
My problem is only 2D.
I am trying to do the following :
- let's say I have 2 curves. I compute their intersection using curve1.Intersect(curve2, out IntersectionResultArray ira);
- Then I want to split each curve into 2 curves, one on each side of the intersection.
Here is the code :
Curve curve1, curve2, curve11, curve12, curve21, curve22;
curve1.Intersect(curve2, out IntersectionResultArray ira);
if(ira!=null)
{
IntersectionResult ir = ira.get_item(0);
double param = ir.Parameter;
curve11 = curve1;
curve11.MakeBound(curve11.GetEndPointParameter(0),param);
etc...
}
The thing is : the code line
double param = ir.Parameter;
systematically returns an error message (InvalidOperationException) whatever the curves are.
I tryed on simple curves (lines) as well as arcs and the error message always occurs.
Any idea where this comes from? Or another simple way to deal with this?
Benoit
Solved! Go to Solution.