Two missing header files in Geo/GModelIO_OCC.cpp
When compiling with OpenCASCADE 6.9.1, the following two errors are thrown:
[ 95s] /home/abuild/rpmbuild/BUILD/gmsh-4.5.2-source/Geo/GModelIO_OCC.cpp: In member function 'bool OCC_Internals::addPlateSurface(int&, int, const std::vector<int>&, const std::vector<int>&, const std::vector<int>&)':
[ 95s] /home/abuild/rpmbuild/BUILD/gmsh-4.5.2-source/Geo/GModelIO_OCC.cpp:1620:68: error: invalid use of incomplete type 'class GeomPlate_PointConstraint'
[ 95s] 1620 | new GeomPlate_PointConstraint(BRep_Tool::Pnt(vertex), 0, .1);
[ 95s] | ^
[ 95s] In file included from /usr/include/oce/GeomPlate_BuildPlateSurface.hxx:26,
[ 95s] from /usr/include/oce/BRepFill_Filling.hxx:13,
[ 95s] from /usr/include/oce/BRepOffsetAPI_MakeFilling.hxx:13,
[ 95s] from /home/abuild/rpmbuild/BUILD/gmsh-4.5.2-source/Geo/GModelIO_OCC.cpp:44:
[ 95s] /usr/include/oce/Handle_GeomPlate_PointConstraint.hxx:16:7: note: forward declaration of 'class GeomPlate_PointConstraint'
[ 95s] 16 | class GeomPlate_PointConstraint;
[ 95s] | ^~~~~~~~~~~~~~~~~~~~~~~~~
[ 95s] /home/abuild/rpmbuild/BUILD/gmsh-4.5.2-source/Geo/GModelIO_OCC.cpp: In member function 'bool OCC_Internals::makeEdgeSTLFromFace(const TopoDS_Edge&, const TopoDS_Face&, std::vector<SPoint3>*)':
[ 95s] /home/abuild/rpmbuild/BUILD/gmsh-4.5.2-source/Geo/GModelIO_OCC.cpp:4542:54: error: invalid use of incomplete type 'class Poly_PolygonOnTriangulation'
[ 95s] 4542 | const TColStd_Array1OfInteger &edgeVerts = edgepoly->Nodes();
[ 95s] | ^~
[ 95s] In file included from /usr/include/oce/BRep_Tool.hxx:22,
[ 95s] from /home/abuild/rpmbuild/BUILD/gmsh-4.5.2-source/Geo/OCCEdge.h:21,
[ 95s] from /home/abuild/rpmbuild/BUILD/gmsh-4.5.2-source/Geo/GModelIO_OCC.cpp:11:
[ 95s] /usr/include/oce/Handle_Poly_PolygonOnTriangulation.hxx:16:7: note: forward declaration of 'class Poly_PolygonOnTriangulation'
[ 95s] 16 | class Poly_PolygonOnTriangulation;
[ 95s] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 95s] make[2]: *** [CMakeFiles/shared.dir/build.make:1470: CMakeFiles/shared.dir/Geo/GModelIO_OCC.cpp.o] Error 1
[ 95s] make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/gmsh-4.5.2-source/build'
[ 95s] make[2]: *** Waiting for unfinished jobs....
[ 98s] make[2]: Entering directory '/home/abuild/rpmbuild/BUILD/gmsh-4.5.2-source/build'
Edited by Stefan Brüns