Salome HOME
projects
/
modules
/
geom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3873cb2
)
Fix problem in GetIGESUnit() caused by changes in SubShapeAll() function's behavior
author
vsr
<vsr@opencascade.com>
Wed, 15 Dec 2010 09:59:02 +0000
(09:59 +0000)
committer
vsr
<vsr@opencascade.com>
Wed, 15 Dec 2010 09:59:02 +0000
(09:59 +0000)
src/GEOM_SWIG/geompyDC.py
patch
|
blob
|
history
diff --git
a/src/GEOM_SWIG/geompyDC.py
b/src/GEOM_SWIG/geompyDC.py
index fe8904335ba9333c5c07d132e908c6d0bd185484..fc2081f326efbd7b9818090fad09a3d9eee9f7f5 100644
(file)
--- a/
src/GEOM_SWIG/geompyDC.py
+++ b/
src/GEOM_SWIG/geompyDC.py
@@
-3623,7
+3623,10
@@
class geompyDC(GEOM._objref_GEOM_Gen):
#RaiseIfFailed("Import", self.InsertOp)
# recieve name using returned vertex
UnitName = "M"
- vertices = self.SubShapeAll(anObj,ShapeType["VERTEX"])
+ if anObj.GetShapeType() == GEOM.VERTEX:
+ vertices = [anObj]
+ else:
+ vertices = self.SubShapeAll(anObj,ShapeType["VERTEX"])
if len(vertices)>0:
p = self.PointCoordinates(vertices[0])
if abs(p[0]-0.01) < 1.e-6: