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
3 unit tests call DeltaEngine.Rendering3D.Shapes.Grid3D.IsActive
Assembly: DeltaEngine.Rendering3D.Shapes (in DeltaEngine.Rendering3D.Shapes.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: BooleanRemarks
Examples
[Test] public void RenderQuadraticGridWithSizeOfOne() { var grid = CreateQuadraticGrid(1); new Line3D(Vector3D.Zero, Vector3D.UnitZ, Color.Red); AssertQuadraticGrid(1, grid); foreach (var line in grid.lines) Assert.IsTrue(line.IsActive); }
[Test, CloseAfterFirstFrame] public void InactivatingInactivatesLines() { var grid = CreateQuadraticGrid(2); grid.IsActive = false; foreach (var line in grid.lines) Assert.IsFalse(line.IsActive); }
[Test] public void RenderGridWithCenterInOtherPosition() { var grid = new Grid3D(new Vector3D(5, 5, 0), new Size(1)); new Line3D(Vector3D.Zero, Vector3D.UnitX, Color.Red); new Line3D(Vector3D.Zero, Vector3D.UnitY, Color.Green); new Line3D(Vector3D.Zero, Vector3D.UnitZ, Color.Blue); AssertQuadraticGrid(1, grid); new Line3D(new Vector3D(5, 5, 0), new Vector3D(5, 5, 1), Color.Blue); foreach (var line in grid.lines) Assert.IsTrue(line.IsActive); Assert.AreEqual(new Vector3D(5, 5, 0), grid.Position); }
See Also