Meshing a surface imported from opencascade
hi I have created a wing surface using opencascade thruSection. here is a snipet of the code: TopoDS_Wire aWr1= BRepPrimAPI_MakeWire(anEdge1); TopoDS_Wire aWr2= BRepPrimAPI_MakeWire(anEdge2); BRepOffsetAPI_ThruSections wing(Standard_False,Standard_False); wing.AddWire(aWr1); wing.AddWire(aWr2); TopoDS_Shape aShape=wing.Shape(); TopoDS_Face wingtip= BRepBuilderAPI_MakeFace(aWr2); aShape = BRepAlgoAPI_Fuse(aShape, wingtip);
then I imported the faces to gmsh TopExp_Explorer faceExp(shape,TopAbs_FACE); while(FaceExp.More()) { TopoDS_Face aFace=TopoDS::Face(FaceExp.Current()); gmsh::model::occ::importShapeNativePointer(&aFace,dimtags); gmsh::model::occ::synchronize(); faceExp.Next(); } //set the mesh size gmsh::model::mesh::generate(2); gmsh::finilize(); ...
However it doesn't create build the mesh nor does it return any error. My guess is that the wire profile was created from a closed Spline therefore it generates a single surface.