Class BoxVisual3D
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
A visual element that renders a box.
public class BoxVisual3D : MeshElement3D, IAnimatable, IAddChild, IEditableObject
- Inheritance
-
BoxVisual3D
- Implements
- Inherited Members
- Extension Methods
Remarks
The box is aligned with the local X, Y and Z coordinate system Use a transform to orient the box in other directions.
Fields
BottomFaceProperty
Identifies the BottomFace dependency property.
public static readonly DependencyProperty BottomFaceProperty
Field Value
CenterProperty
Identifies the Center dependency property.
public static readonly DependencyProperty CenterProperty
Field Value
HeightProperty
Identifies the Height dependency property.
public static readonly DependencyProperty HeightProperty
Field Value
LengthProperty
Identifies the Length dependency property.
public static readonly DependencyProperty LengthProperty
Field Value
TopFaceProperty
Identifies the TopFace dependency property.
public static readonly DependencyProperty TopFaceProperty
Field Value
WidthProperty
Identifies the Width dependency property.
public static readonly DependencyProperty WidthProperty
Field Value
Properties
BottomFace
Gets or sets a value indicating whether to include the bottom face.
public bool BottomFace { get; set; }
Property Value
Center
Gets or sets the center of the box.
public Point3D Center { get; set; }
Property Value
- Point3D
The center.
Height
Gets or sets the height (along local z-axis).
public double Height { get; set; }
Property Value
- double
The height.
Length
Gets or sets the length of the box (along local x-axis).
public double Length { get; set; }
Property Value
- double
The length.
TopFace
Gets or sets a value indicating whether to include the top face.
public bool TopFace { get; set; }
Property Value
Width
Gets or sets the width of the box (along local y-axis).
public double Width { get; set; }
Property Value
- double
The width.
Methods
Tessellate()
Do the tessellation and return the MeshGeometry3D.
protected override MeshGeometry3D? Tessellate()
Returns
- MeshGeometry3D
The mesh geometry.