Class CubeVisual3D
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
A visual element that displays a cube.
public class CubeVisual3D : MeshElement3D, IAnimatable, IAddChild, IEditableObject
- Inheritance
-
CubeVisual3D
- Implements
- Inherited Members
- Extension Methods
Fields
CenterProperty
Identifies the Center dependency property.
public static readonly DependencyProperty CenterProperty
Field Value
SideLengthProperty
Identifies the SideLength dependency property.
public static readonly DependencyProperty SideLengthProperty
Field Value
Properties
Center
Gets or sets the center of the cube.
public Point3D Center { get; set; }
Property Value
- Point3D
The center.
SideLength
Gets or sets the length of the cube sides.
public double SideLength { get; set; }
Property Value
- double
The length of the sides.
Methods
Tessellate()
Do the tessellation and return the MeshGeometry3D.
protected override MeshGeometry3D? Tessellate()
Returns
- MeshGeometry3D
The mesh geometry.