示例#1
0
        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();
        }
示例#2
0
        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;
        }
示例#3
0
 private void SetPen(GlPen pen)
 {
     Gl.glLineWidth(pen.Width);
     Gl.glColor3f(pen.Color.R, pen.Color.G, pen.Color.B);
 }