/// <summary> /// Render thes Slice WireFrame /// </summary> /// <param name="context"></param> protected void RenderAsWireFrame(ref RenderingContext context) { PrimitiveType oldPrim = m_Primitive; m_Primitive = PrimitiveType.LineStrip; context.ApplyLineDefault(); base.Render(ref context); ScanLine l1 = new ScanLine(-1, Count / 2); ScanLine l2 = new ScanLine(-1, Count / 2); for (int i = 0; i < Count; i++) if (i % 2 == 0) l1.Add(this[i]); else l2.Add(this[i]); l1.Render(ref context); l2.Render(ref context); m_Primitive = oldPrim; }