//-------------------------------------------------------------------------------------------------- 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); }
//-------------------------------------------------------------------------------------------------- void _ImportLine(DxfDomLine dxfLine) { var startIndex = _AddPoint(dxfLine.StartPoint); var endIndex = _AddPoint(dxfLine.EndPoint); if (startIndex != endIndex) { _Segments.Add(new SketchSegmentLine(startIndex, endIndex)); } }
//-------------------------------------------------------------------------------------------------- void IDrawingRenderer.Line(Pnt2d start, Pnt2d end) { var entity = new DxfDomLine(_CurrentLayerName, start, end); _AddEntity(entity); }