Click or drag to resize

MeshSetRendererAspectReplace Method (Document, Guid, IMesh, 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(
	Document document,
	Guid id,
	IMesh newMesh,
	MeshMaterial[] materials,
	Matrix matrix
)

Parameters

document
Type: Demo3D.VisualsDocument
Current document
id
Type: SystemGuid
Id of the existing mesh
newMesh
Type: IMesh
The mesh to replace with
materials
Type: Demo3D.VisualsMeshMaterial
Materials of the new mesh
matrix
Type: Microsoft.DirectXMatrix
Matrix of the new mesh

Implements

IMeshSetRendererAspectReplace(Document, Guid, IMesh, MeshMaterial, Matrix)
See Also