C# Class HelixToolkit.Wpf.ParametricSurface3D

A base class for parametric surfaces evaluated on a rectangular mesh.
Override the Evaluate method to define the points.
Inheritance: MeshElement3D
Show file Open project: litdev1/LitDev

Public Properties

Property Type Description
MeshSizeUProperty System.Windows.DependencyProperty
MeshSizeVProperty System.Windows.DependencyProperty

Protected Methods

Method Description
Evaluate ( double u, double v, Point &textureCoord ) : System.Windows.Media.Media3D.Point3D

Evaluates the surface on the specified u,v position.

Tessellate ( ) : System.Windows.Media.Media3D.MeshGeometry3D

Do the tesselation and return the MeshGeometry3D.

Private Methods

Method Description
AddTriangle ( System.Windows.Media.Media3D.MeshGeometry3D mesh, int i1, int i2, int i3 ) : void

The add triangle.

IsDefined ( System.Windows.Media.Media3D.Point3D point ) : bool

Determines whether the specified point is defined.

Method Details

Evaluate() protected abstract method

Evaluates the surface on the specified u,v position.
protected abstract Evaluate ( double u, double v, Point &textureCoord ) : System.Windows.Media.Media3D.Point3D
u double /// The u coordinate. ///
v double /// The v coordinate. ///
textureCoord System.Windows.Point /// The texture coordinates. ///
return System.Windows.Media.Media3D.Point3D

Tessellate() protected method

Do the tesselation and return the MeshGeometry3D.
protected Tessellate ( ) : System.Windows.Media.Media3D.MeshGeometry3D
return System.Windows.Media.Media3D.MeshGeometry3D

Property Details

MeshSizeUProperty public static property

Identifies the MeshSizeU dependency property.
public static DependencyProperty,System.Windows MeshSizeUProperty
return System.Windows.DependencyProperty

MeshSizeVProperty public static property

Identifies the MeshSizeV dependency property.
public static DependencyProperty,System.Windows MeshSizeVProperty
return System.Windows.DependencyProperty