xzw %!s(int64=3) %!d(string=hai) anos
pai
achega
3cf76547eb
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      main.js

+ 2 - 2
main.js

@@ -208527,14 +208527,14 @@ 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,
-                        modelMatrix:(new o.Matrix4).copy(t.m2w_).transpose().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内的点就是所裁剪的