curve segment


I am new to OpenCascade. In one project, I encountered the following problem:

Having a generic curve (closed or open), we define a curve segment on the given curve by clicking three points on it. These three points include tail and head of the curve segment and the middle point specifies which segment is intended in the case of closed curve. We wanted to use this segment to create a new curve.

Question: Does Open Cascade support such operation? If yes, how? Any suggestions are greatly appreciated.


altezza's picture

I reply to my post. I found a function that can serve this purpose:

SplitBSplineCurve(curve, u1, u2, tolerance, orientation).

Now I need to find out how to get u1 and u2 based on 3D points.