]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Refactor code. Support CommonGeomLib by cmake. mbs/43130_geometry_analysis_tool
authorjfa <jfa@opencascade.com>
Fri, 22 Nov 2024 12:21:49 +0000 (12:21 +0000)
committerjfa <jfa@opencascade.com>
Fri, 22 Nov 2024 12:24:24 +0000 (12:24 +0000)
13 files changed:
CMakeLists.txt
src/AdvancedEngine/CMakeLists.txt
src/BREPPlugin/CMakeLists.txt
src/GEOMImpl/CMakeLists.txt
src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx
src/GEOMImpl/GEOMImpl_IMeasureOperations.hxx
src/GEOM_I/CMakeLists.txt
src/GEOM_I/GEOM_IMeasureOperations_i.cc
src/IGESPlugin/CMakeLists.txt
src/STEPPlugin/CMakeLists.txt
src/STLPlugin/CMakeLists.txt
src/VTKPlugin/CMakeLists.txt
src/XAOPlugin/CMakeLists.txt

index cee851a229695b1633c6db693cec1c4798df6f79..47c7d2abc78223f3e2c376367607c027ca605b20 100644 (file)
@@ -140,6 +140,13 @@ ENDIF(SALOME_BUILD_GUI)
 
 FIND_PACKAGE(SalomeOpenCASCADE REQUIRED)
 
+SET(CommonGeomLib_ROOT_DIR $ENV{CommonGeomLib_ROOT_DIR} CACHE PATH "Path to the CommonGeomLib tool")
+IF(EXISTS ${CommonGeomLib_ROOT_DIR})
+  FIND_PACKAGE(SalomeCommonGeomLib REQUIRED)
+ELSE(EXISTS ${CommonGeomLib_ROOT_DIR})
+  MESSAGE(FATAL_ERROR "We absolutely need the CommonGeomLib tool, please define CommonGeomLib_ROOT_DIR !")
+ENDIF(EXISTS ${CommonGeomLib_ROOT_DIR})
+
 IF(SALOME_GEOM_USE_VTK)
   FIND_PACKAGE(SalomeVTK REQUIRED)
   ADD_DEFINITIONS(-DWITH_VTK)
