Sdk split c++

How can I do something like _Split or _Trim of rhino using the SDK (C++)?

Im trying to cut a Brep with a Curve, for example

Hope it can help,

Cheers