mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-12 00:29:17 +05:00
0020082: EDF 869 GEOM : Edges Orientation indicator/reverse
+# 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)
This commit is contained in:
parent
74c0034727
commit
f5a2b6350e
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user