|
@@ -208527,20 +208527,21 @@ and limitations under the License.
|
|
|
}
|
|
|
}
|
|
|
, */
|
|
|
- /* t.prototype.createCroppingJobDto = function() {//改成每个数据集都传一个矩阵,但是只能适用于分成多个文件下载,因为没有传递点云之间相对变换的信息
|
|
|
+ t.prototype.createCroppingJobDto = function() {//改成每个数据集都传一个矩阵,
|
|
|
|
|
|
return {
|
|
|
transformation_matrix: this.selectedDatasets.map((t)=>{
|
|
|
return {
|
|
|
id: t.id,
|
|
|
- matrix: this.getTransformationMatrix(t).elements
|
|
|
+ matrix: this.getTransformationMatrix(t).elements,
|
|
|
+ modelMatrix:(new o.Matrix4).copy(t.m2w_).transpose().elements
|
|
|
}
|
|
|
}) ,
|
|
|
aabb: "b-0.5 -0.5 -0.5 0.5 0.5 0.5" //剪裁空间( 所有点在乘上这个矩阵后, 还能落在 1 * 1 * 1的box内的点就是所裁剪的
|
|
|
|
|
|
}
|
|
|
- } */
|
|
|
- t.prototype.createCroppingJobDto = function() {//改成每个数据集都传一个矩阵, 剪裁空间和模型变换独立开
|
|
|
+ }
|
|
|
+ /* t.prototype.createCroppingJobDto = function() {//改成每个数据集都传一个矩阵, 剪裁空间和模型变换独立开
|
|
|
var box = this.ViewService.mainView.getVolumeClippingLayer().getBoxFrame()
|
|
|
var getMatrix = (m)=>{
|
|
|
return (new o.Matrix4).copy(m).transpose().elements
|
|
@@ -208555,7 +208556,7 @@ and limitations under the License.
|
|
|
aabb: "b-0.5 -0.5 -0.5 0.5 0.5 0.5", //剪裁空间原始范围( 所有点在乘上这个矩阵后, 还能落在 1 * 1 * 1的box内的点就是所裁剪的
|
|
|
aabbMatrix: getMatrix(box.matrixWorld)
|
|
|
}
|
|
|
- }
|
|
|
+ } */
|
|
|
,
|
|
|
t.prototype.getTransformationMatrix = function(t) {//点云截取
|
|
|
var e = this.ViewService.mainView.getVolumeClippingLayer().getBoxFrame()
|