Namespace: DeltaEngine.Rendering3D.Shapes
Assembly: DeltaEngine.Rendering3D.Shapes (in DeltaEngine.Rendering3D.Shapes.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Rendering3D.Shapes.Tests.Grid3DTests
2 unit tests call DeltaEngine.Rendering3D.Shapes.Grid3D.Dimension
Assembly: DeltaEngine.Rendering3D.Shapes (in DeltaEngine.Rendering3D.Shapes.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: SizeRemarks
Examples
[Test] public void CheckGridDimension() { var grid = CreateQuadraticGrid(10); Assert.AreEqual(new Size(10, 10), grid.Dimension); grid.Dimension = new Size(20, 20); Assert.AreEqual(new Size(20, 20), grid.Dimension); }
[Test] public void RedrawGridIfItChanges() { var grid = new Grid3D(new Size(1)); Assert.AreEqual(4, EntitiesRunner.Current.GetEntitiesOfType<Line3D>().Count); grid.Dimension = new Size(10); Assert.AreEqual(22, EntitiesRunner.Current.GetEntitiesOfType<Line3D>().Count); }
See Also