I tried the BRepOffsetAPI_MakeFilling fillingMaker;
TopoDS_Edge edge12 = BRepBuilderAPI_MakeEdge(gp_Pnt(10,10,0),gp_Pnt(10,20,0));
TopoDS_Edge edge23 = BRepBuilderAPI_MakeEdge(gp_Pnt(10,20,0),gp_Pnt(20,20,0));
TopoDS_Edge edge36 = BRepBuilderAPI_MakeEdge(gp_Pnt(20,20,0),gp_Pnt(20,10,0));
TopoDS_Edge edge34 = BRepBuilderAPI_MakeEdge(gp_Pnt(20,20,0),gp_Pnt(40,25,10));
TopoDS_Edge edge45 = BRepBuilderAPI_MakeEdge(gp_Pnt(40,25,10),gp_Pnt(40,15,10));
TopoDS_Edge edge56 = BRepBuilderAPI_MakeEdge(gp_Pnt(40,15,10),gp_Pnt(20,10,0));
TopoDS_Edge edge61 = BRepBuilderAPI_MakeEdge(gp_Pnt(20,10,0),gp_Pnt(10,10,0));
fillingMaker.Add(edge12,GeomAbs_C0,Standard_True);
fillingMaker.Add(edge23,GeomAbs_C0,Standard_True);
fillingMaker.Add(edge36,GeomAbs_C0,Standard_False);
fillingMaker.Add(edge34,GeomAbs_C0,Standard_True);
fillingMaker.Add(edge45,GeomAbs_C0,Standard_True);
fillingMaker.Add(edge56,GeomAbs_C0,Standard_True);
fillingMaker.Add(edge61,GeomAbs_C0,Standard_True);
But the produces face (I want a shell) is not what I want->
http://i28.tinypic.com/2uhtkxe.jpg
I need a simple planar surface. Can anybody tell my how I can produce a flat surface with these edges?
Thanks