From dfb98ce70b9c19f07a22ab5926593a45f363c16b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20W=C5=82ostowski?= Date: Fri, 16 Feb 2018 17:35:59 +0100 Subject: [PATCH] router: use more kicad-ish arc representation --- pcbnew/router/pns_kicad_iface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/router/pns_kicad_iface.cpp b/pcbnew/router/pns_kicad_iface.cpp index c9f19007ef..d97a5aefc1 100644 --- a/pcbnew/router/pns_kicad_iface.cpp +++ b/pcbnew/router/pns_kicad_iface.cpp @@ -842,7 +842,6 @@ bool PNS_KICAD_IFACE::syncGraphicalItem( PNS::NODE* aWorld, DRAWSEGMENT* aItem ) { std::vector segs; - if( aItem->GetLayer() != Edge_Cuts ) return false; @@ -850,7 +849,8 @@ bool PNS_KICAD_IFACE::syncGraphicalItem( PNS::NODE* aWorld, DRAWSEGMENT* aItem ) { case S_ARC: { - SHAPE_ARC arc( aItem->GetArcStart(), aItem->GetArcEnd(), aItem->GetCenter() ); + SHAPE_ARC arc( aItem->GetStart(), aItem->GetEnd(), (double) aItem->GetAngle() / 10.0 ); + auto l = arc.ConvertToPolyline(); for( int i = 0; i < l.SegmentCount(); i++ )