altium: use arc angle to determine winding direction

This commit is contained in:
Thomas Pointhuber 2021-11-14 14:44:26 +01:00
parent 36fd62ccdc
commit 591fbf6383
1 changed files with 3 additions and 4 deletions

View File

@ -876,7 +876,7 @@ void ALTIUM_PCB::HelperCreateBoardOutline( const std::vector<ALTIUM_VERTICE>& aV
shape->SetCenter( cur->center ); shape->SetCenter( cur->center );
shape->SetStart( arcStart ); shape->SetStart( arcStart );
shape->SetArcAngleAndEnd( -NormalizeAngleDegreesPos( includedAngle ) * 10.0 ); shape->SetArcAngleAndEnd( -NormalizeAngleDegreesPos( includedAngle ) * 10.0, true );
if( !last->isRound ) if( !last->isRound )
{ {
@ -918,7 +918,6 @@ void ALTIUM_PCB::ParseClasses6Data( const CFB::CompoundFileReader& aReader,
{ {
checkpoint(); checkpoint();
ACLASS6 elem( reader ); ACLASS6 elem( reader );
if( elem.kind == ALTIUM_CLASS_KIND::NET_CLASS ) if( elem.kind == ALTIUM_CLASS_KIND::NET_CLASS )
{ {
NETCLASSPTR nc = std::make_shared<NETCLASS>( elem.name ); NETCLASSPTR nc = std::make_shared<NETCLASS>( elem.name );
@ -1946,7 +1945,7 @@ void ALTIUM_PCB::ParseArcs6Data( const CFB::CompoundFileReader& aReader,
shape.SetCenter( elem.center ); shape.SetCenter( elem.center );
shape.SetStart( elem.center + arcStartOffset ); shape.SetStart( elem.center + arcStartOffset );
shape.SetArcAngleAndEnd( -NormalizeAngleDegreesPos( includedAngle ) * 10.0 ); shape.SetArcAngleAndEnd( -NormalizeAngleDegreesPos( includedAngle ) * 10.0, true );
} }
ZONE* zone = new ZONE( m_board ); ZONE* zone = new ZONE( m_board );
@ -2052,7 +2051,7 @@ void ALTIUM_PCB::ParseArcs6Data( const CFB::CompoundFileReader& aReader,
shape->SetCenter( elem.center ); shape->SetCenter( elem.center );
shape->SetStart( elem.center + arcStartOffset ); shape->SetStart( elem.center + arcStartOffset );
shape->SetArcAngleAndEnd( -NormalizeAngleDegreesPos( includedAngle ) * 10.0 ); shape->SetArcAngleAndEnd( -NormalizeAngleDegreesPos( includedAngle ) * 10.0, true );
} }
HelperShapeSetLocalCoord( shape, elem.component ); HelperShapeSetLocalCoord( shape, elem.component );