Browse Source

改裁剪 为每个数据集都传一个矩阵

xzw 3 years ago
parent
commit
9ad4535d52
2 changed files with 15 additions and 3 deletions
  1. 14 2
      main.js
  2. 1 1
      笔记.js

+ 14 - 2
main.js

@@ -208513,7 +208513,7 @@ and limitations under the License.
            t
        }
        ,
-       t.prototype.createCroppingJobDto = function() {
+       /* t.prototype.createCroppingJobDto = function() {
            var t = this.selectedReferenceDataset ? this.selectedReferenceDataset : this.selectedDatasets[0]
              , e = this.getTransformationMatrix(t);
            return {
@@ -208526,7 +208526,19 @@ and limitations under the License.
                file_extension: this.selectedExtension
            }
        }
-       ,
+       , */
+        t.prototype.createCroppingJobDto = function() {//改成每个数据集都传一个矩阵
+             
+            return { 
+                transformation_matrix: this.selectedDatasets.map((t)=>() {
+                    return {
+                        id: t.id,
+                        matrix: this.getTransformationMatrix(t); 
+                    } 
+                }) 
+                file_extension: this.selectedExtension
+            }
+        }
        t.prototype.getTransformationMatrix = function(t) {//点云截取   所有点在乘上这个矩阵后, 还能落在 1 * 1 * 1的box内的点就是所裁剪的
            var e = this.ViewService.mainView.getVolumeClippingLayer().getBoxFrame()
              , n = (new o.Matrix4).getInverse(e.matrixWorld)

+ 1 - 1
笔记.js

@@ -53,7 +53,7 @@ overlayScene 里有marker , name: "location" ?
 
 LocationEntity点位?GeoTransformationService:  this.TransformService.globalToLocal.transform  转换坐标  setLocalCoordinateSystem
  
-
+裁剪createCroppingJobDto