router: use more kicad-ish arc representation
This commit is contained in:
parent
50c1ff67eb
commit
dfb98ce70b
|
@ -842,7 +842,6 @@ bool PNS_KICAD_IFACE::syncGraphicalItem( PNS::NODE* aWorld, DRAWSEGMENT* aItem )
|
||||||
{
|
{
|
||||||
std::vector<SHAPE_SEGMENT*> segs;
|
std::vector<SHAPE_SEGMENT*> segs;
|
||||||
|
|
||||||
|
|
||||||
if( aItem->GetLayer() != Edge_Cuts )
|
if( aItem->GetLayer() != Edge_Cuts )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@ -850,7 +849,8 @@ bool PNS_KICAD_IFACE::syncGraphicalItem( PNS::NODE* aWorld, DRAWSEGMENT* aItem )
|
||||||
{
|
{
|
||||||
case S_ARC:
|
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();
|
auto l = arc.ConvertToPolyline();
|
||||||
|
|
||||||
for( int i = 0; i < l.SegmentCount(); i++ )
|
for( int i = 0; i < l.SegmentCount(); i++ )
|
||||||
|
|
Loading…
Reference in New Issue