|
@@ -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)
|