67 RESULT
Route(
const SEG& aWire,
int aNet );
87 std::vector<CONTACT>
contacts()
const;
90 bool joinsOtherNet(
const SEG& aPiece,
const SEG& aWire,
int aNet,
const std::vector<CONTACT>& aContacts )
const;
94 const std::vector<CONTACT>& aContacts )
const;
Keeps wires of one net from touching pins, junctions and wire ends of other nets on import.
std::vector< WIRE > m_wires
std::vector< CONTACT > m_contacts
void AddContact(const VECTOR2I &aPos, int aNet)
Register a pin or junction.
RESULT Route(const SEG &aWire, int aNet)
Detour a wire around foreign items lying on it and register the result as the wire's geometry.
void AddWire(const SEG &aWire, int aNet)
Register a wire as an obstacle for the wires of other nets.
bool TouchesOtherNet(const VECTOR2I &aPos, int aNet) const
bool joinsOtherNet(const SEG &aPiece, const SEG &aWire, int aNet, const std::vector< CONTACT > &aContacts) const
True if a detour piece would join another net.
std::vector< CONTACT > contacts() const
std::vector< SEG > detour(const SEG &aWire, const VECTOR2I &aEnter, const VECTOR2I &aLeave, int aNet, const std::vector< CONTACT > &aContacts) const
Detour the stretch of a wire between two points, or an empty vector if there is no safe place for it.
bool Failed
A foreign item lies on the wire and no safe detour was found, the wire is left as it was.
std::vector< SEG > Pieces
The wire itself when nothing lies on it, otherwise the pieces of the detoured wire in order.
VECTOR2< int32_t > VECTOR2I