Method: RADMesh::STL#scale!
- Defined in:
- lib/radmesh/stl.rb
permalink #scale!(factor) ⇒ STL
Note:
There is also the same method without ! working as expected. It is not in this reference guide, because it is automatically generated.
Scale the mesh by the given factor.
This multiplies all of the coordinates by the specified number. This method could be used to change the “units” (there are no units explicitly specified in an STL file) of the mesh. For example, to change a part from inches to millimeters, just use factor 25.4.
393 394 395 396 |
# File 'lib/radmesh/stl.rb', line 393 def scale!(factor) CADMesh.stl_scale(@stl_ptr, factor) self end |