Restructured Model loading to enable easier implementation of other parsers

This commit is contained in:
2020-01-30 08:50:05 -06:00
parent 4f1b490600
commit 31f0fa141b
8 changed files with 224 additions and 188 deletions

View File

@@ -21,7 +21,7 @@ class IMICFPS
unless load_model_from_cache
case @type
when :obj
@model = IMICFPS::Model.new(file_path: @model_file, parser: Wavefront::Parser)
@model = IMICFPS::Model.new(file_path: @model_file)
else
raise "Unsupported model type, supported models are: #{@supported_models.join(', ')}"
end