|
@@ -208543,17 +208543,17 @@ and limitations under the License.
|
|
|
t.prototype.createCroppingJobDto = function() {//改成每个数据集都传一个矩阵, 剪裁空间和模型变换独立开
|
|
|
var box = this.ViewService.mainView.getVolumeClippingLayer().getBoxFrame()
|
|
|
var getMatrix = (m)=>{
|
|
|
- return (new o.Matrix4).copy(m).transpose()
|
|
|
+ return (new o.Matrix4).copy(m).transpose().elements
|
|
|
}
|
|
|
return {
|
|
|
transformation_matrix: this.selectedDatasets.map((t)=>{
|
|
|
return {
|
|
|
id: t.id,
|
|
|
- matrix: getMatrix(t.m2w_.elements)
|
|
|
+ matrix: getMatrix(t.m2w_)
|
|
|
}
|
|
|
}) ,
|
|
|
aabb: "b-0.5 -0.5 -0.5 0.5 0.5 0.5", //剪裁空间原始范围( 所有点在乘上这个矩阵后, 还能落在 1 * 1 * 1的box内的点就是所裁剪的
|
|
|
- aabbMatrix: getMatrix(box.matrixWorld.elements)
|
|
|
+ aabbMatrix: getMatrix(box.matrixWorld)
|
|
|
}
|
|
|
}
|
|
|
,
|