]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
NPAL16142: EDF443: GetShapesOnBox: No face inside the box.
authorjfa <jfa@opencascade.com>
Wed, 6 Jun 2007 06:14:56 +0000 (06:14 +0000)
committerjfa <jfa@opencascade.com>
Wed, 6 Jun 2007 06:14:56 +0000 (06:14 +0000)
src/GEOMImpl/GEOMImpl_IShapesOperations.cxx

index 28cae6290ac018fd7b04857d8a72e45ec136a934..529c6cdec5416a1f85ff5c30685ba66c89d231d3 100644 (file)
@@ -1420,6 +1420,12 @@ Handle(TColStd_HSequenceOfInteger)
   TopoDS_Shape aBox = theBox->GetValue();
   TopoDS_Shape aShape = theShape->GetValue();
 
+  // Check presence of triangulation, build if need
+  if (!CheckTriangulation(aShape)) {
+    SetErrorCode("Cannot build triangulation on the shape");
+    return aSeqOfIDs;
+  }
+
   // Call algo
   GEOMAlgo_FinderShapeOn2 aFinder;
   Standard_Real aTol = 0.0001; // default value