MshCreator.rotate

MshCreator.rotate(volume, angle, x=0, y=0, z=0, ax=0, ay=0, az=0, rad=True)[source]

rotate volume

Parameters:
  • volume (int) – gmsh id of the volume

  • angle (: float) – angle of the rotation

  • x (float) – x-position of the center of the rotation, by default 0

  • y (float) – y-position of the center of the rotation, by default 0

  • z (float) – z-position of the center of the rotation, by default 0

  • ax (float) – x-coefficient of the rotation axis direction vector, by default 0

  • ay (float) – y-coefficient of the rotation axis direction vector, by default 0

  • az (float) – z-coefficient of the rotation axis direction vector, by default 0

  • rad (bool) – if true angle considered in rad, else in degree, by default 0