Sha256: a8b7ef7bc5327492d0ad322b43af24397831a64c909ecefb1fe0adf791e6bcaf

Contents?: true

Size: 552 Bytes

Versions: 5

Compression:

Stored size: 552 Bytes

Contents

module Glitch3d
  module Default
    def alter_vertices(vertices_objects_array)
      (VERTEX_GLITCH_ITERATION_RATIO * vertices_objects_array.size).to_i.times do |_|
        random_element(vertices_objects_array).fuck
      end
      vertices_objects_array
    end

    def alter_faces(faces_objects_array, vertex_objects_array)
      (FACE_GLITCH_ITERATION_RATIO * faces_objects_array.count).to_i.times do |_|
        random_element(faces_objects_array).fuck(random_element(vertex_objects_array))
      end
      faces_objects_array
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
glitch3d-0.1.5 lib/glitch3d/strategies/default.rb
glitch3d-0.1.4 lib/glitch3d/strategies/default.rb
glitch3d-0.1.2 lib/glitch3d/strategies/default.rb
glitch3d-0.1.1 lib/glitch3d/strategies/default.rb
glitch3d-0.1.0 lib/glitch3d/strategies/default.rb