Bladeren bron

调整模型configJson传参

waymen 4 maanden geleden
bovenliggende
commit
307f578ba2

+ 2 - 2
app/BO/BimFileBO.php

@@ -105,8 +105,8 @@ class BimFileBO
             "viewStyle" => 'in:0,1', //多视图设置 0:不导出多个视图 1:导出多视图 仅适用于 revit 格式的模型
             "drawing" => 'in:0,1', //模型图纸 0:不导出图纸 1:导出图纸 (需要授权二三维等功能)仅适用于 revit 和 tekla 格式的模型
             "accuracy" => 'in:1,2,3,4,5,6,7,8,9,10',//轻量化精度 值越大转出模型越精细,范围1~10; 默认值为5; 仅适用于 revit 和 bentley 格式的模型
-            "locationType" => 'in:0,1,3',//定位方式 0:内部原点到内部原点;1:通过共享坐标;3:项目基点到项目基点 默认为3,仅适用于 revit 格式的模型
-            "materialType" => 'in:0,1',//默认值0,表示轻量化用PBR材质还是普通材质,1表示(普通材质)云渲染版引擎需将materialType设置为0
+            // "locationType" => 'in:0,1,3',//定位方式 0:内部原点到内部原点;1:通过共享坐标;3:项目基点到项目基点 默认为3,仅适用于 revit 格式的模型
+            // "materialType" => 'in:0,1',//默认值0,表示轻量化用PBR材质还是普通材质,1表示(普通材质)云渲染版引擎需将materialType设置为0
             "isLod" => 'in:0,1',//是否启用Lod轻量化 0:不启用LOD,1:启用LOD
             "srs" => '',//坐标系对应EPSG代号
             "type" => 'in:2,4',//模型坐标偏移类型: 2:将模型中心点偏移为0点。 4:根据偏移量(offsetX,offsetY,offsetZ)偏移模型坐标。默认值为2

+ 2 - 2
app/Libraries/BIM/Glendale/ExtensionModelConfig.php

@@ -14,7 +14,7 @@ class ExtensionModelConfig
                 "accuracy" => 5,
                 "vertexNormal" => 1,
                 "locationType" => 3,
-                "type" => 4,
+                "type" => 2,
                 "draco" => 1,
                 "isInstance" => 1,
                 "faceNumLimit" => 300000,
@@ -39,7 +39,7 @@ class ExtensionModelConfig
                 "drawing" => 0,
                 "accuracy" => 5,
                 "vertexNormal" => 1,
-                "type" => 4,
+                "type" => 2,
                 "draco" => 1,
                 "isInstance" => 1,
                 "faceNumLimit" => 300000,

+ 1 - 1
app/Libraries/BIM/Glendale/Glendale.php

@@ -50,7 +50,7 @@ class Glendale extends BIMAbstract
     private function buildQueryParams(BimFileBO $bimFileBO, array $append = []): array
     {
         $defaultConfigJson = ExtensionModelConfig::getConfigOption($bimFileBO->extension);
-        $configJson = array_merge($bimFileBO->configJson, $defaultConfigJson);
+        $configJson = array_merge($defaultConfigJson, $bimFileBO->configJson);
 
         $input = [
             'name' => $bimFileBO->name,