Salome HOME
Regression on SMESH_TEST/Grids/smesh/bugs/F8
authoreap <eap@opencascade.com>
Tue, 17 Apr 2012 16:14:50 +0000 (16:14 +0000)
committereap <eap@opencascade.com>
Tue, 17 Apr 2012 16:14:50 +0000 (16:14 +0000)
Fix LengthNearVertex()

+                import geompyDC

src/SMESH_SWIG/StdMeshersDC.py

index e780b54571f27e2ef192acfed8d13845ac31b9b4..31c8b8544804cc8729c4496c759c399990e98875 100644 (file)
@@ -274,6 +274,7 @@ class StdMeshersDC_Segment(Mesh_Algorithm):
         store_geom = self.geom
         if type(vertex) is types.IntType:
             if vertex == 0 or vertex == 1:
+                import geompyDC
                 vertex = self.mesh.geompyD.ExtractShapes(self.geom, geompyDC.ShapeType["VERTEX"],True)[vertex]
                 self.geom = vertex
                 pass