I don't think BRepBuilderAPI_MakeFace is only for planar faces, from documentation .
Find a surface from the wire and make a face. if <OnlyPlane> is true, the computed surface will be a plane. If it is not possible to find a plane, the flag NotDone will be set.
And attached you can see a face I got from using the class.
Mon, 05/04/2020 - 17:46
The problem may be that your wire is not plane (I think this is mandatory for using BRepBuilderAPI_MakeFace).
Check out this https://www.opencascade.com/content/create-face-non-planar-wire-using-oc... or if your wire is supposed to be plane try using this constructor
that takes a plane as an argument. This should be the plane your wire should lie in.
Tue, 05/05/2020 - 10:34
I don't think BRepBuilderAPI_MakeFace is only for planar faces, from documentation .
And attached you can see a face I got from using the class.