Fix for OCCT 7.6 WASM

This commit is contained in:
Louis Gombert 2024-08-13 11:43:53 +00:00
parent f3402508da
commit 00fc408f99
6 changed files with 16 additions and 5 deletions

View File

@ -41,6 +41,9 @@
#include <GC_MakeSegment.hxx> #include <GC_MakeSegment.hxx>
#include <GeomAPI_ExtremaCurveCurve.hxx> #include <GeomAPI_ExtremaCurveCurve.hxx>
#include <Geom_Line.hxx> #include <Geom_Line.hxx>
#include <gp_Sphere.hxx>
#include <gp_Cylinder.hxx>
#include <gp_Cone.hxx>
#include <IntAna_IntConicQuad.hxx> #include <IntAna_IntConicQuad.hxx>
#include <IntAna_Quadric.hxx> #include <IntAna_Quadric.hxx>
#include <gp_Lin.hxx> #include <gp_Lin.hxx>

View File

@ -26,7 +26,9 @@
#include "SMDS_LinearEdge.hxx" #include "SMDS_LinearEdge.hxx"
#include "SMDS_Mesh.hxx" #include "SMDS_Mesh.hxx"
#include "SMDS_MeshGroup.hxx" #include "SMDS_MeshGroup.hxx"
#include <gp_Sphere.hxx>
#include <gp_Cylinder.hxx>
#include <gp_Cone.hxx>
#include <IntAna_IntConicQuad.hxx> #include <IntAna_IntConicQuad.hxx>
#include <IntAna_Quadric.hxx> #include <IntAna_Quadric.hxx>
#include <NCollection_DataMap.hxx> #include <NCollection_DataMap.hxx>

View File

@ -73,6 +73,9 @@
#include <Geom_BezierSurface.hxx> #include <Geom_BezierSurface.hxx>
#include <Geom_RectangularTrimmedSurface.hxx> #include <Geom_RectangularTrimmedSurface.hxx>
#include <Geom_TrimmedCurve.hxx> #include <Geom_TrimmedCurve.hxx>
#include <gp_Sphere.hxx>
#include <gp_Cylinder.hxx>
#include <gp_Cone.hxx>
#include <IntAna_IntConicQuad.hxx> #include <IntAna_IntConicQuad.hxx>
#include <IntAna_IntLinTorus.hxx> #include <IntAna_IntLinTorus.hxx>
#include <IntAna_Quadric.hxx> #include <IntAna_Quadric.hxx>

View File

@ -67,7 +67,7 @@
#include <Basics_OCCTVersion.hxx> #include <Basics_OCCTVersion.hxx>
#if OCC_VERSION_LARGE < 0x07070000 #if OCC_VERSION_LARGE < 0x07060000
#include <GeomAdaptor_HCurve.hxx> #include <GeomAdaptor_HCurve.hxx>
#include <GeomAdaptor_HSurface.hxx> #include <GeomAdaptor_HSurface.hxx>
#endif #endif
@ -1890,7 +1890,7 @@ namespace {
SMESHDS_Mesh* tgtMeshDS = tgtMesh->GetMeshDS(); SMESHDS_Mesh* tgtMeshDS = tgtMesh->GetMeshDS();
Handle(Geom_Surface) tgtSurface = BRep_Tool::Surface( theTgtFace ); 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_HSurface) tgtSurfAdaptor = new GeomAdaptor_HSurface( tgtSurface );
Handle(GeomAdaptor_HCurve) piercingCurve = new GeomAdaptor_HCurve( thePiercingLine ); Handle(GeomAdaptor_HCurve) piercingCurve = new GeomAdaptor_HCurve( thePiercingLine );
#else #else

View File

@ -36,6 +36,9 @@
#include "SMESH_MesherHelper.hxx" #include "SMESH_MesherHelper.hxx"
#include "SMESH_subMesh.hxx" #include "SMESH_subMesh.hxx"
#include <gp_Sphere.hxx>
#include <gp_Cylinder.hxx>
#include <gp_Cone.hxx>
#include <IntAna_IntConicQuad.hxx> #include <IntAna_IntConicQuad.hxx>
#include <IntAna_Quadric.hxx> #include <IntAna_Quadric.hxx>
#include <TColgp_Array1OfPnt.hxx> #include <TColgp_Array1OfPnt.hxx>

View File

@ -54,7 +54,7 @@
#include <Basics_OCCTVersion.hxx> #include <Basics_OCCTVersion.hxx>
#if OCC_VERSION_LARGE < 0x07070000 #if OCC_VERSION_LARGE < 0x07060000
#include <Adaptor3d_HSurface.hxx> #include <Adaptor3d_HSurface.hxx>
#else #else
#include <Adaptor3d_Surface.hxx> #include <Adaptor3d_Surface.hxx>
@ -1829,7 +1829,7 @@ namespace VISCOUS_3D
//case GeomAbs_SurfaceOfExtrusion: //case GeomAbs_SurfaceOfExtrusion:
case GeomAbs_OffsetSurface: case GeomAbs_OffsetSurface:
{ {
#if OCC_VERSION_LARGE < 0x07070000 #if OCC_VERSION_LARGE < 0x07060000
Handle(Adaptor3d_HSurface) base = surface.BasisSurface(); Handle(Adaptor3d_HSurface) base = surface.BasisSurface();
return getRovolutionAxis( base->Surface(), axis ); return getRovolutionAxis( base->Surface(), axis );
#else #else