简体   繁体   English

锻造Autodesk模型的变换矩阵

[英]Forge Autodesk model's transform matrix

I would like to know what are the two matrix below and what they are used for : 我想知道下面的两个矩阵是什么,它们分别用于什么:

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

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... 我认为这与3D对象的平移(Tx,Ty,Tz)/旋转(Rx,Ry,Rz)有关,但是每个向量中的参数太多...

The placementTransform sets the position-offset and scale of a model during loading. PlacementTransform设置加载期间模型的位置偏移和比例。 refPointTransform is similar (but contains rotation), but is applied (multiplied) after the placementTransform. refPointTransform相似(但包含旋转),但在placementTransform之后应用(相乘)。

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 以下是有关如何使用“ placementTransform”的示例和源代码: https : //github.com/wallabyway/viewer-multimodel-search/blob/1c2e71397a78ab807644f96dfb34b8e578825987/docs/index.html#L61

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. 看一下第61行。在第二个模型中加载时,我设置了3D建筑的偏移量和比例,以使其位于3D手工锯上方。

位置尺度

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM