锻造Autodesk模型的变换矩阵 [英] Forge Autodesk model's transform matrix

查看:86
本文介绍了锻造Autodesk模型的变换矩阵的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道下面的两个矩阵是什么以及它们用于什么:

I would like to know what are the two matrix below and what they are used for :

  • placementTransform(1 x 12)
  • refPointTransform(1 x 16)

有人知道他们使用了什么吗?我认为这与3D对象的平移(Tx,Ty,Tz)/旋转(Rx,Ry,Rz)有关,但是每个向量中的参数太多...

Does anyone know what they are used ? I think it has to do with translation(Tx, Ty, Tz)/rotation (Rx, Ry, Rz) of 3D objects but there are too many parameters in each vector...

推荐答案

placementTransform设置加载过程中模型的位置偏移量和比例尺. refPointTransform相似(但包含旋转),但在placementTransform之后应用(相乘).

The placementTransform sets the position-offset and scale of a model during loading. refPointTransform is similar (but contains rotation), but is applied (multiplied) after the placementTransform.

以下是有关如何使用"placementTransform"的示例和源代码: https://github.com/wallabyway/viewer-multimodel-search/blob/1c2e71397a78ab807644f96dfb34b8e578825987/docs/index.html#L61

Here is an example and source code, of how to use 'placementTransform': https://github.com/wallabyway/viewer-multimodel-search/blob/1c2e71397a78ab807644f96dfb34b8e578825987/docs/index.html#L61

看一下第61行.在第二个模型中加载时,我设置了3D建筑的偏移量和比例,使其位于3D手动锯上方.

Take a look at line 61. When I load in the second model, I set the offset and scale of the 3D-building, so that it's positioned above the 3D-hand-saw.

这篇关于锻造Autodesk模型的变换矩阵的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