From: eap Date: Wed, 1 Apr 2015 17:11:01 +0000 (+0300) Subject: 52657: Wrong State in Creation Info of GetShapesOnShapeAsCompound() X-Git-Tag: V7_6_0a1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e5b3888b6f3a2f4ebb51689f166e1450660c7691;p=modules%2Fgeom.git 52657: Wrong State in Creation Info of GetShapesOnShapeAsCompound() --- diff --git a/src/GEOMImpl/GEOMImpl_ShapeDriver.cxx b/src/GEOMImpl/GEOMImpl_ShapeDriver.cxx index d98b007ac..7a55d6cd4 100644 --- a/src/GEOMImpl/GEOMImpl_ShapeDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_ShapeDriver.cxx @@ -31,6 +31,7 @@ #include #include +#include // OCCT Includes #include @@ -1599,7 +1600,13 @@ GetCreationInformation(std::string& theOperationName, if ( !shapes.IsNull() && shapes->Length() > 1 ) AddParam( theParams, "Shape", shapes->Value(2) ); AddParam( theParams, "Shape type", TopAbs_ShapeEnum( aCI.GetSubShapeType() )); - AddParam( theParams, "State", TopAbs_State((int) aCI.GetTolerance() )); + AddParam( theParams, "State" ); + GEOMAlgo_State st = GEOMAlgo_State( (int) aCI.GetTolerance()+0.1 ); + const char* stName[] = { "UNKNOWN","IN","OUT","ON","ONIN","ONOUT","INOUT" }; + if ( 0 <= st && st <= GEOMAlgo_ST_INOUT ) + theParams.back() << stName[ st ]; + else + theParams.back() << (int) st; break; } case SHAPE_ISOLINE: