I have a problem making a face out of grid data: I have a regular 2D-grid with height values at every point. I want to transform that into a face in order to be able to extrude it afterwards. In the end I want to get a solid.
In my implementation first of all I define four gp_Pnt for every grid cell. With the help of these points I create four TopoDS_Edge by using the BRepBuilderAPI_MakeEdge(...). Afterward I define a BRepBuilderAPI_MakeWire and use the Method Add(...) to add all edges. And now my problems start. I tried to use BRepBuilderAPI_MakeFace(conructedWire) to build a face out of the construced wire. Afterwards I wanted to use BRepPrimAPI_MakePrism(...) to extrude the face. The extrusion is not the problem, I tested it with simpler faces and shapes. But the construction of the face out of the complex wire fails. Does anyone knows why?
Thanks a lot!