MeshGeometry3D.TextureCoordinates Właściwość

Definicja

Pobiera lub ustawia kolekcję współrzędnych tekstury dla elementu MeshGeometry3D.

public:
 property System::Windows::Media::PointCollection ^ TextureCoordinates { System::Windows::Media::PointCollection ^ get(); void set(System::Windows::Media::PointCollection ^ value); };
public System.Windows.Media.PointCollection TextureCoordinates { get; set; }
member this.TextureCoordinates : System.Windows.Media.PointCollection with get, set
Public Property TextureCoordinates As PointCollection

Wartość właściwości

PointCollection

PointCollection zawiera współrzędne tekstury dla MeshGeometry3D.

Przykłady

<GeometryModel3D>
  <GeometryModel3D.Geometry>
          <MeshGeometry3D 
              Positions="-1 -1 0  1 -1 0  -1 1 0  1 1 0"
              Normals="0 0 1  0 0 1  0 0 1  0 0 1"
              TextureCoordinates="0 1  1 1  0 0  1 0   "
              TriangleIndices="0 1 2  1 3 2" />
      </GeometryModel3D.Geometry>
      <GeometryModel3D.Material>
          <DiffuseMaterial>
              <DiffuseMaterial.Brush>
                  <SolidColorBrush Color="Cyan" Opacity="0.3"/>
              </DiffuseMaterial.Brush>
          </DiffuseMaterial>
      </GeometryModel3D.Material>
  <!-- Translate the plane. -->
      <GeometryModel3D.Transform>
          <TranslateTransform3D
            OffsetX="2" OffsetY="0" OffsetZ="-1"   >
          </TranslateTransform3D>
      </GeometryModel3D.Transform>
  </GeometryModel3D>

Uwagi

Współrzędne tekstury określają, jak Material element jest mapowany na wierzchołki trójkątów tworzących siatkę.

Uwaga Jeśli nie określono współrzędnych tekstury dla meshGeometry3D, jego materiał może nie być renderowany zgodnie z oczekiwaniami.

Informacje dotyczące właściwości zależności

Pole identyfikatora TextureCoordinatesProperty
Właściwości metadanych ustawione na true Brak

Dotyczy

Zobacz też