]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
- Remove an unwanted line.
authorbourcier <bourcier>
Tue, 8 Oct 2013 13:53:26 +0000 (13:53 +0000)
committerbourcier <bourcier>
Tue, 8 Oct 2013 13:53:26 +0000 (13:53 +0000)
- Set edge_orientation to 1, needed for complex Representative Volume Elements, and works in all cases.

src/BLSURFPlugin/BLSURFPluginBuilder.py

index 5617b2dce488f71bc60ba2c2dd2b8c69ade3a6bf..397986b6f9eb8b7b6992899a2afaf0858532bb73 100644 (file)
@@ -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)