Formatting.
This commit is contained in:
parent
1f27fff1ea
commit
6f0a4ccdee
|
@ -354,8 +354,8 @@ bool ConvertOutlineToPolygon( std::vector<PCB_SHAPE*>& aSegList, SHAPE_POLY_SET&
|
|||
}
|
||||
else
|
||||
{
|
||||
// Polygon start point. Arbitrarily chosen end of the
|
||||
// segment and build the poly from here.
|
||||
// Polygon start point. Arbitrarily choose an end of the segment and build the polygon
|
||||
// from there.
|
||||
|
||||
wxPoint startPt = graphic->GetEnd();
|
||||
|
||||
|
@ -363,8 +363,8 @@ bool ConvertOutlineToPolygon( std::vector<PCB_SHAPE*>& aSegList, SHAPE_POLY_SET&
|
|||
aPolygons.NewOutline();
|
||||
aPolygons.Append( prevPt );
|
||||
|
||||
// Do not append the other end point yet of this 'graphic', this first
|
||||
// 'graphic' might be an arc or a curve.
|
||||
// Do not append the other end point yet of this 'graphic', this first 'graphic' might
|
||||
// be an arc or a curve.
|
||||
|
||||
for(;;)
|
||||
{
|
||||
|
@ -391,8 +391,8 @@ bool ConvertOutlineToPolygon( std::vector<PCB_SHAPE*>& aSegList, SHAPE_POLY_SET&
|
|||
{
|
||||
wxPoint nextPt;
|
||||
|
||||
// Use the line segment end point furthest away from prevPt as we assume
|
||||
// the other end to be ON prevPt or very close to it.
|
||||
// Use the line segment end point furthest away from prevPt as we assume the
|
||||
// other end to be ON prevPt or very close to it.
|
||||
|
||||
if( closer_to_first( prevPt, graphic->GetStart(), graphic->GetEnd()) )
|
||||
nextPt = graphic->GetEnd();
|
||||
|
@ -557,8 +557,8 @@ bool ConvertOutlineToPolygon( std::vector<PCB_SHAPE*>& aSegList, SHAPE_POLY_SET&
|
|||
graphic->SetFlags( SKIP_STRUCT );
|
||||
startCandidates.erase( startCandidates.begin() );
|
||||
|
||||
// Both circles and polygons on the edge cuts layer are closed items that
|
||||
// do not connect to other elements, so we process them independently
|
||||
// Both circles and polygons on the edge cuts layer are closed items that do not
|
||||
// connect to other elements, so we process them independently
|
||||
if( graphic->GetShape() == SHAPE_T::POLY )
|
||||
{
|
||||
double orientation = 0.0;
|
||||
|
@ -647,9 +647,8 @@ bool ConvertOutlineToPolygon( std::vector<PCB_SHAPE*>& aSegList, SHAPE_POLY_SET&
|
|||
{
|
||||
wxPoint nextPt;
|
||||
|
||||
// Use the line segment end point furthest away from
|
||||
// prevPt as we assume the other end to be ON prevPt or
|
||||
// very close to it.
|
||||
// Use the line segment end point furthest away from prevPt as we assume
|
||||
// the other end to be ON prevPt or very close to it.
|
||||
|
||||
if( closer_to_first( prevPt, graphic->GetStart(), graphic->GetEnd()) )
|
||||
nextPt = graphic->GetEnd();
|
||||
|
@ -686,6 +685,7 @@ bool ConvertOutlineToPolygon( std::vector<PCB_SHAPE*>& aSegList, SHAPE_POLY_SET&
|
|||
{
|
||||
double rotation = ( angle * step ) / steps;
|
||||
wxPoint pt = pstart;
|
||||
|
||||
RotatePoint( &pt, pcenter, rotation );
|
||||
|
||||
aPolygons.Append( pt, -1, hole );
|
||||
|
@ -707,9 +707,8 @@ bool ConvertOutlineToPolygon( std::vector<PCB_SHAPE*>& aSegList, SHAPE_POLY_SET&
|
|||
wxPoint nextPt;
|
||||
bool reverse = false;
|
||||
|
||||
// Use the end point furthest away from
|
||||
// prevPt as we assume the other end to be ON prevPt or
|
||||
// very close to it.
|
||||
// Use the end point furthest away from prevPt as we assume the other
|
||||
// end to be ON prevPt or very close to it.
|
||||
|
||||
if( closer_to_first( prevPt, graphic->GetStart(), graphic->GetEnd()) )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue