Click or drag to resize

MeshSetRendererAspectReplace Method (Guid, MeshReference, MeshMaterial, Matrix)

Replace an existing mesh with a new one of the same id.

Namespace:  Demo3D.Visuals.Renderers.Mesh
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
public void Replace(
	Guid id,
	MeshReference newMeshRef,
	MeshMaterial[] materials,
	Matrix matrix
)

Parameters

id
Type: SystemGuid
Id of the existing mesh
newMeshRef
Type: MeshReference
Reference of the new mesh, if null existing mesh will be removed
materials
Type: Demo3D.VisualsMeshMaterial
Materials of the new mesh
matrix
Type: Microsoft.DirectXMatrix
Matrix of the new mesh

Implements

IMeshSetRendererAspectReplace(Guid, MeshReference, MeshMaterial, Matrix)
See Also