From 00fc408f99523b7c143f439d03045e761c8388be Mon Sep 17 00:00:00 2001 From: Louis Gombert Date: Tue, 13 Aug 2024 11:43:53 +0000 Subject: [PATCH] Fix for OCCT 7.6 WASM --- src/SMESHUtils/SMESH_MeshAlgos.cxx | 3 +++ src/SMESHUtils/SMESH_Slot.cxx | 4 +++- src/StdMeshers/StdMeshers_Cartesian_3D.cxx | 3 +++ src/StdMeshers/StdMeshers_Projection_2D.cxx | 4 ++-- src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx | 3 +++ src/StdMeshers/StdMeshers_ViscousLayers.cxx | 4 ++-- 6 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/SMESHUtils/SMESH_MeshAlgos.cxx b/src/SMESHUtils/SMESH_MeshAlgos.cxx index e8b118798..5faeeca2d 100644 --- a/src/SMESHUtils/SMESH_MeshAlgos.cxx +++ b/src/SMESHUtils/SMESH_MeshAlgos.cxx @@ -41,6 +41,9 @@ #include #include #include +#include +#include +#include #include #include #include diff --git a/src/SMESHUtils/SMESH_Slot.cxx b/src/SMESHUtils/SMESH_Slot.cxx index ca0327e81..5540d8dc2 100644 --- a/src/SMESHUtils/SMESH_Slot.cxx +++ b/src/SMESHUtils/SMESH_Slot.cxx @@ -26,7 +26,9 @@ #include "SMDS_LinearEdge.hxx" #include "SMDS_Mesh.hxx" #include "SMDS_MeshGroup.hxx" - +#include +#include +#include #include #include #include diff --git a/src/StdMeshers/StdMeshers_Cartesian_3D.cxx b/src/StdMeshers/StdMeshers_Cartesian_3D.cxx index 48796921b..0114f904a 100644 --- a/src/StdMeshers/StdMeshers_Cartesian_3D.cxx +++ b/src/StdMeshers/StdMeshers_Cartesian_3D.cxx @@ -73,6 +73,9 @@ #include #include #include +#include +#include +#include #include #include #include diff --git a/src/StdMeshers/StdMeshers_Projection_2D.cxx b/src/StdMeshers/StdMeshers_Projection_2D.cxx index 18086824c..e0bb229fe 100644 --- a/src/StdMeshers/StdMeshers_Projection_2D.cxx +++ b/src/StdMeshers/StdMeshers_Projection_2D.cxx @@ -67,7 +67,7 @@ #include -#if OCC_VERSION_LARGE < 0x07070000 +#if OCC_VERSION_LARGE < 0x07060000 #include #include #endif @@ -1890,7 +1890,7 @@ namespace { SMESHDS_Mesh* tgtMeshDS = tgtMesh->GetMeshDS(); Handle(Geom_Surface) tgtSurface = BRep_Tool::Surface( theTgtFace ); -#if OCC_VERSION_LARGE < 0x07070000 +#if OCC_VERSION_LARGE < 0x07060000 Handle(GeomAdaptor_HSurface) tgtSurfAdaptor = new GeomAdaptor_HSurface( tgtSurface ); Handle(GeomAdaptor_HCurve) piercingCurve = new GeomAdaptor_HCurve( thePiercingLine ); #else diff --git a/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx b/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx index 9ce825b6f..6f1600fa7 100644 --- a/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx +++ b/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx @@ -36,6 +36,9 @@ #include "SMESH_MesherHelper.hxx" #include "SMESH_subMesh.hxx" +#include +#include +#include #include #include #include diff --git a/src/StdMeshers/StdMeshers_ViscousLayers.cxx b/src/StdMeshers/StdMeshers_ViscousLayers.cxx index 3faa307b4..6a0737f1a 100644 --- a/src/StdMeshers/StdMeshers_ViscousLayers.cxx +++ b/src/StdMeshers/StdMeshers_ViscousLayers.cxx @@ -54,7 +54,7 @@ #include -#if OCC_VERSION_LARGE < 0x07070000 +#if OCC_VERSION_LARGE < 0x07060000 #include #else #include @@ -1829,7 +1829,7 @@ namespace VISCOUS_3D //case GeomAbs_SurfaceOfExtrusion: case GeomAbs_OffsetSurface: { -#if OCC_VERSION_LARGE < 0x07070000 +#if OCC_VERSION_LARGE < 0x07060000 Handle(Adaptor3d_HSurface) base = surface.BasisSurface(); return getRovolutionAxis( base->Surface(), axis ); #else