diff --git a/src/BlockFix/BlockFix_UnionEdges.cxx b/src/BlockFix/BlockFix_UnionEdges.cxx index f0beb7039..a4d0c0c01 100644 --- a/src/BlockFix/BlockFix_UnionEdges.cxx +++ b/src/BlockFix/BlockFix_UnionEdges.cxx @@ -150,7 +150,7 @@ static Standard_Boolean IsToMerge // Check if they belong to the same faces. Standard_Boolean isSame = Standard_False; Standard_Boolean has1 = theMapEdgeFaces.Contains(theEdge1); - Standard_Boolean has2 = theMapEdgeFaces.Contains(theEdge1); + Standard_Boolean has2 = theMapEdgeFaces.Contains(theEdge2); if (has1 && has2) { const TopTools_ListOfShape &aLst1 = theMapEdgeFaces.FindFromKey(theEdge1); diff --git a/src/BlockFix/BlockFix_UnionFaces.cxx b/src/BlockFix/BlockFix_UnionFaces.cxx index 67ff07f69..02765bfb4 100644 --- a/src/BlockFix/BlockFix_UnionFaces.cxx +++ b/src/BlockFix/BlockFix_UnionFaces.cxx @@ -246,6 +246,9 @@ static Standard_Boolean IsEdgeValidToMerge(const TopoDS_Edge &theEdge, Standard_Boolean isValid = Standard_True; if (BRep_Tool::IsClosed(theEdge, theFace)) { + // Mantis issue 0023451, now code corresponds to the comment to this method + isValid = Standard_False; + // This is a seam edge. Check if there are another seam edges on the face. TopExp_Explorer anExp(theFace, TopAbs_EDGE); @@ -261,7 +264,9 @@ static Standard_Boolean IsEdgeValidToMerge(const TopoDS_Edge &theEdge, TopoDS_Edge anEdge = TopoDS::Edge(aShEdge); if (BRep_Tool::IsClosed(anEdge, theFace)) { - isValid = Standard_False; + // Mantis issue 0023451, now code corresponds to the comment to this method + //isValid = Standard_False; + isValid = Standard_True; break; } } diff --git a/src/CurveCreator/CurveCreator_Utils.cxx b/src/CurveCreator/CurveCreator_Utils.cxx index 5f53caea4..53f68259f 100644 --- a/src/CurveCreator/CurveCreator_Utils.cxx +++ b/src/CurveCreator/CurveCreator_Utils.cxx @@ -146,7 +146,7 @@ gp_Pnt CurveCreator_Utils::ConvertClickToPoint( int x, int y, Handle(V3d_View) a // we need the projection to the XOY plane // 1. find a point in the plane of the eye and the normal to the plane Standard_Real X, Y, Z; - Quantity_Parameter Vx, Vy, Vz; + Standard_Real Vx, Vy, Vz; aView->ConvertWithProj( x, y, X, Y, Z, Vx, Vy, Vz ); // 2. build a ray from the point by the normal to the XOY plane and intersect it diff --git a/src/GEOM/GEOM_Function.cxx b/src/GEOM/GEOM_Function.cxx index e21a6df18..952dbd3e9 100644 --- a/src/GEOM/GEOM_Function.cxx +++ b/src/GEOM/GEOM_Function.cxx @@ -822,12 +822,7 @@ void GEOM_Function::AddSubShapeReference(Handle(GEOM_Function) theSubShape) TDF_Label aSubShapesLabel = _label.FindChild(SUBSHAPES_LABEL); - Handle(TDataStd_ExtStringList) aList; - if (!aSubShapesLabel.FindAttribute(TDataStd_ExtStringList::GetID(), aList)) { - aList = new TDataStd_ExtStringList; - aSubShapesLabel.AddAttribute(aList); - } - + Handle(TDataStd_ExtStringList) aList = TDataStd_ExtStringList::Set( aSubShapesLabel ); TCollection_AsciiString anEntry; TDF_Tool::Entry(theSubShape->GetOwnerEntry(), anEntry); aList->Append(anEntry); @@ -880,11 +875,7 @@ const TDataStd_ListOfExtendedString& GEOM_Function::GetSubShapeReferences() TDF_Label aSubShapesLabel = _label.FindChild(SUBSHAPES_LABEL); - Handle(TDataStd_ExtStringList) aList; - if (!aSubShapesLabel.FindAttribute(TDataStd_ExtStringList::GetID(), aList)) { - aList = new TDataStd_ExtStringList; - aSubShapesLabel.AddAttribute(aList); - } + Handle(TDataStd_ExtStringList) aList = TDataStd_ExtStringList::Set( aSubShapesLabel ); _isDone = true; return aList->List(); diff --git a/src/GEOM/GEOM_PythonDump.hxx b/src/GEOM/GEOM_PythonDump.hxx index 7736c343d..633fd44d0 100644 --- a/src/GEOM/GEOM_PythonDump.hxx +++ b/src/GEOM/GEOM_PythonDump.hxx @@ -61,20 +61,20 @@ namespace GEOM Standard_EXPORT TPythonDump& operator<< (const char* theArg); Standard_EXPORT TPythonDump& operator<< (const TCollection_AsciiString theArg); Standard_EXPORT TPythonDump& operator<< (const TopAbs_ShapeEnum theArg); - Standard_EXPORT TPythonDump& operator<< (const Handle(GEOM_BaseObject)& theObject); + Standard_EXPORT TPythonDump& operator<< (const Handle(::GEOM_BaseObject)& theObject); Standard_EXPORT TPythonDump& operator<< (const Handle(TColStd_HSequenceOfTransient)& objects); - Standard_EXPORT TPythonDump& operator<< (const std::list& theObjects); + Standard_EXPORT TPythonDump& operator<< (const std::list& theObjects); Standard_EXPORT TPythonDump& operator<< (const GEOM_BaseObject* theObject); }; /*! Returns an object from two given, which has the latest entry */ - Standard_EXPORT Handle(GEOM_Object) GetCreatedLast (const Handle(GEOM_Object)& theObj1, - const Handle(GEOM_Object)& theObj2); + Standard_EXPORT Handle(::GEOM_Object) GetCreatedLast (const Handle(::GEOM_Object)& theObj1, + const Handle(::GEOM_Object)& theObj2); /*! Returns an object from \a theObjects, which has the latest entry */ - Standard_EXPORT Handle(GEOM_Object) GetCreatedLast (const Handle(TColStd_HSequenceOfTransient)& theObjects); + Standard_EXPORT Handle(::GEOM_Object) GetCreatedLast (const Handle(TColStd_HSequenceOfTransient)& theObjects); } #endif diff --git a/src/GEOMAlgo/GEOMAlgo_RemoverWebs.cxx b/src/GEOMAlgo/GEOMAlgo_RemoverWebs.cxx index 0a7ca1e67..05636647b 100644 --- a/src/GEOMAlgo/GEOMAlgo_RemoverWebs.cxx +++ b/src/GEOMAlgo/GEOMAlgo_RemoverWebs.cxx @@ -225,7 +225,11 @@ void GEOMAlgo_RemoverWebs::BuildSolid() aSB.SetContext(myContext); aSB.SetShapes(aSFS); aSB.Perform(); +#if OCC_VERSION_LARGE > 0x07010001 + iErr=aSB.HasErrors(); +#else iErr=aSB.ErrorStatus(); +#endif if (iErr) { myErrorStatus=20; // SolidBuilder failed return; diff --git a/src/GEOMAlgo/GEOMAlgo_ShellSolid.cxx b/src/GEOMAlgo/GEOMAlgo_ShellSolid.cxx index db3b69bbb..cb7f85322 100644 --- a/src/GEOMAlgo/GEOMAlgo_ShellSolid.cxx +++ b/src/GEOMAlgo/GEOMAlgo_ShellSolid.cxx @@ -101,7 +101,9 @@ GEOMAlgo_ShellSolidBuilder::~GEOMAlgo_ShellSolidBuilder() //======================================================================= void GEOMAlgo_ShellSolidBuilder::PerformInternal(const BOPAlgo_PaveFiller& theFiller) { +#if OCC_VERSION_LARGE <= 0x07010000 myErrorStatus=0; +#endif // myPaveFiller=(BOPAlgo_PaveFiller*)&theFiller; myDS=myPaveFiller->PDS(); @@ -109,57 +111,97 @@ void GEOMAlgo_ShellSolidBuilder::PerformInternal(const BOPAlgo_PaveFiller& theFi // // 1. CheckData CheckData(); +#if OCC_VERSION_LARGE > 0x07010001 + if (HasErrors()) { +#else if (myErrorStatus) { +#endif return; } // // 2. Prepare Prepare(); +#if OCC_VERSION_LARGE > 0x07010001 + if (HasErrors()) { +#else if (myErrorStatus) { +#endif return; } // // 3. Fill Images // 3.1 Vertice FillImagesVertices(); +#if OCC_VERSION_LARGE > 0x07010001 + if (HasErrors()) { +#else if (myErrorStatus) { +#endif return; } // BuildResult(TopAbs_VERTEX); +#if OCC_VERSION_LARGE > 0x07010001 + if (HasErrors()) { +#else if (myErrorStatus) { +#endif return; } // 3.2 Edges FillImagesEdges(); +#if OCC_VERSION_LARGE > 0x07010001 + if (HasErrors()) { +#else if (myErrorStatus) { +#endif return; } // BuildResult(TopAbs_EDGE); +#if OCC_VERSION_LARGE > 0x07010001 + if (HasErrors()) { +#else if (myErrorStatus) { +#endif return; } // // 3.3 Wires FillImagesContainers(TopAbs_WIRE); +#if OCC_VERSION_LARGE > 0x07010001 + if (HasErrors()) { +#else if (myErrorStatus) { +#endif return; } // BuildResult(TopAbs_WIRE); +#if OCC_VERSION_LARGE > 0x07010001 + if (HasErrors()) { +#else if (myErrorStatus) { +#endif return; } // 3.4 Faces FillImagesFaces(); +#if OCC_VERSION_LARGE > 0x07010001 + if (HasErrors()) { +#else if (myErrorStatus) { +#endif return; } // BuildResult(TopAbs_FACE); +#if OCC_VERSION_LARGE > 0x07010001 + if (HasErrors()) { +#else if (myErrorStatus) { +#endif return; } } @@ -186,7 +228,9 @@ GEOMAlgo_ShellSolid::~GEOMAlgo_ShellSolid() //======================================================================= void GEOMAlgo_ShellSolid::Perform() { +#if OCC_VERSION_LARGE <= 0x07010000 myErrorStatus=0; +#endif // try { Standard_Integer aNbArgs, iRank, iErr, iBeg, iEnd, i, aNbSp; @@ -207,7 +251,11 @@ void GEOMAlgo_ShellSolid::Perform() myErrorStatus=10; return; } +#if OCC_VERSION_LARGE > 0x07010001 + if(myDSFiller->HasErrors()) { +#else if(myDSFiller->ErrorStatus()) { +#endif myErrorStatus=11; return; } @@ -251,7 +299,11 @@ void GEOMAlgo_ShellSolid::Perform() GEOMAlgo_ShellSolidBuilder aSSB; // aSSB.PerformWithFiller(*myDSFiller); +#if OCC_VERSION_LARGE > 0x07010001 + iErr=aSSB.HasErrors(); +#else iErr=aSSB.ErrorStatus(); +#endif if (iErr) { myErrorStatus=15; return; diff --git a/src/GEOMAlgo/GEOMAlgo_SolidSolid.cxx b/src/GEOMAlgo/GEOMAlgo_SolidSolid.cxx index 67dea8adf..b7f49b6ab 100644 --- a/src/GEOMAlgo/GEOMAlgo_SolidSolid.cxx +++ b/src/GEOMAlgo/GEOMAlgo_SolidSolid.cxx @@ -37,6 +37,7 @@ #include #include +#include #include @@ -84,7 +85,11 @@ void GEOMAlgo_SolidSolid::Perform() myErrorStatus=10; return; } +#if OCC_VERSION_LARGE > 0x07010001 + if(myDSFiller->HasErrors()) { +#else if(myDSFiller->ErrorStatus()) { +#endif myErrorStatus=11; return; } diff --git a/src/GEOMAlgo/GEOMAlgo_Splitter.cxx b/src/GEOMAlgo/GEOMAlgo_Splitter.cxx index 0df4a628b..fb5b8099b 100644 --- a/src/GEOMAlgo/GEOMAlgo_Splitter.cxx +++ b/src/GEOMAlgo/GEOMAlgo_Splitter.cxx @@ -41,6 +41,7 @@ #include +#include static void TreatCompound(const TopoDS_Shape& aC, @@ -149,7 +150,9 @@ void GEOMAlgo_Splitter::Clear() //======================================================================= void GEOMAlgo_Splitter::BuildResult(const TopAbs_ShapeEnum theType) { +#if OCC_VERSION_LARGE <= 0x07010000 myErrorStatus=0; +#endif // TopAbs_ShapeEnum aType; BRep_Builder aBB; diff --git a/src/GEOMAlgo/GEOMAlgo_VertexSolid.cxx b/src/GEOMAlgo/GEOMAlgo_VertexSolid.cxx index e8b763617..b669f5caf 100644 --- a/src/GEOMAlgo/GEOMAlgo_VertexSolid.cxx +++ b/src/GEOMAlgo/GEOMAlgo_VertexSolid.cxx @@ -90,7 +90,11 @@ void GEOMAlgo_VertexSolid::Perform() myErrorStatus=10; return; } +#if OCC_VERSION_LARGE > 0x07010001 + if(myDSFiller->HasErrors()) { +#else if(myDSFiller->ErrorStatus()) { +#endif myErrorStatus=11; return; } diff --git a/src/GEOMAlgo/GEOMAlgo_WireSolid.cxx b/src/GEOMAlgo/GEOMAlgo_WireSolid.cxx index 0f65ecc50..8c44271a7 100644 --- a/src/GEOMAlgo/GEOMAlgo_WireSolid.cxx +++ b/src/GEOMAlgo/GEOMAlgo_WireSolid.cxx @@ -80,7 +80,11 @@ void GEOMAlgo_WireSolid::Perform() myErrorStatus=10; return; } +#if OCC_VERSION_LARGE > 0x07010001 + if(myDSFiller->HasErrors()) { +#else if(myDSFiller->ErrorStatus()) { +#endif myErrorStatus=11; return; } diff --git a/src/GEOMImpl/GEOMImpl_BooleanDriver.cxx b/src/GEOMImpl/GEOMImpl_BooleanDriver.cxx index 6c2e34a89..3d03eff3f 100644 --- a/src/GEOMImpl/GEOMImpl_BooleanDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_BooleanDriver.cxx @@ -150,11 +150,19 @@ Standard_Integer GEOMImpl_BooleanDriver::Execute(LOGBOOK& log) const aList2.Append(aShape2); aCSI.SetArguments(aList1); aCSI.Perform(); +#if OCC_VERSION_LARGE > 0x07010001 + if (aCSI.HasErrors() || aCSI.DS().Interferences().Extent() > 0) +#else if (aCSI.ErrorStatus() || aCSI.DS().Interferences().Extent() > 0) +#endif StdFail_NotDone::Raise("Boolean operation will not be performed, because argument shape is self-intersected"); aCSI.SetArguments(aList2); aCSI.Perform(); +#if OCC_VERSION_LARGE > 0x07010001 + if (aCSI.HasErrors() || aCSI.DS().Interferences().Extent() > 0) +#else if (aCSI.ErrorStatus() || aCSI.DS().Interferences().Extent() > 0) +#endif StdFail_NotDone::Raise("Boolean operation will not be performed, because argument shape is self-intersected"); } @@ -205,7 +213,11 @@ Standard_Integer GEOMImpl_BooleanDriver::Execute(LOGBOOK& log) const aList1.Append(aShape); aCSI.SetArguments(aList1); aCSI.Perform(); +#if OCC_VERSION_LARGE > 0x07010001 + if (aCSI.HasErrors() || aCSI.DS().Interferences().Extent() > 0) { +#else if (aCSI.ErrorStatus() || aCSI.DS().Interferences().Extent() > 0) { +#endif StdFail_NotDone::Raise("Boolean operation will not be performed, because argument shape is self-intersected"); } } @@ -229,7 +241,11 @@ Standard_Integer GEOMImpl_BooleanDriver::Execute(LOGBOOK& log) const aList2.Append(aShape2); aCSI.SetArguments(aList2); aCSI.Perform(); - if (aCSI.ErrorStatus() || aCSI.DS().Interferences().Extent() > 0) { +#if OCC_VERSION_LARGE > 0x07010001 + if (aCSI.HasErrors() || aCSI.DS().Interferences().Extent() > 0) { +#else + if (aCSI.ErrorStatus() || aCSI.DS().Interferences().Extent() > 0) { +#endif StdFail_NotDone::Raise("Boolean operation will not be performed, because argument shape is self-intersected"); } } @@ -270,7 +286,11 @@ Standard_Integer GEOMImpl_BooleanDriver::Execute(LOGBOOK& log) const aList1.Append(aShape); aCSI.SetArguments(aList1); aCSI.Perform(); - if (aCSI.ErrorStatus() || aCSI.DS().Interferences().Extent() > 0) { +#if OCC_VERSION_LARGE > 0x07010001 + if (aCSI.HasErrors() || aCSI.DS().Interferences().Extent() > 0) { +#else + if (aCSI.ErrorStatus() || aCSI.DS().Interferences().Extent() > 0) { +#endif StdFail_NotDone::Raise("Boolean operation will not be performed, because argument shape is self-intersected"); } } @@ -300,7 +320,11 @@ Standard_Integer GEOMImpl_BooleanDriver::Execute(LOGBOOK& log) const aList2.Append(aTool); aCSI.SetArguments(aList2); aCSI.Perform(); - if (aCSI.ErrorStatus() || aCSI.DS().Interferences().Extent() > 0) { +#if OCC_VERSION_LARGE > 0x07010001 + if (aCSI.HasErrors() || aCSI.DS().Interferences().Extent() > 0) { +#else + if (aCSI.ErrorStatus() || aCSI.DS().Interferences().Extent() > 0) { +#endif StdFail_NotDone::Raise("Boolean operation will not be performed, because argument shape is self-intersected"); } } diff --git a/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx b/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx index a7491fe49..a1b80e366 100644 --- a/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx @@ -145,7 +145,9 @@ GEOMImpl_IMeasureOperations::ShapeKind GEOMImpl_IMeasureOperations::KindOfShape GEOMAlgo_ShapeInfoFiller aSF; aSF.SetShape(aShape); aSF.Perform(); + Standard_Integer iErr = aSF.ErrorStatus(); + if (iErr) { SetErrorCode("Error in GEOMAlgo_ShapeInfoFiller"); return SK_NO_SHAPE; @@ -1574,7 +1576,11 @@ bool GEOMImpl_IMeasureOperations::CheckSelfIntersections // 1. Launch the checker aCSI.Perform(); +#if OCC_VERSION_LARGE > 0x07010001 + Standard_Boolean iErr = aCSI.HasErrors(); +#else Standard_Integer iErr = aCSI.ErrorStatus(); +#endif // Standard_Integer aNbS, n1, n2; @@ -2029,7 +2035,7 @@ GEOMImpl_IMeasureOperations::AreCoordsInside(Handle(GEOM_Object) theShape project.NbPoints() > 0 && project.LowerDistance() <= tolerance ) { - Quantity_Parameter u, v; + Standard_Real u, v; project.LowerDistanceParameters(u, v); gp_Pnt2d uv( u, v ); BRepClass_FaceClassifier FC ( face, uv, tolerance ); diff --git a/src/GEOMImpl/GEOMImpl_PartitionDriver.cxx b/src/GEOMImpl/GEOMImpl_PartitionDriver.cxx index 63e7e5284..5a95d6ec4 100644 --- a/src/GEOMImpl/GEOMImpl_PartitionDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_PartitionDriver.cxx @@ -44,6 +44,9 @@ #include #include #include +#if OCC_VERSION_LARGE > 0x07010001 +#include +#endif #include #include #include @@ -106,8 +109,11 @@ static void CheckSelfIntersection(const TopoDS_Shape &theShape) aCSI.SetLevelOfCheck(BOP_SELF_INTERSECTIONS_LEVEL); aCSI.SetArguments(aList); aCSI.Perform(); - +#if OCC_VERSION_LARGE > 0x07010001 + if (aCSI.HasErrors() || aCSI.DS().Interferences().Extent() > 0) { +#else if (aCSI.ErrorStatus() || aCSI.DS().Interferences().Extent() > 0) { +#endif StdFail_NotDone::Raise("Partition operation will not be performed, because argument shape is self-intersected"); } } @@ -411,7 +417,11 @@ Standard_Integer GEOMImpl_PartitionDriver::Execute(LOGBOOK& log) const aShape = PS.Shape(); if (aShape.IsNull()) { // Mantis issue 22009 +#if OCC_VERSION_LARGE > 0x07010001 + if (PS.HasError(STANDARD_TYPE(BOPAlgo_AlertTooFewArguments)) && PS.Tools().Extent() == 0 && PS.Arguments().Extent() == 1) +#else if (PS.ErrorStatus() == 100 && PS.Tools().Extent() == 0 && PS.Arguments().Extent() == 1) +#endif aShape = PS.Arguments().First(); else return 0; diff --git a/src/GEOMImpl/GEOMImpl_ProjectionDriver.cxx b/src/GEOMImpl/GEOMImpl_ProjectionDriver.cxx index 57d842242..c9cde5f0f 100644 --- a/src/GEOMImpl/GEOMImpl_ProjectionDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_ProjectionDriver.cxx @@ -160,7 +160,7 @@ Standard_Integer GEOMImpl_ProjectionDriver::Execute(LOGBOOK& log) const Standard_ConstructionError::Raise("No solution found"); } - Quantity_Parameter U, V; + Standard_Real U, V; proj.LowerDistanceParameters(U, V); gp_Pnt2d aProjPnt (U, V); @@ -170,7 +170,7 @@ Standard_Integer GEOMImpl_ProjectionDriver::Execute(LOGBOOK& log) const bool isSol = false; double minDist = RealLast(); for (int i = 1; i <= nbPoints; i++) { - Quantity_Parameter Ui, Vi; + Standard_Real Ui, Vi; proj.Parameters(i, Ui, Vi); aProjPnt = gp_Pnt2d(Ui, Vi); aClsf.Perform(aFace, aProjPnt, tol); diff --git a/src/GEOMImpl/GEOMImpl_ShapeDriver.cxx b/src/GEOMImpl/GEOMImpl_ShapeDriver.cxx index b7947fdf7..13544e81b 100644 --- a/src/GEOMImpl/GEOMImpl_ShapeDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_ShapeDriver.cxx @@ -770,7 +770,11 @@ Standard_Integer GEOMImpl_ShapeDriver::Execute(LOGBOOK& log) const aMV.SetArguments(aLS); aMV.SetIntersect(aCI.GetIsIntersect()); aMV.Perform(); +#if OCC_VERSION_LARGE > 0x07010001 + if (aMV.HasErrors()) return 0; +#else if (aMV.ErrorStatus()) return 0; +#endif aShape = aMV.Shape(); } diff --git a/src/GEOMUtils/GEOMUtils.cxx b/src/GEOMUtils/GEOMUtils.cxx index 3c4fc7f62..27d89edda 100644 --- a/src/GEOMUtils/GEOMUtils.cxx +++ b/src/GEOMUtils/GEOMUtils.cxx @@ -96,6 +96,10 @@ #include #include +#if OCC_VERSION_LARGE >= 0x07010000 +#include +#endif + #include #include #include // CAREFUL ! position of this file is critic : see Lucien PIGNOLONI / OCC diff --git a/src/MeasureGUI/MeasureGUI_DimensionCreateTool.cxx b/src/MeasureGUI/MeasureGUI_DimensionCreateTool.cxx index f00f86a97..06d3cba25 100644 --- a/src/MeasureGUI/MeasureGUI_DimensionCreateTool.cxx +++ b/src/MeasureGUI/MeasureGUI_DimensionCreateTool.cxx @@ -76,7 +76,6 @@ #include #include - // plane associated with custom data struct PlaneAndSegment { @@ -1147,8 +1146,8 @@ template TPlane MeasureGUI_DimensionCreateTool::SelectPlaneForProjection( const NCollection_Sequence& thePlanes, const Handle(V3d_View)& theView ) const { - Quantity_Parameter U[3]; - Quantity_Parameter N[3]; + Standard_Real U[3]; + Standard_Real N[3]; theView->Up( U[0], U[1], U[2] ); theView->Proj( N[0], N[1], N[2] ); diff --git a/src/MeasureGUI/MeasureGUI_DimensionInteractor.cxx b/src/MeasureGUI/MeasureGUI_DimensionInteractor.cxx index 8a7eaf259..fa63bceb9 100644 --- a/src/MeasureGUI/MeasureGUI_DimensionInteractor.cxx +++ b/src/MeasureGUI/MeasureGUI_DimensionInteractor.cxx @@ -56,6 +56,10 @@ #include #include +#if OCC_VERSION_LARGE >= 0x07010000 +#include +#endif + //================================================================================= // function : Constructor // purpose :