Table of Contents

Class ParametricSurface3D

Namespace
HelixToolkit.Wpf
Assembly
HelixToolkit.Wpf.dll

Provides a base class for parametric surfaces evaluated on a rectangular mesh.

public abstract class ParametricSurface3D : MeshElement3D, IAnimatable, IAddChild, IEditableObject
Inheritance
ParametricSurface3D
Implements
Derived
Inherited Members
Extension Methods

Remarks

Override the Evaluate method to define the points.

Fields

MeshSizeUProperty

Identifies the MeshSizeU dependency property.

public static readonly DependencyProperty MeshSizeUProperty

Field Value

DependencyProperty

MeshSizeVProperty

Identifies the MeshSizeV dependency property.

public static readonly DependencyProperty MeshSizeVProperty

Field Value

DependencyProperty

Properties

MeshSizeU

Gets or sets the mesh size in u-direction.

public int MeshSizeU { get; set; }

Property Value

int

The mesh size U.

MeshSizeV

Gets or sets the mesh size in v-direction.

public int MeshSizeV { get; set; }

Property Value

int

The mesh size V.

Methods

Evaluate(double, double, out Point)

Evaluates the surface at the specified u,v parameters.

protected abstract Point3D Evaluate(double u, double v, out Point textureCoord)

Parameters

u double

The u parameter.

v double

The v parameter.

textureCoord Point

The texture coordinates.

Returns

Point3D

The evaluated Point3D.

Tessellate()

Do the tessellation and return the MeshGeometry3D.

protected override MeshGeometry3D? Tessellate()

Returns

MeshGeometry3D

A triangular mesh geometry.