Fix pb with 'make installcheck'

This commit is contained in:
vsr 2013-02-18 12:54:40 +00:00
parent 1367b0ceed
commit 117b9c5151

View File

@ -2,6 +2,7 @@
import geompy import geompy
import salome import salome
import GEOM
gg = salome.ImportComponentGUI("GEOM") gg = salome.ImportComponentGUI("GEOM")
# create a vertex and a vector # create a vertex and a vector
@ -21,7 +22,6 @@ cone = geompy.MakeCone(p1, v, 70, 0, 80)
cut = geompy.MakeCut(cone, cylinder) cut = geompy.MakeCut(cone, cylinder)
# get faces as sub-shapes # get faces as sub-shapes
faces = []
faces = geompy.SubShapeAllSortedCentres(cut, geompy.ShapeType["FACE"]) faces = geompy.SubShapeAllSortedCentres(cut, geompy.ShapeType["FACE"])
f_2 = geompy.GetSubShapeID(cut, faces[2]) f_2 = geompy.GetSubShapeID(cut, faces[2])
@ -29,9 +29,9 @@ f_2 = geompy.GetSubShapeID(cut, faces[2])
cut_without_f_2 = geompy.SuppressFaces(cut, [f_2]) cut_without_f_2 = geompy.SuppressFaces(cut, [f_2])
# get edges as sub-shapes # get edges as sub-shapes
edges = [] edges = geompy.SubShapeAllSortedCentres(faces[2], geompy.ShapeType["EDGE"])
edges = geompy.SubShapeAllSortedCentres(cut_without_f_2, geompy.ShapeType["EDGE"]) edge = geompy.GetInPlace(cut_without_f_2, edges[0], True)
e_2 = geompy.GetSubShapeID(cut_without_f_2, edges[2]) e_2 = geompy.GetSubShapeID(cut_without_f_2, edge)
# suppress a hole using the selected edge # suppress a hole using the selected edge
result = geompy.SuppressHoles(cut_without_f_2, [e_2]) result = geompy.SuppressHoles(cut_without_f_2, [e_2])