Gets or sets a collection of vertex positions for a MeshGeometry3D. This is a dependency property.
Namespace:
System.Windows.Media.Media3D
Assembly:
PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

Syntax
Visual Basic (Declaration)
Public Property Positions As Point3DCollection
Dim instance As MeshGeometry3D
Dim value As Point3DCollection
value = instance.Positions
instance.Positions = value
public Point3DCollection Positions { get; set; }
public:
property Point3DCollection^ Positions {
Point3DCollection^ get ();
void set (Point3DCollection^ value);
}
public function get Positions () : Point3DCollection
public function set Positions (value : Point3DCollection)
XAML Property Element Usage
<object>
<object.Positions>
<Point3DCollection .../>
</object.Positions>
</object>
<object Positions="Point3DCollection" .../>

Dependency Property Information

Remarks
The points specifed by this property represent the vertices of the triangles that make up a 3-D mesh.
The winding order (the order in which the Positions that make up each triangle of the mesh are specified) determines whether a given face is front-facing or back-facing. Front-facing triangles are wound in counter-clockwise order; back-facing triangles are wound in clockwise order.

Examples
<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>

Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information
.NET Framework
Supported in: 3.5, 3.0

See Also