Table of Contents

Class TorusVisual3D

Namespace
HelixToolkit.Wpf
Assembly
HelixToolkit.Wpf.dll

A visual element that shows a torus defined by two diameters (torus and it's tube).

public class TorusVisual3D : MeshElement3D, IAnimatable, IAddChild, IEditableObject
Inheritance
TorusVisual3D
Implements
Inherited Members
Extension Methods

Fields

PhiDivProperty

Identifies the PhiDiv dependency property.

public static readonly DependencyProperty PhiDivProperty

Field Value

DependencyProperty

ThetaDivProperty

Identifies the ThetaDiv dependency property.

public static readonly DependencyProperty ThetaDivProperty

Field Value

DependencyProperty

TorusDiameterProperty

Identifies the TorusDiameter dependency property.

public static readonly DependencyProperty TorusDiameterProperty

Field Value

DependencyProperty

TubeDiameterProperty

Identifies the TubeDiameter dependency property.

public static readonly DependencyProperty TubeDiameterProperty

Field Value

DependencyProperty

Properties

PhiDiv

Gets or sets the PhiDiv.

public int PhiDiv { get; set; }

Property Value

int

The PhiDiv. The default value is 24.

ThetaDiv

Gets or sets the UDiv.

public int ThetaDiv { get; set; }

Property Value

int

The UDiv. The default value is 36.

TorusDiameter

Gets or sets the (torus) diameter.

public double TorusDiameter { get; set; }

Property Value

double

The diameter. The default value is 3.

TubeDiameter

Gets or sets the tube diameter.

public double TubeDiameter { get; set; }

Property Value

double

The tube diameter. The default value is 1.

Methods

Tessellate()

Do the tessellation and return the MeshGeometry3D.

protected override MeshGeometry3D? Tessellate()

Returns

MeshGeometry3D

A triangular mesh geometry.