ExtensionModelConfig.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. namespace App\Services\File\BIM\Glendale;
  3. class ExtensionModelConfig
  4. {
  5. public static function getConfigOption(string $extension): array
  6. {
  7. return match ($extension) {
  8. "rvt" => [
  9. "style" => 1,
  10. "zGrid" => 0,
  11. "drawing" => 0,
  12. "accuracy" => 5,
  13. "vertexNormal" => 1,
  14. "locationType" => 3,
  15. "type" => 4,
  16. "draco" => 1,
  17. "isInstance" => 1,
  18. "faceNumLimit" => 300000,
  19. "materialType" => 1
  20. ],
  21. 'dwg', 'dwf', 'dws', 'dwt' => [
  22. "style" => 0,
  23. "zGrid" => 0,
  24. "drawing" => 0,
  25. "accuracy" => 5,
  26. "vertexNormal" => 0,
  27. "unitRatio" => 0.001,
  28. "type" => 2,
  29. "isInstance" => 0,
  30. "draco" => 0,
  31. "engineType" => 1,
  32. "combineTexture" => 0
  33. ],
  34. default => [
  35. "style" => 0,
  36. "zGrid" => 0,
  37. "drawing" => 0,
  38. "accuracy" => 5,
  39. "vertexNormal" => 1,
  40. "type" => 4,
  41. "draco" => 1,
  42. "isInstance" => 1,
  43. "faceNumLimit" => 300000,
  44. "materialType" => 1
  45. ]
  46. };
  47. }
  48. }