1 #include "libavoid/libavoid.h"
2 using namespace Avoid;
main(void)3 int main(void) {
4     Router *router = new Router(OrthogonalRouting);
5     router->setRoutingPenalty(segmentPenalty, 50);
6     router->setRoutingParameter(idealNudgingDistance, 10);
7     Rectangle rect47(Point(51145, 50195), Point(51145+360, 50195+685));
8     new ShapeRef(router, rect47);
9     Rectangle rect46(Point(51920, 49770), Point(51920+360, 49770+310));
10     new ShapeRef(router, rect46);
11     Rectangle rect45(Point(51151, 49770), Point(51151+360, 49770+310));
12     new ShapeRef(router, rect45);
13     ConnEnd srcPt53(Point(51150,49850), 4);
14     ConnEnd dstPt53(Point(51500,50350), 8);
15     new ConnRef(router, srcPt53, dstPt53);
16     ConnEnd srcPt52(Point(52275,49850), 8);
17     ConnEnd dstPt52(Point(51150,49925), 4);
18     new ConnRef(router, srcPt52, dstPt52);
19     ConnEnd srcPt6(Point(51150,50500), 4);
20     ConnEnd dstPt6(Point(51925,50000), 4);
21     new ConnRef(router, srcPt6, dstPt6, 6);
22     router->processTransaction();
23     router->outputDiagram("output/infinity");
24     delete router;
25     return 0;
26 };
27