mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-11 16:19:16 +05:00
PR: examples adaptation
This commit is contained in:
parent
63dc53a14d
commit
2d17e13610
@ -3,12 +3,13 @@
|
|||||||
import math
|
import math
|
||||||
|
|
||||||
import SMESH_mechanic
|
import SMESH_mechanic
|
||||||
|
import SMESH
|
||||||
|
|
||||||
smesh = SMESH_mechanic.smesh
|
smesh = SMESH_mechanic.smesh
|
||||||
mesh = SMESH_mechanic.mesh
|
mesh = SMESH_mechanic.mesh
|
||||||
|
|
||||||
# define rotation axis and angle
|
# define rotation axis and angle
|
||||||
axisXYZ = smesh.AxisStruct(0., 0., 0., 5., 5., 20.)
|
axisXYZ = SMESH.AxisStruct(0., 0., 0., 5., 5., 20.)
|
||||||
angle270 = 1.5 * math.pi
|
angle270 = 1.5 * math.pi
|
||||||
|
|
||||||
# rotate a mesh
|
# rotate a mesh
|
||||||
|
@ -3,11 +3,12 @@
|
|||||||
import math
|
import math
|
||||||
|
|
||||||
import SMESH_mechanic
|
import SMESH_mechanic
|
||||||
|
import SMESH
|
||||||
|
|
||||||
smesh = SMESH_mechanic.smesh
|
smesh = SMESH_mechanic.smesh
|
||||||
mesh = SMESH_mechanic.mesh
|
mesh = SMESH_mechanic.mesh
|
||||||
|
|
||||||
# create a symmetrical copy of the mesh mirrored through a point
|
# create a symmetrical copy of the mesh mirrored through a point
|
||||||
axis = smesh.AxisStruct(0, 0, 0, 0, 0, 0)
|
axis = SMESH.AxisStruct(0, 0, 0, 0, 0, 0)
|
||||||
|
|
||||||
mesh.Mirror([], axis, smesh.POINT, 1)
|
mesh.Mirror([], axis, smesh.POINT, 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user