Salome HOME
0020082: EDF 869 GEOM : Edges Orientation indicator/reverse
authoreap <eap@opencascade.com>
Thu, 16 Jul 2009 06:13:51 +0000 (06:13 +0000)
committereap <eap@opencascade.com>
Thu, 16 Jul 2009 06:13:51 +0000 (06:13 +0000)
+# optionally reverse node distribution on certain edges
+allEdges = geompy.SubShapeAllSortedIDs( box, geompy.ShapeType["EDGE"])
+reversedEdges = [ allEdges[0], allEdges[4] ]
+
 # define "Arithmetic1D" hypothesis to cut all edges in several segments with increasing arithmetic length
-algo1D.Arithmetic1D(1, 4)
+algo1D.Arithmetic1D(1, 4, reversedEdges)

doc/salome/gui/SMESH/input/tui_defining_hypotheses.doc

index 766c6d12c377562449b802e36d52075bd90514e8..ce75e3ae899878118274606c904e91f28ac17fd2 100644 (file)
@@ -22,8 +22,12 @@ hexa = smesh.Mesh(box, "Box : hexahedrical mesh")
 # create a Regular 1D algorithm for edges
 algo1D = hexa.Segment()
 
+# optionally reverse node distribution on certain edges
+allEdges = geompy.SubShapeAllSortedIDs( box, geompy.ShapeType["EDGE"])
+reversedEdges = [ allEdges[0], allEdges[4] ]
+
 # define "Arithmetic1D" hypothesis to cut all edges in several segments with increasing arithmetic length 
-algo1D.Arithmetic1D(1, 4)
+algo1D.Arithmetic1D(1, 4, reversedEdges)
 
 # create a quadrangle 2D algorithm for faces
 hexa.Quadrangle()