Method: RADMesh::STL#rotate_z!

Defined in:
lib/radmesh/stl.rb

#rotate_z!(angle) ⇒ STL

Note:

There is also the same method without ! working as expected. It is not in this reference guide, because it is automatically generated.

Rotate the entire mesh about the Z axis by the given number of degrees.

The rotation is counter-clockwise about the axis as seen by looking along the positive axis towards the origin.

Parameters:

  • angle (Float)

    angle in degrees

Returns:

  • (STL)

    returns itself


452
453
454
455
# File 'lib/radmesh/stl.rb', line 452

def rotate_z!(angle)
  CADMesh.stl_rotate_z(@stl_ptr, angle)
  self
end