Add binary & ascii STLs and OBJs

This commit is contained in:
Mike Skalnik
2013-01-17 14:15:01 -08:00
parent c625642845
commit 041ab041ae
5 changed files with 132 additions and 0 deletions

View File

@@ -142,6 +142,13 @@ module Linguist
['.png', '.jpg', '.jpeg', '.gif'].include?(extname)
end
# Public: Is the blob a support 3D model format?
#
# Return true or false
def solid?
['.stl', '.obj'].include?(extname)
end
MEGABYTE = 1024 * 1024
# Public: Is the blob too big to load?