X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FBlockFix%2FBlockFix_UnionFaces.cxx;fp=src%2FBlockFix%2FBlockFix_UnionFaces.cxx;h=8a30a7e23e14e94b2dab57b08d62915b7904c8aa;hb=922cc08eea7fdde898b17104ced238c4978c2ec2;hp=294deb2245796d062e52873a92d1bdbba6125cc8;hpb=63e04ef7a7d83e52fc010bf95f88a9ce1d8aeebc;p=modules%2Fgeom.git diff --git a/src/BlockFix/BlockFix_UnionFaces.cxx b/src/BlockFix/BlockFix_UnionFaces.cxx index 294deb224..8a30a7e23 100644 --- a/src/BlockFix/BlockFix_UnionFaces.cxx +++ b/src/BlockFix/BlockFix_UnionFaces.cxx @@ -73,9 +73,13 @@ #include +#if OCC_VERSION_LARGE < 0x07070000 #include -#include +#else +#include +#endif +#include #include #include #include @@ -85,7 +89,9 @@ #include #include #include +#if OCC_VERSION_LARGE < 0x07070000 #include +#endif #include #include #include @@ -300,7 +306,11 @@ static Standard_Boolean IsTangentFaces(const TopoDS_Edge& theEdge, // Computation of the number of samples on the edge. BRepAdaptor_Surface aBAS(theFace); +#if OCC_VERSION_LARGE < 0x07070000 Handle(BRepAdaptor_HSurface) aBAHS = new BRepAdaptor_HSurface(aBAS); +#else + Handle(BRepAdaptor_Surface) aBAHS = new BRepAdaptor_Surface(aBAS); +#endif Handle(BRepTopAdaptor_TopolTool) aTool = new BRepTopAdaptor_TopolTool(aBAHS); Standard_Integer aNbSamples = aTool->NbSamples(); const Standard_Integer aNbSamplesMax = 23; @@ -903,8 +913,13 @@ Standard_Boolean BlockFix_UnionFaces::IsSameDomain(const TopoDS_Face& aFace, if (S1->IsKind(STANDARD_TYPE(Geom_ElementarySurface)) && S2->IsKind(STANDARD_TYPE(Geom_ElementarySurface))) { +#if OCC_VERSION_LARGE < 0x07070000 Handle(GeomAdaptor_HSurface) aGA1 = new GeomAdaptor_HSurface(S1); Handle(GeomAdaptor_HSurface) aGA2 = new GeomAdaptor_HSurface(S2); +#else + Handle(GeomAdaptor_Surface) aGA1 = new GeomAdaptor_Surface(S1); + Handle(GeomAdaptor_Surface) aGA2 = new GeomAdaptor_Surface(S2); +#endif Handle(BRepTopAdaptor_TopolTool) aTT1 = new BRepTopAdaptor_TopolTool(); Handle(BRepTopAdaptor_TopolTool) aTT2 = new BRepTopAdaptor_TopolTool();