From 28fd1da1df92df87f720dc6f5949b7e6abad54a2 Mon Sep 17 00:00:00 2001 From: jfa Date: Wed, 6 Jun 2007 06:14:56 +0000 Subject: [PATCH] NPAL16142: EDF443: GetShapesOnBox: No face inside the box. --- src/GEOMImpl/GEOMImpl_IShapesOperations.cxx | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.2