mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-15 01:58:36 +05:00
Allow some blocks operations on other shapes (get face from a shell).
This commit is contained in:
parent
ef6997a915
commit
dca4e8f1c7
@ -934,12 +934,6 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::GetFaceByEdges
|
||||
SetErrorCode("Block or compound is null");
|
||||
return NULL;
|
||||
}
|
||||
if (aBlockOrComp.ShapeType() != TopAbs_SOLID &&
|
||||
aBlockOrComp.ShapeType() != TopAbs_COMPOUND &&
|
||||
aBlockOrComp.ShapeType() != TopAbs_COMPSOLID) {
|
||||
SetErrorCode("Shape is neither a block, nor a compound of blocks");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
TopoDS_Shape anArg1 = theEdge1->GetValue();
|
||||
TopoDS_Shape anArg2 = theEdge2->GetValue();
|
||||
@ -1127,12 +1121,6 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::GetFaceNearPoint
|
||||
SetErrorCode("Block or compound is null");
|
||||
return NULL;
|
||||
}
|
||||
if (aBlockOrComp.ShapeType() != TopAbs_SOLID &&
|
||||
aBlockOrComp.ShapeType() != TopAbs_COMPOUND &&
|
||||
aBlockOrComp.ShapeType() != TopAbs_COMPSOLID) {
|
||||
SetErrorCode("Shape is neither a block, nor a compound of blocks");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
TopoDS_Shape anArg = thePoint->GetValue();
|
||||
if (anArg.IsNull()) {
|
||||
@ -1322,12 +1310,6 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::GetFaceByNormale
|
||||
SetErrorCode("Block or compound is null");
|
||||
return NULL;
|
||||
}
|
||||
if (aBlockOrComp.ShapeType() != TopAbs_SOLID &&
|
||||
aBlockOrComp.ShapeType() != TopAbs_COMPOUND &&
|
||||
aBlockOrComp.ShapeType() != TopAbs_COMPSOLID) {
|
||||
SetErrorCode("Shape is neither a block, nor a compound of blocks");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
TopoDS_Shape anArg = theVector->GetValue();
|
||||
if (anArg.IsNull()) {
|
||||
|
Loading…
Reference in New Issue
Block a user