How to trim surface by curve

Hello!

I want to trim a 3-dimensional curved surface by a curve.
How can I do that?

Thanks in advance.

Marco Matt's picture

It is not clear what do you want to achieve (geometry or topology?)...

If your curve is closed you can obtain a face with:

Handle(Geom_Surface) yourCurvedSurface = ??
Handle(Geom_Curve) yourCurve = ??

TopoDS_Wire = BRepBuilderAPI_MakeWire( BRepBuilderAPI_MakeEdge(yourCurve).Edge() ).Wire();
TopoDS_Face rusultFace = BRepBuilderAPI_MakeFace(yourCurvedSurface, wire, Standard_True).Face();