Method: RADMesh::STL#clone
- Defined in:
- lib/radmesh/stl.rb
permalink #clone ⇒ STL
Crete a deep copy of the object
708 709 710 711 712 713 714 715 716 |
# File 'lib/radmesh/stl.rb', line 708 def clone c = clone_props! self.class.new clone_stats! c CADMesh.stl_reallocate(c.stl_ptr) clone_facets! c clone_neighbors! c c.error_control_proc(NoMemoryError, 'could not clone').call c end |