From f32117dd486673b77c1ebb0d1e3b2a3b6da854a7 Mon Sep 17 00:00:00 2001 From: ouv Date: Sat, 5 May 2012 09:47:42 +0000 Subject: [PATCH] IPAL22905: TC650: Projection on face dialog problems --- src/GEOMImpl/GEOMImpl_ProjectionDriver.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/GEOMImpl/GEOMImpl_ProjectionDriver.cxx b/src/GEOMImpl/GEOMImpl_ProjectionDriver.cxx index 6c4718817..9cb803d7a 100644 --- a/src/GEOMImpl/GEOMImpl_ProjectionDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_ProjectionDriver.cxx @@ -200,6 +200,15 @@ Standard_Integer GEOMImpl_ProjectionDriver::Execute(TFunction_Logbook& log) cons } aShape = OrtProj.Shape(); + + // check that the result shape is an empty compound + // (IPAL22905: TC650: Projection on face dialog problems) + if( !aShape.IsNull() && aShape.ShapeType() == TopAbs_COMPOUND ) + { + TopoDS_Iterator anIter( aShape ); + if( !anIter.More() ) + Standard_ConstructionError::Raise("Projection aborted : empty compound produced"); + } } if (aShape.IsNull()) return 0; -- 2.39.2