Regression on SMESH_TEST/Grids/smesh/bugs/F8

Fix LengthNearVertex()

+                import geompyDC
This commit is contained in:
eap 2012-04-17 16:14:50 +00:00
parent 58c4b1fe8a
commit 3c33958e2e

View 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