]> SALOME platform Git repositories - modules/geom.git/blob - doc/salome/examples/check_self_intersections.py
Salome HOME
44c55d257ded8aabc79cb67a0cd89d6daba9c639
[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"