mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +05:00
PAL7508: Development of new block functionalities. Allow find SOLIDs by GetShapesOn<xxx>() functions.
This commit is contained in:
parent
d85baed107
commit
cd509f872c
@ -1037,8 +1037,9 @@ Handle(TColStd_HSequenceOfTransient) GEOMImpl_IShapesOperations::GetShapesOnPlan
|
|||||||
TopAbs_ShapeEnum aShapeType = TopAbs_ShapeEnum(theShapeType);
|
TopAbs_ShapeEnum aShapeType = TopAbs_ShapeEnum(theShapeType);
|
||||||
if (aShapeType != TopAbs_VERTEX &&
|
if (aShapeType != TopAbs_VERTEX &&
|
||||||
aShapeType != TopAbs_EDGE &&
|
aShapeType != TopAbs_EDGE &&
|
||||||
aShapeType != TopAbs_FACE) {
|
aShapeType != TopAbs_FACE &&
|
||||||
SetErrorCode("Only vertices, edges or faces can be found by this method");
|
aShapeType != TopAbs_SOLID) {
|
||||||
|
SetErrorCode("Only solids, vertices, edges or faces can be found by this method");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1156,8 +1157,9 @@ Handle(TColStd_HSequenceOfTransient) GEOMImpl_IShapesOperations::GetShapesOnCyli
|
|||||||
TopAbs_ShapeEnum aShapeType = TopAbs_ShapeEnum(theShapeType);
|
TopAbs_ShapeEnum aShapeType = TopAbs_ShapeEnum(theShapeType);
|
||||||
if (aShapeType != TopAbs_VERTEX &&
|
if (aShapeType != TopAbs_VERTEX &&
|
||||||
aShapeType != TopAbs_EDGE &&
|
aShapeType != TopAbs_EDGE &&
|
||||||
aShapeType != TopAbs_FACE) {
|
aShapeType != TopAbs_FACE &&
|
||||||
SetErrorCode("Only vertices, edges or faces can be found by this method");
|
aShapeType != TopAbs_SOLID) {
|
||||||
|
SetErrorCode("Only solids, vertices, edges or faces can be found by this method");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1281,8 +1283,9 @@ Handle(TColStd_HSequenceOfTransient) GEOMImpl_IShapesOperations::GetShapesOnSphe
|
|||||||
TopAbs_ShapeEnum aShapeType = TopAbs_ShapeEnum(theShapeType);
|
TopAbs_ShapeEnum aShapeType = TopAbs_ShapeEnum(theShapeType);
|
||||||
if (aShapeType != TopAbs_VERTEX &&
|
if (aShapeType != TopAbs_VERTEX &&
|
||||||
aShapeType != TopAbs_EDGE &&
|
aShapeType != TopAbs_EDGE &&
|
||||||
aShapeType != TopAbs_FACE) {
|
aShapeType != TopAbs_FACE &&
|
||||||
SetErrorCode("Only vertices, edges or faces can be found by this method");
|
aShapeType != TopAbs_SOLID) {
|
||||||
|
SetErrorCode("Only solids, vertices, edges or faces can be found by this method");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user