/// <summary> /// paints the upper plane. You can override this metod e.g to gives the uppPlane a materal. See also <see cref="DrawUpPlane(OpenGlDevice)"/> /// </summary> /// <param name="Device">the device in wich will drawn.</param> protected virtual void DrawDownPlane(OpenGlDevice Device) { Device.PushMatrix(); Device.MulMatrix(DownMatrix); Device.drawPolyPolyLine(DownLoxy); Device.PopMatrix(); if (Device.RenderKind == RenderKind.SnapBuffer) { SnappItem SI = Selector.StoredSnapItems[Selector.StoredSnapItems.Count - 1]; { SI.OfObject = this; } } }
/// <summary> /// paints the upper plane. You can override this metod e.g to gives the uppPlane a materal. /// <br/> /// f.e:<br/> /// class MyPolyExtruder:PolyCurveExtruder<br/> ///{<br/> ///protected override void DrawUpPlane(OpenGlDevice Device)<br/> ///{<br/> ///Material Save = Device.Material<br/> ///Device.Material = Materials.Gold;<br/> /// base.DrawUpPlane(Device);<br/> ///Device.Material = Save;<br/> ///} ///} /// </summary> /// <param name="Device">the device in wich will drawn.</param> protected virtual void DrawUpPlane(OpenGlDevice Device) { Device.PushMatrix(); Device.MulMatrix(UpMatrix); Device.drawPolyPolyLine(UpLoxy); if (Device.RenderKind == RenderKind.SnapBuffer) { if (Selector.StoredSnapItems.Count > 0) { SnappItem SI = Selector.StoredSnapItems[Selector.StoredSnapItems.Count - 1]; if (SI != null) { SI.OfObject = this; } } } Device.PopMatrix(); }