■ Viewport3D 클래스 사용하기

------------------------------------------------------------------------------------------------------------------------

<Viewport3D>

    <Viewport3D.Children>

        <ModelVisual3D>

            <ModelVisual3D.Content>

                <Model3DGroup>

                    <GeometryModel3D>

                        <GeometryModel3D.Geometry>

                            <MeshGeometry3D

                                Positions="..."

                                TriangleIndices="..." />

                        </GeometryModel3D.Geometry>

                        <GeometryModel3D.Material>

                            <DiffuseMaterial Brush="..." />

                        </GeometryModel3D.Material>

                        <GeometryModel3D.BackMaterial>

                            <DiffuseMaterial Brush="..." />

                        </GeometryModel3D.BackMaterial>

                    </GeometryModel3D>

                    <AmbientLight Color="..." />

                    <DirectionalLight

                        Color="..."

                        Direction="..." />

                </Model3DGroup>

            </ModelVisual3D.Content>

        </ModelVisual3D>

        <Viewport3D.Camera>

            <PerspectiveCamera

                Position="..."

                LookDirection="..."

                UpDirection="..."

                FieldOfView="..." />

            [또는]

            <OrthographicCamera

                Position="..."

                LookDirection="..."

                UpDirection="..."

                Width="..." />

        </Viewport3D.Camera>

    </Viewport3D.Children>

</Viewport3D>

------------------------------------------------------------------------------------------------------------------------

Posted by 사용자 icodebroker

댓글을 달아 주세요