Salome HOME
PR: synchro V6_main tag mergeto_V7_main_11Feb13
[modules/geom.git] / doc / salome / examples / check_self_intersections.py
1 # Detect Self-intersections
2
3 import geompy
4
5 # create a box
6 box = geompy.MakeBoxDXDYDZ(100,30,100)
7 IsValid = geompy.CheckSelfIntersections(box)
8 if IsValid == 0:
9     raise RuntimeError, "Box with self-intersections created"
10 else:
11     print "\nBox is valid"