Namespace: DeltaEngine.Rendering3D
Assembly: DeltaEngine.Rendering3D (in DeltaEngine.Rendering3D.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Rendering3D.Tests.MeshTests
2 unit tests call DeltaEngine.Rendering3D.Mesh.Geometry
Assembly: DeltaEngine.Rendering3D (in DeltaEngine.Rendering3D.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: GeometryRemarks
Examples
[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