private void PaintStep(ViewerStep op, GlPen pen) { SetPen(pen); Gl.glBegin(Gl.GL_LINES); Gl.glVertex3f(op.Start.X, op.Start.Y, op.Start.Z); Gl.glVertex3f(op.End.X, op.End.Y, op.End.Z); Gl.glEnd(); }
private void DrawStep(ViewerStep op, ref ViewerStep head, bool alreadyCut) { GlPen pen = (op.IsCuttingOp) ? GlCutPen : GlMovePen; if (pen == GlCutPen && !alreadyCut) { pen = GlCutPendingPen; } PaintStep(op, pen); mCurrentDistance += op.Distance; head = op; }
private void SetPen(GlPen pen) { Gl.glLineWidth(pen.Width); Gl.glColor3f(pen.Color.R, pen.Color.G, pen.Color.B); }