Table of Contents

Class MeshVisual3D

Namespace
HelixToolkit.Wpf
Assembly
HelixToolkit.Wpf.dll

A visual element that shows Mesh3D meshes.

public class MeshVisual3D : ModelVisual3D, IAnimatable, IAddChild
Inheritance
MeshVisual3D
Implements
Inherited Members
Extension Methods

Fields

EdgeDiameterProperty

Identifies the EdgeDiameter dependency property.

public static readonly DependencyProperty EdgeDiameterProperty

Field Value

DependencyProperty

EdgeMaterialProperty

Identifies the EdgeMaterial dependency property.

public static readonly DependencyProperty EdgeMaterialProperty

Field Value

DependencyProperty

FaceBackMaterialProperty

Identifies the FaceBackMaterial dependency property.

public static readonly DependencyProperty FaceBackMaterialProperty

Field Value

DependencyProperty

FaceMaterialProperty

Identifies the FaceMaterial dependency property.

public static readonly DependencyProperty FaceMaterialProperty

Field Value

DependencyProperty

MeshProperty

Identifies the Mesh dependency property.

public static readonly DependencyProperty MeshProperty

Field Value

DependencyProperty

SharedVerticesProperty

Identifies the SharedVertices dependency property.

public static readonly DependencyProperty SharedVerticesProperty

Field Value

DependencyProperty

ShrinkFactorProperty

Identifies the ShrinkFactor dependency property.

public static readonly DependencyProperty ShrinkFactorProperty

Field Value

DependencyProperty

VertexMaterialProperty

Identifies the VertexMaterial dependency property.

public static readonly DependencyProperty VertexMaterialProperty

Field Value

DependencyProperty

VertexRadiusProperty

Identifies the VertexRadius dependency property.

public static readonly DependencyProperty VertexRadiusProperty

Field Value

DependencyProperty

VertexResolutionProperty

Identifies the VertexResolution dependency property.

public static readonly DependencyProperty VertexResolutionProperty

Field Value

DependencyProperty

Properties

EdgeDiameter

Gets or sets the edge diameter.

public double EdgeDiameter { get; set; }

Property Value

double

The edge diameter.

EdgeMaterial

Gets or sets the edge material.

public Material EdgeMaterial { get; set; }

Property Value

Material

The edge material.

FaceBackMaterial

Gets or sets the face back material.

public Material FaceBackMaterial { get; set; }

Property Value

Material

The face back material.

FaceMaterial

Gets or sets the face material.

public Material FaceMaterial { get; set; }

Property Value

Material

The face material.

Mesh

Gets or sets the mesh.

public Mesh3D Mesh { get; set; }

Property Value

Mesh3D

The mesh.

SharedVertices

Gets or sets a value indicating whether to share vertices (smooth shading).

public bool SharedVertices { get; set; }

Property Value

bool

true if vertices are shared; otherwise, false .

ShrinkFactor

Gets or sets the shrink factor.

public double ShrinkFactor { get; set; }

Property Value

double

The shrink factor.

TriangleIndexToFaceIndex

Gets or sets the mapping from triangle index to face index.

public List<int> TriangleIndexToFaceIndex { get; set; }

Property Value

List<int>

The index mapping.

VertexMaterial

Gets or sets the vertex material.

public Material VertexMaterial { get; set; }

Property Value

Material

The vertex material.

VertexRadius

Gets or sets the vertex radius.

public double VertexRadius { get; set; }

Property Value

double

The vertex radius.

VertexResolution

Gets or sets the vertex resolution (number of subdivisions).

public int VertexResolution { get; set; }

Property Value

int

The vertex resolution.

Methods

MeshChanged(DependencyObject, DependencyPropertyChangedEventArgs)

The mesh changed.

protected static void MeshChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)

Parameters

obj DependencyObject

The obj.

args DependencyPropertyChangedEventArgs

The args.

UpdateVisuals()

Updates the visuals.

protected void UpdateVisuals()