简体   繁体   English

Helix Toolkit镜子X轴

[英]Helix Toolkit mirror X axis

I'm trying to mirror the entire x axis of a HelixViewport3D to match a coordinate system in another application. 我正在尝试镜像HelixViewport3D的整个x轴,以匹配另一个应用程序中的坐标系。

I've tried using the Transform property on the camera like this: 我试过像这样在相机上使用Transform属性:

<OrthographicCamera Position=".5,.5,2" LookDirection="0,0,-1.6" UpDirection="0,-2,0" >
    <OrthographicCamera.Transform>
        <ScaleTransform3D ScaleX="-1"/>
    </OrthographicCamera.Transform>
</OrthographicCamera>

This produces no results that I can see. 我看不到任何结果。 Is there another way to do this without changing the position values of the objects in my viewport? 是否有另一种方法可以执行此操作而不更改视口中对象的位置值?

You can apply the transform to the visual model instead of the camera: 您可以将转换应用于视觉模型而不是摄影机:

    <ht:HelixViewport3D>
        <ModelVisual3D>
            <ModelVisual3D.Transform>
                <ScaleTransform3D ScaleX="-1"/>
            </ModelVisual3D.Transform>
            <ht:DefaultLights/>
            <ht:CubeVisual3D Center="5,0,0" Fill="Green"/>
        </ModelVisual3D>
    </ht:HelixViewport3D>

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

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