voxelamming_gem 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/voxelamming_gem/version.rb +1 -1
- data/lib/voxelamming_gem.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ff1ac60303d84e62d69ad720a84ef3db7e180ee41c121d0e8c099dfa267aa2d
|
4
|
+
data.tar.gz: 17e564b684612fcf5ae6e1fbb748e89f2eb429fed9eff5a6759d79a7f9017bbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb4f8cf109ff0205257e3e24cd11b2b634390beada5a4eb61135f936e809af393afa6675074359c76c85e39efd78bae969c8b2d14ad5de96335c4b68431f9cc5
|
7
|
+
data.tar.gz: a00a9cae5444283683504ae9476c875d6faf910bbbf7944d361cb043e22a0efdca3eb35fa802853c996571561a27729c23d0e3231663c31a95577b2113154b59
|
data/lib/voxelamming_gem.rb
CHANGED
@@ -440,7 +440,7 @@ module VoxelammingGem
|
|
440
440
|
# Make model
|
441
441
|
def self.get_boxes_from_ply(ply_file)
|
442
442
|
box_positions = Set.new
|
443
|
-
File.open(
|
443
|
+
File.open(ply_file, 'r') do |f|
|
444
444
|
lines = f.read
|
445
445
|
lines = lines.gsub("\r\n", "\n")
|
446
446
|
lines = lines.strip
|
@@ -497,7 +497,7 @@ module VoxelammingGem
|
|
497
497
|
# csvファイルから地図データを読み込み
|
498
498
|
heights = []
|
499
499
|
|
500
|
-
CSV.foreach(
|
500
|
+
CSV.foreach(csv_file) do |row|
|
501
501
|
for h in row
|
502
502
|
h = h.to_f
|
503
503
|
h = h != 0 ? (h * height_scale).floor : -1
|