OCC is new to me and I am experimenting to see how difficult it will be to use OCC for a 2D sketcher application that I am writing. I wanted to cut/trim one 2D curve with another, which should result in multiple curves. However, I'm not sure how to go about this. I didn't see an example in the OCC samples, so I'm hoping for some help with this.
Currently, I have a small chunk of code that uses the Geom2dAPI_InterCurveCurve class to intersect the two curves, but I'm not sure what to do with the resulting intersection points. It seems like I need to take these 2D intersection points and find the corresponding parameter value on the curve to be trimmed, but I'm not sure how to do this.