router: don't reject non-45 degree lines in the LINE_PLACER
This commit is contained in:
parent
ce28525172
commit
441e5fd486
|
@ -32,6 +32,7 @@
|
||||||
#include "pns_topology.h"
|
#include "pns_topology.h"
|
||||||
#include "pns_walkaround.h"
|
#include "pns_walkaround.h"
|
||||||
#include "pns_mouse_trail_tracer.h"
|
#include "pns_mouse_trail_tracer.h"
|
||||||
|
#include "pns_utils.h"
|
||||||
|
|
||||||
#include <wx/log.h>
|
#include <wx/log.h>
|
||||||
|
|
||||||
|
@ -940,9 +941,7 @@ void LINE_PLACER::routeStep( const VECTOR2I& aP )
|
||||||
if( !routeHead( aP, new_head ) )
|
if( !routeHead( aP, new_head ) )
|
||||||
fail = true;
|
fail = true;
|
||||||
|
|
||||||
if( !new_head.Is45Degree() &&
|
PNS_DBG( Dbg(), AddLine, new_head.CLine(), LIGHTGREEN, 100000, "new_head" );
|
||||||
!(Settings().GetFreeAngleMode() && Settings().Mode() == RM_MarkObstacles) )
|
|
||||||
fail = true;
|
|
||||||
|
|
||||||
if( fail )
|
if( fail )
|
||||||
break;
|
break;
|
||||||
|
@ -1022,6 +1021,10 @@ const LINE LINE_PLACER::Trace() const
|
||||||
|
|
||||||
tmp.SetShape( m_tail.CLine() );
|
tmp.SetShape( m_tail.CLine() );
|
||||||
tmp.Line().Append( m_head.CLine() );
|
tmp.Line().Append( m_head.CLine() );
|
||||||
|
|
||||||
|
PNS_DBG( Dbg(), AddLine, m_tail.CLine(), GREEN, 100000, "tmp-tail" );
|
||||||
|
PNS_DBG( Dbg(), AddLine, m_head.CLine(), LIGHTGREEN, 100000, "tmp-head" );
|
||||||
|
|
||||||
tmp.Line().Simplify();
|
tmp.Line().Simplify();
|
||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue