I am trying to figure out how to create a displayable shape (eg, AIS_Shape) from a Bezier surface but cannot seem to determine the right sequence. Here is my code snippet of the surface creation:
Handle(Geom_BezierCurve) bc3 = new Geom_BezierCurve(pntArray3,whtArray3);
Handle(GeomFill_BezierCurves) bcFill = new GeomFill_BezierCurves(bc1, bc2, bc3, GeomFill_CurvedStyle);
Handle(Geom_BezierSurface) bzSurf = bcFill->Surface();
This throws no errors. At this point I would have thought that some form of BRepBuilderAPI_MakeFace() would work to give me a face:
TopoDS_Face bzFace = BRepBuilderAPI_MakeFace(bzSurf);
TopoDS_Face bzFace = BRepBuilderAPI_MakeFace(bzSurf,1E-07);
But I get an error regarding no candidate constructor. Any pointer? Am I missing something obvious?