smesh/doc/salome/examples/transforming_meshes_ex04.py

15 lines
265 B
Python
Raw Normal View History

2013-02-12 20:37:44 +06:00
# Symmetry
import math
import SMESH_mechanic
import SMESH
2013-02-12 20:37:44 +06:00
smesh = SMESH_mechanic.smesh
mesh = SMESH_mechanic.mesh
# create a symmetrical copy of the mesh mirrored through a point
axis = SMESH.AxisStruct(0, 0, 0, 0, 0, 0)
2013-02-12 20:37:44 +06:00
mesh.Mirror([], axis, smesh.POINT, 1)