Class MeshGeometry3D
Triangle primitive for building a 3-D shape.
Inherited Members
Namespace: Telerik.Windows.Media.Media3D
Assembly: Telerik.Windows.Controls.Charting.dll
Syntax
public class MeshGeometry3D : Geometry3D, INotifyPropertyChanged
Remarks
MeshGeometry3D allows the developer to specify position, normal, and texture coordinate information. The Positions property is required. Normals are assumed to be associated with the front faces of a mesh primitive. 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.
Constructors
MeshGeometry3D()
Initializes a new instance of the MeshGeometry3D class.
Declaration
public MeshGeometry3D()
Fields
NormalsProperty
Identifies the Normals dependency property.
Declaration
public static readonly DependencyProperty NormalsProperty
Field Value
System.Windows.DependencyProperty
|
PositionsProperty
Identifies the Positions dependency property.
Declaration
public static readonly DependencyProperty PositionsProperty
Field Value
System.Windows.DependencyProperty
|
TextureCoordinatesProperty
Identifies the TextureCoordinates dependency property.
Declaration
public static readonly DependencyProperty TextureCoordinatesProperty
Field Value
System.Windows.DependencyProperty
|
TriangleIndicesProperty
Identifies the TriangleIndices dependency property.
Declaration
public static readonly DependencyProperty TriangleIndicesProperty
Field Value
System.Windows.DependencyProperty
|
Properties
Bounds
Gets a Rect3D that specifies the axis-aligned bounding box of this Geometry3D.
Declaration
public override Rect3D Bounds { get; }
Property Value
Rect3D
|
Overrides
NormalizeTextureCoordinates
Indicates that texture coordinates should be normalized.
Declaration
public bool NormalizeTextureCoordinates { get; set; }
Property Value
System.Boolean
|
Normals
Gets or sets mesh normals.
Declaration
public Vector3DCollection Normals { get; set; }
Property Value
Vector3DCollection
|
Positions
Gets or sets mesh points.
Declaration
public Point3DCollection Positions { get; set; }
Property Value
Point3DCollection
|
TextureCoordinates
Gets or sets a collection of texture coordinates for the MeshGeometry3D. This is a dependency property.
Declaration
public PointCollection TextureCoordinates { get; set; }
Property Value
System.Windows.Media.PointCollection
|
TriangleIndices
Gets or sets a collection of triangle indices for the MeshGeometry3D. This is a dependency property.
Declaration
public Int32Collection TriangleIndices { get; set; }
Property Value
Int32Collection
|
Methods
GeometryChangedHandler(DependencyObject, DependencyPropertyChangedEventArgs)
One of the geometry property changed callback.
Declaration
protected static void GeometryChangedHandler(DependencyObject source, DependencyPropertyChangedEventArgs eventArgs)
Parameters
System.Windows.DependencyObject
source
Source. |
System.Windows.DependencyPropertyChangedEventArgs
eventArgs
Event Args. |
PositionsChangedHandler(DependencyObject, DependencyPropertyChangedEventArgs)
Positions property changed callback.
Declaration
protected static void PositionsChangedHandler(DependencyObject source, DependencyPropertyChangedEventArgs eventArgs)
Parameters
System.Windows.DependencyObject
source
Source. |
System.Windows.DependencyPropertyChangedEventArgs
eventArgs
Event Args. |
TextureCoordinatesChangedHandler(DependencyObject, DependencyPropertyChangedEventArgs)
TextureCoordinates property changed callback.
Declaration
protected static void TextureCoordinatesChangedHandler(DependencyObject source, DependencyPropertyChangedEventArgs eventArgs)
Parameters
System.Windows.DependencyObject
source
Source. |
System.Windows.DependencyPropertyChangedEventArgs
eventArgs
Event Args. |