■ GeometryModel3D 엘리먼트 사용하기

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

<GeometryModel3D>

    <GeometryModel3D.Geometry>

        <MeshGeometry3D

            Positions="-0.5  0.5  0.5,  0.5  0.5  0.5,

                       -0.5 -0.5  0.5,  0.5 -0.5  0.5,

                        0.5  0.5 -0.5, -0.5  0.5 -0.5,

                        0.5 -0.5 -0.5, -0.5 -0.5 -0.5,

                       -0.5  0.5 -0.5, -0.5  0.5  0.5,

                       -0.5 -0.5 -0.5, -0.5 -0.5  0.5,

                        0.5  0.5  0.5,  0.5  0.5 -0.5,

                        0.5 -0.5  0.5,  0.5 -0.5 -0.5,

                       -0.5  0.5 -0.5,  0.5  0.5 -0.5,

                       -0.5  0.5  0.5,  0.5  0.5  0.5,

                        0.5 -0.5 -0.5, -0.5 -0.5 -0.5,

                        0.5 -0.5  0.5, -0.5 -0.5  0.5"

            TriangleIndices=" 0  2  1,  1  2  3,

                              4  6  5,  5  6  7,

                              8 10  9,  9 10 11,

                             12 14 13, 13 14 15,

                             16 18 17, 17 18 19,

                             20 22 21, 21 22 23" />

    </GeometryModel3D.Geometry>

    <GeometryModel3D.Material>

        <DiffuseMaterial Brush="RoyalBlue" />

    </GeometryModel3D.Material>

    <GeometryModel3D.BackMaterial>

        <DiffuseMaterial Brush="Black" />

    </GeometryModel3D.BackMaterial>

</GeometryModel3D>

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

Posted by 사용자 icodebroker