■ Model3DGroup 엘리먼트 사용하기

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

<ModelVisual3D>

    <ModelVisual3D.Content>

        <Model3DGroup>

            <GeometryModel3D>

                <GeometryModel3D.Geometry>

                    <MeshGeometry3D

                        Positions="0 1 -4, 0 0 -4, 0 1 0, 0 0 0"

                        TriangleIndices=" 0 1 2, 1 3 2" />

                </GeometryModel3D.Geometry>

                <GeometryModel3D.Material>

                    <DiffuseMaterial Brush="Cyan" />

                </GeometryModel3D.Material>

                <GeometryModel3D.BackMaterial>

                    <DiffuseMaterial Brush="Red" />

                </GeometryModel3D.BackMaterial>

            </GeometryModel3D>

            <AmbientLight Color="White" />

        </Model3DGroup>

    </ModelVisual3D.Content>

</ModelVisual3D>

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

Posted by 사용자 icodebroker