Click or drag to resize
AB4D logo

SphereVisual3DUseCachedMeshGeometry3D Property

Gets or sets a boolean that specifies if cached MeshGeometry3D is used to create the Model3D. In that case the position and radius of the Model3D is specified by using transformations on the cached mesh. If false then a new MeshGeometry3D is created for every SphereVisual3D.

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

Property Value

Boolean
Remarks

UseCachedMeshGeometry3D gets or sets a boolean that specifies if cached MeshGeometry3D is used to create the Model3D.

When using cached MeshGeometry3D, the position and radius of the Model3D is specified by using transformations on the cached mesh. This can greatly improve performance when using many 3D objects, because the geometry data is shared between the objects.

If UseCachedMeshGeometry3D is false, then a new MeshGeometry3D is created for each instance of SphereVisual3D and each time the position or radius is changed.

Default value is true.

NOTE:
SphereVisual3D can cached only one instance of MeshGeometry3D. Because it is possible to specify the number of segments that are used to create the sphere MeshGeometry3D, SphereVisual3D can use the cached mesh only if it has the same number of segments as the cached mesh. SphereVisual3D creates the cached mesh the first time it is used - using the number of segments specified for the first SphereVisual3D. If you would like to control which sphere is cached, you can manually call CreateCachedSphereMesh(Int32) method to manually create the sphere MeshGeometry3D with the specified segments count.

See Also