Salome HOME
projects
/
modules
/
geom.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
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"