mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-26 17:30:35 +05:00
0023129: [CEA 1551] GetShapesOnQuadrangle does not work with a points compound
This commit is contained in:
parent
d7f33d79e4
commit
f8174cfe42
@ -2626,7 +2626,7 @@ Handle(TColStd_HSequenceOfInteger)
|
|||||||
TopoDS_Shape aShape = theShape->GetValue();
|
TopoDS_Shape aShape = theShape->GetValue();
|
||||||
|
|
||||||
// Check presence of triangulation, build if need
|
// Check presence of triangulation, build if need
|
||||||
if (!GEOMUtils::CheckTriangulation(aShape)) {
|
if (theShapeType != TopAbs_VERTEX && !GEOMUtils::CheckTriangulation(aShape)) {
|
||||||
SetErrorCode("Cannot build triangulation on the shape");
|
SetErrorCode("Cannot build triangulation on the shape");
|
||||||
return aSeqOfIDs;
|
return aSeqOfIDs;
|
||||||
}
|
}
|
||||||
@ -2793,7 +2793,7 @@ Handle(TColStd_HSequenceOfInteger)
|
|||||||
TopTools_ListOfShape res;
|
TopTools_ListOfShape res;
|
||||||
|
|
||||||
// Check presence of triangulation, build if need
|
// Check presence of triangulation, build if need
|
||||||
if (!GEOMUtils::CheckTriangulation(aShape)) {
|
if (theShapeType != TopAbs_VERTEX && !GEOMUtils::CheckTriangulation(aShape)) {
|
||||||
SetErrorCode("Cannot build triangulation on the shape");
|
SetErrorCode("Cannot build triangulation on the shape");
|
||||||
return aSeqOfIDs;
|
return aSeqOfIDs;
|
||||||
}
|
}
|
||||||
@ -3082,7 +3082,8 @@ Handle(TColStd_HSequenceOfInteger)
|
|||||||
Handle(TColStd_HSequenceOfInteger) aSeqOfIDs;
|
Handle(TColStd_HSequenceOfInteger) aSeqOfIDs;
|
||||||
|
|
||||||
// Check presence of triangulation, build if need
|
// Check presence of triangulation, build if need
|
||||||
if (!GEOMUtils::CheckTriangulation(theShape)) {
|
if (theShapeType != TopAbs_VERTEX &&
|
||||||
|
!GEOMUtils::CheckTriangulation(theShape)) {
|
||||||
SetErrorCode("Cannot build triangulation on the shape");
|
SetErrorCode("Cannot build triangulation on the shape");
|
||||||
return aSeqOfIDs;
|
return aSeqOfIDs;
|
||||||
}
|
}
|
||||||
@ -4008,7 +4009,7 @@ Handle(TColStd_HSequenceOfInteger)
|
|||||||
Handle(TColStd_HSequenceOfInteger) aSeqOfIDs;
|
Handle(TColStd_HSequenceOfInteger) aSeqOfIDs;
|
||||||
|
|
||||||
// Check presence of triangulation, build if need
|
// Check presence of triangulation, build if need
|
||||||
if (!GEOMUtils::CheckTriangulation(aShape)) {
|
if (theShapeType != TopAbs_VERTEX && !GEOMUtils::CheckTriangulation(aShape)) {
|
||||||
SetErrorCode("Cannot build triangulation on the shape");
|
SetErrorCode("Cannot build triangulation on the shape");
|
||||||
return aSeqOfIDs;
|
return aSeqOfIDs;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user