Tag: sketchup

如何计算Ruby 1.8.5中的重复哈希值(Sketchup Ruby API)

我需要计算重复项,它们需要100%相同以增加我的计数,但我不能使用Ruby 1.8.5中的任何内容,此代码将在google sketchup中的插件中运行 Google Sketchup Ruby API puts VERSION 1.8.5 puts RUBY_PLATFORM i686-darwin8.10.1 product = ‘Glass’ x = width y = length z = density product_list = [ { “product” => 1, “x” => 200, “y” => 100, “z” => 18}, { “product” => 1, “x” => 200, “y” => 100, “z” => 18}, { […]