Class SphereVisual3D
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
A visual element that shows a sphere defined by center and radius.
public class SphereVisual3D : MeshElement3D, IAnimatable, IAddChild, IEditableObject
- Inheritance
-
SphereVisual3D
- Implements
- Inherited Members
- Extension Methods
Fields
CenterProperty
Identifies the Center dependency property.
public static readonly DependencyProperty CenterProperty
Field Value
PhiDivProperty
Identifies the PhiDiv dependency property.
public static readonly DependencyProperty PhiDivProperty
Field Value
RadiusProperty
Identifies the Radius dependency property.
public static readonly DependencyProperty RadiusProperty
Field Value
ThetaDivProperty
Identifies the ThetaDiv dependency property.
public static readonly DependencyProperty ThetaDivProperty
Field Value
Properties
Center
Gets or sets the center of the sphere.
public Point3D Center { get; set; }
Property Value
- Point3D
The center.
PhiDiv
Gets or sets the number of divisions in the phi direction (from "top" to "bottom").
public int PhiDiv { get; set; }
Property Value
- int
The phi div.
Radius
Gets or sets the radius of the sphere.
public double Radius { get; set; }
Property Value
- double
The radius.
ThetaDiv
Gets or sets the number of divisions in the theta direction (around the sphere).
public int ThetaDiv { get; set; }
Property Value
- int
The theta div.
Methods
Tessellate()
Do the tessellation and return the MeshGeometry3D.
protected override MeshGeometry3D? Tessellate()
Returns
- MeshGeometry3D
A triangular mesh geometry.