NPAL16142: EDF443: GetShapesOnBox: No face inside the box.

This commit is contained in:
jfa 2007-06-06 06:14:56 +00:00
parent 769c0bb4a3
commit 28fd1da1df

View File

@ -1420,6 +1420,12 @@ Handle(TColStd_HSequenceOfInteger)
TopoDS_Shape aBox = theBox->GetValue(); TopoDS_Shape aBox = theBox->GetValue();
TopoDS_Shape aShape = theShape->GetValue(); TopoDS_Shape aShape = theShape->GetValue();
// Check presence of triangulation, build if need
if (!CheckTriangulation(aShape)) {
SetErrorCode("Cannot build triangulation on the shape");
return aSeqOfIDs;
}
// Call algo // Call algo
GEOMAlgo_FinderShapeOn2 aFinder; GEOMAlgo_FinderShapeOn2 aFinder;
Standard_Real aTol = 0.0001; // default value Standard_Real aTol = 0.0001; // default value