Salome HOME
projects
/
modules
/
geom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
769c0bb
)
NPAL16142: EDF443: GetShapesOnBox: No face inside the box.
author
jfa
<jfa@opencascade.com>
Wed, 6 Jun 2007 06:14:56 +0000
(06:14 +0000)
committer
jfa
<jfa@opencascade.com>
Wed, 6 Jun 2007 06:14:56 +0000
(06:14 +0000)
src/GEOMImpl/GEOMImpl_IShapesOperations.cxx
patch
|
blob
|
history
diff --git
a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx
b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx
index 28cae6290ac018fd7b04857d8a72e45ec136a934..529c6cdec5416a1f85ff5c30685ba66c89d231d3 100644
(file)
--- a/
src/GEOMImpl/GEOMImpl_IShapesOperations.cxx
+++ b/
src/GEOMImpl/GEOMImpl_IShapesOperations.cxx
@@
-1420,6
+1420,12
@@
Handle(TColStd_HSequenceOfInteger)
TopoDS_Shape aBox = theBox->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
GEOMAlgo_FinderShapeOn2 aFinder;
Standard_Real aTol = 0.0001; // default value