altium: fix coding style, remove useless check
This commit is contained in:
parent
a6f6d44026
commit
06e9a21791
|
@ -146,12 +146,9 @@ void ALTIUM_PCB::HelperDrawsegmentSetLocalCoord( PCB_SHAPE* aShape, uint16_t aCo
|
||||||
|
|
||||||
|
|
||||||
void HelperShapeLineChainFromAltiumVertices(
|
void HelperShapeLineChainFromAltiumVertices(
|
||||||
SHAPE_LINE_CHAIN& line, const std::vector<ALTIUM_VERTICE>& vertices )
|
SHAPE_LINE_CHAIN& aLine, const std::vector<ALTIUM_VERTICE>& aVertices )
|
||||||
{
|
{
|
||||||
if( vertices.empty() )
|
for( auto& vertice : aVertices )
|
||||||
THROW_IO_ERROR( "no vertices which can be interpreted" );
|
|
||||||
|
|
||||||
for( auto& vertice : vertices )
|
|
||||||
{
|
{
|
||||||
if( vertice.isRound )
|
if( vertice.isRound )
|
||||||
{
|
{
|
||||||
|
@ -171,20 +168,20 @@ void HelperShapeLineChainFromAltiumVertices(
|
||||||
if( GetLineLength( arcStart, vertice.position )
|
if( GetLineLength( arcStart, vertice.position )
|
||||||
< GetLineLength( arcEnd, vertice.position ) )
|
< GetLineLength( arcEnd, vertice.position ) )
|
||||||
{
|
{
|
||||||
line.Append( SHAPE_ARC( vertice.center, arcStart, -angle ) );
|
aLine.Append( SHAPE_ARC( vertice.center, arcStart, -angle ) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
line.Append( SHAPE_ARC( vertice.center, arcEnd, angle ) );
|
aLine.Append( SHAPE_ARC( vertice.center, arcEnd, angle ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
line.Append( vertice.position );
|
aLine.Append( vertice.position );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
line.SetClosed( true );
|
aLine.SetClosed( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue