Exemplo n.º 1
0
        //--------------------------------------------------------------------------------------------------

        void _AddLineSegment(SketchSegmentLine lineSegment)
        {
            var p1 = _Sketch.Points[lineSegment.StartPoint];
            var p2 = _Sketch.Points[lineSegment.EndPoint];

            var entity = new DxfDomLine("0", p1, p2);

            _Document.Entities.Add(entity);
        }
Exemplo n.º 2
0
        //--------------------------------------------------------------------------------------------------

        void _ImportLine(DxfDomLine dxfLine)
        {
            var startIndex = _AddPoint(dxfLine.StartPoint);
            var endIndex   = _AddPoint(dxfLine.EndPoint);

            if (startIndex != endIndex)
            {
                _Segments.Add(new SketchSegmentLine(startIndex, endIndex));
            }
        }
Exemplo n.º 3
0
        //--------------------------------------------------------------------------------------------------

        void IDrawingRenderer.Line(Pnt2d start, Pnt2d end)
        {
            var entity = new DxfDomLine(_CurrentLayerName, start, end);

            _AddEntity(entity);
        }