Click or drag to resize
AB4D logo

WireframeVisual3DAutoUpdate Property

Gets or sets a Boolean that specifies if the wireframe geometry is automatically regenerated on each change of OriginalModel or other WireframeVisual3D property (for example LineColor). Default value is true.

Namespace: Ab3d.Visuals
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public bool AutoUpdate { get; set; }

Property Value

Boolean
Remarks

AutoUpdate gets or sets a Boolean that specifies if the wireframe geometry is automatically regenerated on each change of OriginalModel or other WireframeVisual3D property (for example LineColor). Default value is true.

Regenerating wireframe geometry can take long time and therefore it is important to do this as few times as possible.

WireframeVisual3D is subscribed to any changed done in the Model3D set to the OriginalModel property. When AutoUpdate is true (by default) any changes to the OriginalModel will regenerate the whole wireframe geometry. If you are changing a lot of data on the Model3D (for example changing individual Positions on MeshGeometry3D) then each individual change will regenerate the whole wireframe geometry.

Also if you change multiple properties on WireframeVisual3D (for example LineColor and LineThickness), each change will regenerate the whole wirframe geometry.

To prevent that it is possible to set the AutoUpdate to false and after the changes have been made manually call the RecreateWireframeModel method.

Another option is to call BeginInit() method on WireframeVisual3D, do all the changes and then call EndInit() method.

See Also