你好,
使用 .NET 我选择了一个零件作为 ISimNode,在这个零件内部有一个 frame,
我想通过 .NET 访问这个 frame 及其变换矩阵。
请问有人能帮忙吗!
你好,
使用 .NET 我选择了一个零件作为 ISimNode,在这个零件内部有一个 frame,
我想通过 .NET 访问这个 frame 及其变换矩阵。
请问有人能帮忙吗!
从 ISimNode 可以访问 Features 属性,然后搜索 IFrameFeature。
IFrameFeature 有 TransformationInReference 属性用于局部变换矩阵,或者使用 ISimNode.GetFeatureTransformationInWorld(frame_feature) 方法获取世界变换矩阵。
谢谢,成功了。
ISimNode partRootNode = part.RootNode;
IFrameFeature frameFeature = partRootNode.Features.OfType().FirstOrDefault();
Matrix worldMtx = part.RootNode.GetFeatureTransformationInWorld(frameFeature);
上网淘巴领天猫淘宝优惠券,一年省好几千。
广告  ×您是本站第939480名访客 今日有0篇新文章/评论