redmoon Sat, 06/20/2009 - 08:03 Forums: Other usage issuesHello! I want to trim a 3-dimensional curved surface by a curve. How can I do that? Thanks in advance. Marco Matt Mon, 06/22/2009 - 12:28 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(); Log in to post comments
Mon, 06/22/2009 - 12:28
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();