Mesh Geometry Property Delta Engine Documentation

Namespace: DeltaEngine.Rendering3D
Assembly: DeltaEngine.Rendering3D (in DeltaEngine.Rendering3D.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public Geometry Geometry { get; set; }

Property Value

Type: Geometry
Remarks

Tests: DeltaEngine.Rendering3D.Tests.MeshTests
Examples

2 unit tests call DeltaEngine.Rendering3D.Mesh.Geometry
[Test, CloseAfterFirstFrame]
public void CreateMeshDynamically()
{
    var mesh = new Mesh(ContentLoader.Load<Geometry>("AnyGeometry"),
        ContentLoader.Load<Material>("AnyMaterial"));
    Assert.IsNotNull(mesh.Geometry);
    Assert.IsNotNull(mesh.Material);
    Assert.AreEqual(Matrix.Identity, mesh.LocalTransform);
}
[Test, CloseAfterFirstFrame]
public void LoadMeshFromContent()
{
    var mesh = ContentLoader.Load<Mesh>("AnyMeshCustomTransform");
    Assert.IsNotNull(mesh.Geometry);
    Assert.IsNotNull(mesh.Material);
    Assert.AreNotEqual(new Matrix(), mesh.LocalTransform);
    Assert.AreNotEqual(Matrix.Identity, mesh.LocalTransform);
}
See Also