From: jfa Date: Wed, 6 Jun 2007 06:14:56 +0000 (+0000) Subject: NPAL16142: EDF443: GetShapesOnBox: No face inside the box. X-Git-Tag: V3_2_7~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=28fd1da1df92df87f720dc6f5949b7e6abad54a2;p=modules%2Fgeom.git NPAL16142: EDF443: GetShapesOnBox: No face inside the box. --- diff --git a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx index 28cae6290..529c6cdec 100644 --- a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx @@ -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