Salome HOME
projects
/
modules
/
geom.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
0022380: EDF 2746 GEOM: Accept compounds of points as an input for "Smoothing surface"
[modules/geom.git]
/
doc
/
salome
/
examples
/
check_shape.py
1
# Check Shape
2
3
import salome
4
salome.salome_init()
5
import GEOM
6
from salome.geom import geomBuilder
7
geompy = geomBuilder.New(salome.myStudy)
8
9
# create a box
10
box = geompy.MakeBoxDXDYDZ(100,30,100)
11
IsValid = geompy.CheckShape(box)
12
if IsValid == 0:
13
raise RuntimeError, "Invalid box created"
14
else:
15
print "\nBox is valid"