@@ -279,19 +286,21 @@ EXPORT(TARGETS ${_${PROJECT_NAME}_exposed_targets}
 SET(KERNEL_ROOT_DIR "${KERNEL_ROOT_DIR}")
 SET(GUI_ROOT_DIR "${GUI_ROOT_DIR}")
 SET(OPENCASCADE_ROOT_DIR "${OPENCASCADE_ROOT_DIR}")
+SET(CommonGeomLib_ROOT_DIR "${CommonGeomLib_ROOT_DIR}")
 SET(VTK_ROOT_DIR "${VTK_ROOT_DIR}")
 SET(OPENCV_ROOT_DIR "${OPENCV_ROOT_DIR}")
 
 SET(CONF_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}/include" "${PROJECT_BINARY_DIR}/include")
 
 # Build variables that will be expanded when configuring Salome<MODULE>Config.cmake:
-SALOME_CONFIGURE_PREPARE(OpenCV OpenCASCADE VTK)
+SALOME_CONFIGURE_PREPARE(OpenCV OpenCASCADE CommonGeomLib VTK)
 
 CONFIGURE_PACKAGE_CONFIG_FILE(${PROJECT_NAME}Config.cmake.in
     ${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake
     INSTALL_DESTINATION "${SALOME_INSTALL_CMAKE_LOCAL}"
     PATH_VARS CONF_INCLUDE_DIRS SALOME_INSTALL_CMAKE_LOCAL CMAKE_INSTALL_PREFIX
-    KERNEL_ROOT_DIR GUI_ROOT_DIR OPENCASCADE_ROOT_DIR VTK_ROOT_DIR OPENCV_ROOT_DIR)
+    KERNEL_ROOT_DIR GUI_ROOT_DIR OPENCASCADE_ROOT_DIR CommonGeomLib_ROOT_DIR
+    VTK_ROOT_DIR OPENCV_ROOT_DIR)
 
 #   - in the install tree (VSR 16/08/2013: TEMPORARILY COMMENT THIS - TO REMOVE?):
 #       Get the relative path of the include directory so
index 156ed2fecc32264c3d3792050cc0deaa4a510905..15a41a7018230a65684ca1ee27d7d59479c6e53c 100644 (file)
@@ -25,6 +25,7 @@ INCLUDE_DIRECTORIES(
   ${PTHREAD_INCLUDE_DIR}
   ${OpenCASCADE_INCLUDE_DIR}
   ${KERNEL_INCLUDE_DIRS}
+  ${CommonGeomLib_INCLUDE_DIRS}
   ${PROJECT_SOURCE_DIR}/src/GEOMImpl
   ${PROJECT_SOURCE_DIR}/src/GEOM
   ${PROJECT_SOURCE_DIR}/src/GEOMAlgo
index 385c9dcae2cfcbb566e6774f55badd505b57437b..2454544865c3b7861549e5521477937057a7933a 100644 (file)
@@ -26,6 +26,7 @@ ENDIF()
 # additional include directories
 INCLUDE_DIRECTORIES(
   ${OpenCASCADE_INCLUDE_DIR}
+  ${CommonGeomLib_INCLUDE_DIRS}
   ${KERNEL_INCLUDE_DIRS}
   ${PROJECT_BINARY_DIR}/idl
   ${PROJECT_SOURCE_DIR}/src/GEOMAlgo
index 1f24e459a417b0bdc1c542c98d31b082974ce02e..1cf8478d3bda4e9897c14166f0d09192d1f8d54c 100644 (file)
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-## FIXME
-SET(COMMONGEOMLIB_ROOT_DIR "/hdd2/S2/SALOME-MBS-DB11/INSTALL/CommonGeomLib")
-##
-message(STATUS "COMMONGEOMLIB_ROOT_DIR: ${COMMONGEOMLIB_ROOT_DIR}")
-SET(COMMONGEOMLIB_INCLUDE_DIR "${COMMONGEOMLIB_ROOT_DIR}/${SALOME_INSTALL_HEADERS}")
-SET(COMMONGEOMLIB_LIBRARY_DIR "${COMMONGEOMLIB_ROOT_DIR}/${SALOME_INSTALL_LIBS}")
-SET(COMMOMGEOMLIB_LIBRARIES GeomAnaTool)
-message(STATUS "COMMONGEOMLIB_INCLUDE_DIR: ${COMMONGEOMLIB_INCLUDE_DIR}")
-message(STATUS "COMMONGEOMLIB_LIBRARY_DIR: ${COMMONGEOMLIB_LIBRARY_DIR}")
-message(STATUS "COMMOMGEOMLIB_LIBRARIES: ${COMMOMGEOMLIB_LIBRARIES}")
-
 # --- options ---
 
 # additional include directories
 INCLUDE_DIRECTORIES(
   ${OpenCASCADE_INCLUDE_DIR}
+  ${CommonGeomLib_INCLUDE_DIRS}
   ${PTHREAD_INCLUDE_DIR}
   ${KERNEL_INCLUDE_DIRS}
   ${PYTHON_INCLUDE_DIRS}
   ${EIGEN3_INCLUDE_DIR}
-  ${COMMONGEOMLIB_INCLUDE_DIR}
   ${PROJECT_SOURCE_DIR}/src/ShHealOper
   ${PROJECT_SOURCE_DIR}/src/GEOM 
   ${PROJECT_SOURCE_DIR}/src/BlockFix
@@ -57,16 +46,8 @@ ADD_DEFINITIONS(
   )
 
 # libraries to link to
-message(STATUS "----------------------------------------")
-message(STATUS "COMMONGEOMLIB_LIBRARIES: ${COMMOMGEOMLIB_LIBRARIES}")
-message(STATUS "OpenCASCADE_ModelingAlgorithms_LIBRARIES: ${OpenCASCADE_ModelingAlgorithms_LIBRARIES}")
-message(STATUS "PYTHON_LIBRARIES: ${PYTHON_LIBRARIES}")
-message(STATUS "KERNEL_SALOMELocalTrace: ${KERNEL_SALOMELocalTrace}")
-message(STATUS "----------------------------------------")
 SET(_link_LIBRARIES
-  ##FIXME:
-  ## The following line works only for Linux, not for Windows
-  ${COMMONGEOMLIB_LIBRARY_DIR}/libGeomAnaTool.so
+  ${CommonGeomLib_GeomAnaTool}
   ${OpenCASCADE_ModelingAlgorithms_LIBRARIES}
   ${PYTHON_LIBRARIES}
   ShHealOper GEOMbasic BlockFix GEOMAlgo GEOMUtils GEOMSketcher GEOMArchimede XAO
index 2e8274b20c14c8a6ae1bc4dd074d8f7f7f87429a..101eccb4f45fbe87915c664a39be9b61b1dcd2ac 100644 (file)
@@ -1467,7 +1467,7 @@ void GEOMImpl_IMeasureOperations::GetTolerance
 //=============================================================================
 bool GEOMImpl_IMeasureOperations::CheckShape (Handle(GEOM_Object)     theShape,
                                               const Standard_Boolean  theIsCheckGeom,
-                                              std::list<ShapeError>  &theErrors)
+                                              std::list<GeomAnaTool::ShapeError> &theErrors)
 {
   SetErrorCode(KO);
   theErrors.clear();
@@ -1491,7 +1491,7 @@ bool GEOMImpl_IMeasureOperations::CheckShape (Handle(GEOM_Object)     theShape,
     if (ana.IsValid()) {
       isValid = true;
     } else {
-      FillErrors(ana, aShape, theErrors);
+      GeomAnaTool::FillErrors(ana, aShape, theErrors);
     }
   }
   catch (Standard_Failure& aFail) {
@@ -1510,7 +1510,7 @@ bool GEOMImpl_IMeasureOperations::CheckShape (Handle(GEOM_Object)     theShape,
 //=============================================================================
 TCollection_AsciiString GEOMImpl_IMeasureOperations::PrintShapeErrors
                                  (Handle(GEOM_Object)          theShape,
-                                  const std::list<ShapeError> &theErrors)
+                                  const std::list<GeomAnaTool::ShapeError> &theErrors)
 {
   TCollection_AsciiString aDump;
 
@@ -1534,7 +1534,7 @@ TCollection_AsciiString GEOMImpl_IMeasureOperations::PrintShapeErrors
   if (!theErrors.empty()) {
     // The shape is not valid. Prepare errors for dump.
     TopTools_IndexedMapOfShape anIndices;
-    std::list<ShapeError>::const_iterator anIter = theErrors.begin();
+    std::list<GeomAnaTool::ShapeError>::const_iterator anIter = theErrors.begin();
     Standard_Integer nbv, nbe, nbw, nbf, nbs, nbo;
     nbv = nbe = nbw = nbf = nbs = nbo = 0;
 
@@ -1734,7 +1734,7 @@ bool GEOMImpl_IMeasureOperations::ExtractBOPFailure
                         const bool                                  theRunParallel,
                         const bool                                  theDoExact,
                         Handle(GEOM_Object)&                        theResultShape,
-                        std::list<ShapeError>&                      theErrors)
+                        std::list<GeomAnaTool::ShapeError>&         theErrors)
 {
   SetErrorCode(KO);
   theErrors.clear();
@@ -1799,11 +1799,11 @@ bool GEOMImpl_IMeasureOperations::ExtractBOPFailure
       std::cout << "--- The operation has failures ---" << std::endl;
       //aResult = aTool.Failures();
       //std::cout << "#Failures = " << aResult.Extent() << std::endl;
-      const std::list<GAT_ShapeError>& errors = aTool.ShapeErrors();
+      const std::list<GeomAnaTool::ShapeError>& errors = aTool.ShapeErrors();
       std::cout << "#Failures = " << errors.size() << std::endl;
-      for (std::list<GAT_ShapeError>::const_iterator it = errors.begin(); it != errors.end(); ++it)
+      for (std::list<GeomAnaTool::ShapeError>::const_iterator it = errors.begin(); it != errors.end(); ++it)
       {
-        ShapeError aError;
+        GeomAnaTool::ShapeError aError;
         aError.error = it->error;
         aError.incriminated = it->incriminated;
         theErrors.push_back(aError);
@@ -3664,161 +3664,6 @@ double GEOMImpl_IMeasureOperations::ComputeTolerance(Handle(GEOM_Object) theEdge
   return aMaxDist;
 }
 
-//=======================================================================
-//function : FillErrorsSub
-//purpose  : Fill the errors list of subshapes on shape.
-//=======================================================================
-void GEOMImpl_IMeasureOperations::FillErrorsSub
-           (const BRepCheck_Analyzer                   &theAna,
-            const TopoDS_Shape                         &theShape,
-            const TopAbs_ShapeEnum                     theSubType,
-                  TopTools_DataMapOfIntegerListOfShape &theMapErrors) const
-{
-  TopExp_Explorer anExp(theShape, theSubType);
-  TopTools_MapOfShape aMapSubShapes;
-
-  for (; anExp.More(); anExp.Next()) {
-    const TopoDS_Shape &aSubShape = anExp.Current();
-
-    if (aMapSubShapes.Add(aSubShape)) {
-      const Handle(BRepCheck_Result) &aRes = theAna.Result(aSubShape);
-
-      for (aRes->InitContextIterator();
-           aRes->MoreShapeInContext(); 
-           aRes->NextShapeInContext()) {
-        if (aRes->ContextualShape().IsSame(theShape)) {
-          BRepCheck_ListIteratorOfListOfStatus itl(aRes->StatusOnShape());
-
-          if (itl.Value() != BRepCheck_NoError) {
-            // Add all errors for theShape and its sub-shape.
-            for (;itl.More(); itl.Next()) {
-              const Standard_Integer aStat = (Standard_Integer)itl.Value();
-
-              if (!theMapErrors.IsBound(aStat)) {
-                TopTools_ListOfShape anEmpty;
-
-                theMapErrors.Bind(aStat, anEmpty);
-              }
-
-              TopTools_ListOfShape &theShapes = theMapErrors.ChangeFind(aStat);
-
-              theShapes.Append(aSubShape);
-              theShapes.Append(theShape);
-            }
-          }
-        }
-
-        break;
-      }
-    }
-  }
-}
-
-//=======================================================================
-//function : FillErrors
-//purpose  : Fill the errors list.
-//=======================================================================
-void GEOMImpl_IMeasureOperations::FillErrors
-             (const BRepCheck_Analyzer                   &theAna,
-              const TopoDS_Shape                         &theShape,
-                    TopTools_DataMapOfIntegerListOfShape &theMapErrors,
-                    TopTools_MapOfShape                  &theMapShapes) const
-{
-  if (theMapShapes.Add(theShape)) {
-    // Fill errors of child shapes.
-    for (TopoDS_Iterator iter(theShape); iter.More(); iter.Next()) {
-      FillErrors(theAna, iter.Value(), theMapErrors, theMapShapes);
-    }
-
-    // Fill errors of theShape.
-    const Handle(BRepCheck_Result) &aRes = theAna.Result(theShape);
-
-    if (!aRes.IsNull()) {
-      BRepCheck_ListIteratorOfListOfStatus itl(aRes->Status());
-
-      if (itl.Value() != BRepCheck_NoError) {
-        // Add all errors for theShape.
-        for (;itl.More(); itl.Next()) {
-          const Standard_Integer aStat = (Standard_Integer)itl.Value();
-
-          if (!theMapErrors.IsBound(aStat)) {
-            TopTools_ListOfShape anEmpty;
-
-            theMapErrors.Bind(aStat, anEmpty);
-          }
-
-          theMapErrors.ChangeFind(aStat).Append(theShape);
-        }
-      }
-    }
-
-    // Add errors of subshapes on theShape.
-    const TopAbs_ShapeEnum aType = theShape.ShapeType();
-
-    switch (aType) {
-    case TopAbs_EDGE:
-      FillErrorsSub(theAna, theShape, TopAbs_VERTEX, theMapErrors);
-      break;
-    case TopAbs_FACE:
-      FillErrorsSub(theAna, theShape, TopAbs_WIRE, theMapErrors);
-      FillErrorsSub(theAna, theShape, TopAbs_EDGE, theMapErrors);
-      FillErrorsSub(theAna, theShape, TopAbs_VERTEX, theMapErrors);
-      break;
-    case TopAbs_SOLID:
-      FillErrorsSub(theAna, theShape, TopAbs_SHELL, theMapErrors);
-      break;
-    default:
-      break;
-    }
-  }
-}
-
-//=======================================================================
-//function : FillErrors
-//purpose  : Fill the errors list.
-//=======================================================================
-void GEOMImpl_IMeasureOperations::FillErrors
-                  (const BRepCheck_Analyzer    &theAna,
-                   const TopoDS_Shape          &theShape,
-                         std::list<ShapeError> &theErrors) const
-{
-  // Fill the errors map.
-  TopTools_DataMapOfIntegerListOfShape aMapErrors;
-  TopTools_MapOfShape                  aMapShapes;
-
-  FillErrors(theAna, theShape, aMapErrors, aMapShapes);
-
-  // Map sub-shapes and their indices
-  TopTools_IndexedMapOfShape anIndices;
-
-  TopExp::MapShapes(theShape, anIndices);
-
-  TopTools_DataMapIteratorOfDataMapOfIntegerListOfShape aMapIter(aMapErrors);
-
-  for (; aMapIter.More(); aMapIter.Next()) {
-    ShapeError anError;
-
-    anError.error = (BRepCheck_Status)aMapIter.Key();
-
-    TopTools_ListIteratorOfListOfShape aListIter(aMapIter.Value());
-    TopTools_MapOfShape                aMapUnique;
-
-    for (; aListIter.More(); aListIter.Next()) {
-      const TopoDS_Shape &aShape = aListIter.Value();
-
-      if (aMapUnique.Add(aShape)) {
-        const Standard_Integer anIndex = anIndices.FindIndex(aShape);
-
-        anError.incriminated.push_back(anIndex);
-      }
-    }
-
-    if (!anError.incriminated.empty()) {
-      theErrors.push_back(anError);
-    }
-  }
-}
-
 //=======================================================================
 //function : ShapeProximityCalculator
 //purpose  : returns an object to compute the proximity value
index d6eea1e277eecc1b2fd4489597e1773a5d660af6..65ca7bf4913829801a667b43e44ec40ed1a0aec9 100644 (file)
@@ -25,6 +25,8 @@
 
 #include "GEOM_IOperations.hxx"
 
+#include <GeomAnaTool_Tools.hxx>
+
 #include <BRepCheck_Analyzer.hxx>
 #include <BRepCheck_Status.hxx>
 #include <TopoDS_Shape.hxx>
@@ -149,18 +151,13 @@ class GEOMImpl_IMeasureOperations : public GEOM_IOperations {
                                      Standard_Real& EdgeMin, Standard_Real& EdgeMax,
                                      Standard_Real& VertMin, Standard_Real& VertMax);
 
-  struct ShapeError {
-    BRepCheck_Status error;
-    std::list<int>   incriminated;
-  };
-
   Standard_EXPORT bool CheckShape (Handle(GEOM_Object)     theShape,
                                    const Standard_Boolean  theIsCheckGeom,
-                                   std::list<ShapeError>  &theErrors);
+                                   std::list<GeomAnaTool::ShapeError>  &theErrors);
 
   Standard_EXPORT TCollection_AsciiString PrintShapeErrors
                                   (Handle(GEOM_Object)          theShape,
-                                   const std::list<ShapeError> &theErrors);
+                                   const std::list<GeomAnaTool::ShapeError> &theErrors);
 
   Standard_EXPORT bool ExtractBOPFailure
                        (const Handle(TColStd_HSequenceOfTransient)& theShapes,
@@ -170,7 +167,7 @@ class GEOMImpl_IMeasureOperations : public GEOM_IOperations {
                         const bool                                  theRunParallel,
                         const bool                                  theDoExact,
                         Handle(GEOM_Object)&                        theResultShape,
-                        std::list<ShapeError>&                      theErrors);
+                        std::list<GeomAnaTool::ShapeError>&         theErrors);
 
   Standard_EXPORT bool CheckSelfIntersections (Handle(GEOM_Object) theShape,
                                                const SICheckLevel  theCheckLevel,
@@ -281,21 +278,6 @@ class GEOMImpl_IMeasureOperations : public GEOM_IOperations {
 
  private:
 
-   void FillErrorsSub
-           (const BRepCheck_Analyzer                   &theAna,
-            const TopoDS_Shape                         &theShape,
-            const TopAbs_ShapeEnum                     theSubType,
-                  TopTools_DataMapOfIntegerListOfShape &theMapErrors) const;
-   void FillErrors
-             (const BRepCheck_Analyzer                   &theAna,
-              const TopoDS_Shape                         &theShape,
-                    TopTools_DataMapOfIntegerListOfShape &theMapErrors,
-                    TopTools_MapOfShape                  &theMapShapes) const;
-
-  void FillErrors (const BRepCheck_Analyzer &theAna,
-                   const TopoDS_Shape       &theShape,
-                   std::list<ShapeError>    &theErrors) const;
-
   Standard_Real getSurfaceCurvatures (const Handle(Geom_Surface)& aSurf,
                                       Standard_Real theUParam,
                                       Standard_Real theVParam,
index 9cdacc9b6795a99394451de55496f8d129a30878..9afdc04979d2ea84b4072b4bf67daac19c775d41 100644 (file)
@@ -25,6 +25,7 @@ INCLUDE_DIRECTORIES(
   ${PTHREAD_INCLUDE_DIR}
   ${OpenCASCADE_INCLUDE_DIR}
   ${KERNEL_INCLUDE_DIRS}
+  ${CommonGeomLib_INCLUDE_DIRS}
   ${PROJECT_SOURCE_DIR}/src/GEOMImpl
   ${PROJECT_SOURCE_DIR}/src/GEOM
   ${PROJECT_SOURCE_DIR}/src/GEOMAlgo
@@ -47,6 +48,7 @@ ENDIF(WIN32)
 
 # libraries to link to
 SET(_link_LIBRARIES
+  ${CommonGeomLib_GeomAnaTool}
   GEOMImpl
   GEOMUtils
   SalomeIDLGEOM
index 1eedcf6997b1ed0100287ad7a6e9617421e8fa7c..9020ba7be3f5c202aac3e9239c1d91089b0da99c 100644 (file)
@@ -43,7 +43,7 @@
  */
 static void ConvertShapeError
     (const GEOM::GEOM_IMeasureOperations::ShapeErrors         &theErrorsFrom,
-           std::list<GEOMImpl_IMeasureOperations::ShapeError> &theErrorsTo)
+           std::list<GeomAnaTool::ShapeError> &theErrorsTo)
 {
   int aNbErr = theErrorsFrom.length();
   int i = 0;
@@ -52,7 +52,7 @@ static void ConvertShapeError
     const GEOM::GEOM_IMeasureOperations::ShapeError anErr = theErrorsFrom[i];
     const GEOM::GEOM_IMeasureOperations::ShapeErrorType aType = anErr.error;
     const GEOM::ListOfLong anIncrims = anErr.incriminated;
-    GEOMImpl_IMeasureOperations::ShapeError anErrStruct;
+    GeomAnaTool::ShapeError anErrStruct;
 
     switch (aType) {
     case GEOM::GEOM_IMeasureOperations::InvalidPointOnCurve:
@@ -177,7 +177,7 @@ static void ConvertShapeError
  * \param theErrorsTo result errors.
  */
 static void ConvertShapeError
-    (const std::list<GEOMImpl_IMeasureOperations::ShapeError> &theErrorsFrom,
+    (const std::list<GeomAnaTool::ShapeError> &theErrorsFrom,
            GEOM::GEOM_IMeasureOperations::ShapeErrors_out     &theErrorsTo)
 {
   const int aNbErr = theErrorsFrom.size();
@@ -187,7 +187,7 @@ static void ConvertShapeError
   anErrArray->length(aNbErr);
 
   // fill the local CORBA array with values from lists
-  std::list<GEOMImpl_IMeasureOperations::ShapeError>::const_iterator
+  std::list<GeomAnaTool::ShapeError>::const_iterator
     anIt = theErrorsFrom.begin();
   int i = 0;
 
@@ -645,7 +645,7 @@ CORBA::Boolean GEOM_IMeasureOperations_i::CheckShape
     return 0;
   }
 
-  std::list<GEOMImpl_IMeasureOperations::ShapeError> anErrList;
+  std::list<GeomAnaTool::ShapeError> anErrList;
   bool isOk = GetOperations()->CheckShape(aShape, false, anErrList);
 
   ConvertShapeError(anErrList, theErrors);
@@ -673,7 +673,7 @@ CORBA::Boolean GEOM_IMeasureOperations_i::CheckShapeWithGeometry
     return 0;
   }
 
-  std::list<GEOMImpl_IMeasureOperations::ShapeError> anErrList;
+  std::list<GeomAnaTool::ShapeError> anErrList;
   bool isOk = GetOperations()->CheckShape(aShape, true, anErrList);
 
   ConvertShapeError(anErrList, theErrors);
@@ -700,7 +700,7 @@ char* GEOM_IMeasureOperations_i::PrintShapeErrors
   }
 
   // Convert the errors sequence
-  std::list<GEOMImpl_IMeasureOperations::ShapeError> anErrList;
+  std::list<GeomAnaTool::ShapeError> anErrList;
 
   ConvertShapeError(theErrors, anErrList);
 
@@ -757,7 +757,7 @@ CORBA::Boolean GEOM_IMeasureOperations_i::ExtractBOPFailure
 
   // Perform partition operation and check for failures
   Handle(::GEOM_Object) aResultShape;
-  std::list<GEOMImpl_IMeasureOperations::ShapeError> anErrList;
+  std::list<GeomAnaTool::ShapeError> anErrList;
   bool isOk = GetOperations()->ExtractBOPFailure
     (aSeqShapes, theUseTimer, theTopoOnly,
      theShortReport, theRunParallel, theDoExact,
index eb9cdb0488daf0b2cab19ce6dd7a50e646226e5e..16f24d72f1f4b3d4eee37243913078bab4f12144 100644 (file)
@@ -26,6 +26,7 @@ ENDIF()
 # additional include directories
 INCLUDE_DIRECTORIES(
   ${OpenCASCADE_INCLUDE_DIR}
+  ${CommonGeomLib_INCLUDE_DIRS}
   ${KERNEL_INCLUDE_DIRS}
   ${PROJECT_BINARY_DIR}/idl
   ${PROJECT_SOURCE_DIR}/src/GEOMAlgo
index d00029a355905bc4c1b15a44908f4da338d39569..b30d761a312a255408d4b71bf725d860b3a9995c 100644 (file)
@@ -26,6 +26,7 @@ ENDIF()
 # additional include directories
 INCLUDE_DIRECTORIES(
   ${OpenCASCADE_INCLUDE_DIR}
+  ${CommonGeomLib_INCLUDE_DIRS}
   ${KERNEL_INCLUDE_DIRS}
   ${PROJECT_BINARY_DIR}/idl
   ${PROJECT_SOURCE_DIR}/src/GEOMAlgo
index 153ee83ad56ca4f8ad85a8e529e31f5e50d88da2..63d08d0b94cb649c0cc8eecff81b67dd393db6f3 100644 (file)
@@ -26,6 +26,7 @@ ENDIF()
 # additional include directories
 INCLUDE_DIRECTORIES(
   ${OpenCASCADE_INCLUDE_DIR}
+  ${CommonGeomLib_INCLUDE_DIRS}
   ${KERNEL_INCLUDE_DIRS}
   ${PROJECT_BINARY_DIR}/idl
   ${PROJECT_SOURCE_DIR}/src/GEOMAlgo
index baeaf1342dba6105454e06a94811e54bb17ba47c..7437a355b0d33a79a6c2edc7b410fd704bf1dfa5 100644 (file)
@@ -26,6 +26,7 @@ ENDIF()
 # additional include directories
 INCLUDE_DIRECTORIES(
   ${OpenCASCADE_INCLUDE_DIR}
+  ${CommonGeomLib_INCLUDE_DIRS}
   ${KERNEL_INCLUDE_DIRS}
   ${PROJECT_BINARY_DIR}/idl
   ${PROJECT_SOURCE_DIR}/src/GEOMAlgo
index 8436374063815aa2d8d720f245e3bd62975b6154..62571cb00de9c60bb89a72a80bf9d98cb8607786 100644 (file)
@@ -26,6 +26,7 @@ ENDIF()
 # additional include directories
 INCLUDE_DIRECTORIES(
   ${OpenCASCADE_INCLUDE_DIR}
+  ${CommonGeomLib_INCLUDE_DIRS}
   ${KERNEL_INCLUDE_DIRS}
   ${PROJECT_BINARY_DIR}/idl
   ${PROJECT_SOURCE_DIR}/src/GEOMAlgo