]> SALOME platform Git repositories - modules/geom.git/blobdiff - src/GEOM_SWIG/GEOM_TestMeasures.py
Salome HOME
0022762: [EDF] Fast detection of face/face face/solid solid/solid interference
[modules/geom.git] / src / GEOM_SWIG / GEOM_TestMeasures.py
index 2aed6d6a5a2c3c4bb7c1454883956a1998f7c126..22657306d5e95e9e4764fd7c81714d18ee3d8621 100644 (file)
@@ -56,6 +56,12 @@ def TestMeasureOperations (geompy, math):
   if geompy.CheckSelfIntersections(Compound_1) == True:
     raise RuntimeError, "Existing self-intersection is not detected"
 
+  ####### Detect Fast intersection #######
+
+  cylinder = geompy.MakeCylinderRH(100, 300)
+  if geompy.FastIntersect(box, cylinder) == False:
+    raise RuntimeError, "Existing intersection is not detected"
+
   ####### WhatIs #######
 
   Descr = geompy.WhatIs(box)