# check self-intersection
IsValid = geompy.CheckSelfIntersections(compound)
if not IsValid:
- print "Shape is self-intersected!"
+ print("Shape is self-intersected!")
else:
- print "No self-intersection detected in a shape"
+ print("No self-intersection detected in a shape")