Having issues with Split & BreakCurve on SketchFittedSpline
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've been running into issues with using either Split or BreakCurve on a fitted spline. I have a very simple sketch spline with 2 control points (start and finish) . I draw a straight line across it and ask fusion for the intersections. It provides me with a point where the straight line crosses the spline.
Example of issue
When I call Split or BreakCurve on the spline at that point, sometimes it works, sometimes it doesn't. In the supplied image, you can see I have four intersections points. Sometimes they all work, sometimes only three. If I move the position of the straight lines, it sometimes makes things work.
I've spent ages trying to debug this, and I'm starting to conclude that Split/BreakCurve on a spline doesn't work properly, can anyone confirm?
Sometimes BreakCurve returns a single curve which is the original curve I'm trying to break. According to the documentation it should either return the broken two curves, or an empty container. Sometimes it returns that, sometimes it returns a nullptr. I see internal exceptions being thrown from fusion but I don't know what they are.
Things to add are that fusion sees the interception points as it gives them to me when I call that function and it also automatically generates a profile of the bit I'm interested in automatically using the geometry. And it works fine if I hit split in the UI at the interception points. Also this is all in parametric modelling.
If it's not an obvious bug that people know about, I can spend some time putting together a repo if it helps.