Class TubeVisual3D
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
A visual element that shows a tube along a specified path.
public class TubeVisual3D : ExtrudedVisual3D, IAnimatable, IAddChild, IEditableObject
- Inheritance
-
TubeVisual3D
- Implements
- Inherited Members
- Extension Methods
Remarks
The implementation will not work well if there are sharp bends in the path.
Constructors
TubeVisual3D()
Initializes a new instance of the TubeVisual3D class.
public TubeVisual3D()
Fields
AddCapsProperty
Identifies the AddCaps dependency property.
public static readonly DependencyProperty AddCapsProperty
Field Value
DiameterProperty
Identifies the Diameter dependency property.
public static readonly DependencyProperty DiameterProperty
Field Value
ThetaDivProperty
Identifies the ThetaDiv dependency property.
public static readonly DependencyProperty ThetaDivProperty
Field Value
Properties
AddCaps
Gets or sets the create Caps indicator.
public bool AddCaps { get; set; }
Property Value
- bool
True if Caps should be generated.
Diameter
Gets or sets the diameter of the tube.
public double Diameter { get; set; }
Property Value
- double
The diameter of the tube.
ThetaDiv
Gets or sets the number of divisions around the tube.
public int ThetaDiv { get; set; }
Property Value
- int
The number of divisions.
Methods
OnSectionChanged()
Updates the section.
protected void OnSectionChanged()
SectionChanged(DependencyObject, DependencyPropertyChangedEventArgs)
The section changed.
protected static void SectionChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
Parameters
dDependencyObjectThe sender.
eDependencyPropertyChangedEventArgsThe event arguments.
Tessellate()
Do the tessellation and return the MeshGeometry3D .
protected override MeshGeometry3D? Tessellate()
Returns
- MeshGeometry3D
A triangular mesh geometry.