From: jfa Date: Tue, 1 Feb 2005 11:13:59 +0000 (+0000) Subject: PAL7508: Development of new block functionalities. Allow find SOLIDs by GetShapesOn... X-Git-Tag: V2_2_0b2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cd509f872cdf569d5acccdf5098f4a34c3cfaff8;p=modules%2Fgeom.git PAL7508: Development of new block functionalities. Allow find SOLIDs by GetShapesOn() functions. --- diff --git a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx index 071b5c3df..8d8880429 100644 --- a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx @@ -1037,8 +1037,9 @@ Handle(TColStd_HSequenceOfTransient) GEOMImpl_IShapesOperations::GetShapesOnPlan TopAbs_ShapeEnum aShapeType = TopAbs_ShapeEnum(theShapeType); if (aShapeType != TopAbs_VERTEX && aShapeType != TopAbs_EDGE && - aShapeType != TopAbs_FACE) { - SetErrorCode("Only vertices, edges or faces can be found by this method"); + aShapeType != TopAbs_FACE && + aShapeType != TopAbs_SOLID) { + SetErrorCode("Only solids, vertices, edges or faces can be found by this method"); return NULL; } @@ -1156,8 +1157,9 @@ Handle(TColStd_HSequenceOfTransient) GEOMImpl_IShapesOperations::GetShapesOnCyli TopAbs_ShapeEnum aShapeType = TopAbs_ShapeEnum(theShapeType); if (aShapeType != TopAbs_VERTEX && aShapeType != TopAbs_EDGE && - aShapeType != TopAbs_FACE) { - SetErrorCode("Only vertices, edges or faces can be found by this method"); + aShapeType != TopAbs_FACE && + aShapeType != TopAbs_SOLID) { + SetErrorCode("Only solids, vertices, edges or faces can be found by this method"); return NULL; } @@ -1281,8 +1283,9 @@ Handle(TColStd_HSequenceOfTransient) GEOMImpl_IShapesOperations::GetShapesOnSphe TopAbs_ShapeEnum aShapeType = TopAbs_ShapeEnum(theShapeType); if (aShapeType != TopAbs_VERTEX && aShapeType != TopAbs_EDGE && - aShapeType != TopAbs_FACE) { - SetErrorCode("Only vertices, edges or faces can be found by this method"); + aShapeType != TopAbs_FACE && + aShapeType != TopAbs_SOLID) { + SetErrorCode("Only solids, vertices, edges or faces can be found by this method"); return NULL; }