From 678427b274a6debb00c22544585f7afb58444f60 Mon Sep 17 00:00:00 2001 From: bourcier Date: Tue, 8 Oct 2013 13:53:26 +0000 Subject: [PATCH] - Remove an unwanted line. - Set edge_orientation to 1, needed for complex Representative Volume Elements, and works in all cases. --- src/BLSURFPlugin/BLSURFPluginBuilder.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/BLSURFPlugin/BLSURFPluginBuilder.py b/src/BLSURFPlugin/BLSURFPluginBuilder.py index 5617b2d..397986b 100644 --- a/src/BLSURFPlugin/BLSURFPluginBuilder.py +++ b/src/BLSURFPlugin/BLSURFPluginBuilder.py @@ -540,7 +540,7 @@ class BLSURF_Algorithm(Mesh_Algorithm): p_target = f_transf(p_source) target_edge = self.geompyD.GetEdgeNearPoint(theFace2, p_target) self.geompyD.addToStudyInFather(theFace2, target_edge, "target_edge_%i"%(j)) - self.AddEdgePeriodicity(source_face, source_edge, target_face, target_edge) + self.AddEdgePeriodicity(source_face, source_edge, target_face, target_edge, 1) j += 1 source_vertices = self.geompyD.SubShapeAll(source_edge, self.geompyD.ShapeType["VERTEX"]) @@ -576,7 +576,6 @@ class BLSURF_Algorithm(Mesh_Algorithm): source_vertices = self.geompyD.SubShapeAll(source_edge, self.geompyD.ShapeType["VERTEX"]) for source_vertex in source_vertices: self.geompyD.addToStudyInFather(theEdge1, source_vertex, "source_vertex_%i"%k) - target_vertex_tmp = self.geompyD.MakeTranslation(source_vertex, 10, 0., 0) target_vertex_tmp = f_transf(source_vertex) target_vertex = self.geompyD.GetSame(theEdge2, target_vertex_tmp) self.geompyD.addToStudyInFather(theEdge2, target_vertex, "target_vertex_%i"%k) -- 2.39.2