From 53576d597d36501e203b58c572b4bdeba7443026 Mon Sep 17 00:00:00 2001 From: jfa Date: Mon, 14 Feb 2005 09:00:39 +0000 Subject: [PATCH] PAL7715: Unfriendly message after Glue Faces --- src/GEOMImpl/GEOMImpl_GlueDriver.cxx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/GEOMImpl/GEOMImpl_GlueDriver.cxx b/src/GEOMImpl/GEOMImpl_GlueDriver.cxx index ed47c37c4..0c08d6627 100644 --- a/src/GEOMImpl/GEOMImpl_GlueDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_GlueDriver.cxx @@ -22,6 +22,9 @@ using namespace std; #include #include +#define MSG_BAD_TOLERANCE "Tolerance is too big" +#define MSG_BAD_ARG_SHAPE "Argument shape is not a compound of hexahedral solids" + //======================================================================= //function : GEOMImpl_GlueDriver //purpose : @@ -64,14 +67,22 @@ TopoDS_Shape GEOMImpl_GlueDriver::GlueFacesWithWarnings (const TopoDS_Shape& the case 2: Standard_Failure::Raise("No vertices found in source shape"); break; + case 3: + case 4: + Standard_Failure::Raise(MSG_BAD_TOLERANCE " or " MSG_BAD_ARG_SHAPE); + break; case 5: Standard_Failure::Raise("Source shape is Null"); break; case 6: Standard_Failure::Raise("Result shape is Null"); break; + case 100: + Standard_Failure::Raise(MSG_BAD_TOLERANCE); + break; case 101: - Standard_Failure::Raise("Argument shape is not a compound of hexahedral solids"); + case 102: + Standard_Failure::Raise(MSG_BAD_ARG_SHAPE); break; case 200: Standard_Failure::Raise("Error occured during check of geometric coincidence"); -- 2.39.2