summaryrefslogtreecommitdiffstats
path: root/src/libavoid/tests/inlineoverlap03.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc.jeanmougin@telecom-paristech.fr>2018-04-29 14:25:32 +0000
committerMarc Jeanmougin <marc.jeanmougin@telecom-paristech.fr>2018-04-29 14:25:32 +0000
commitab5f8ff5869021958f4ae8b838c3d707a2e85eaa (patch)
tree4907675828a5401d013b7587538cc8541edd2764 /src/libavoid/tests/inlineoverlap03.cpp
parentmoved libcroco, libuemf, libdepixelize to 3rdparty folder (diff)
downloadinkscape-ab5f8ff5869021958f4ae8b838c3d707a2e85eaa.tar.gz
inkscape-ab5f8ff5869021958f4ae8b838c3d707a2e85eaa.zip
Put adaptagrams into its own folder
Diffstat (limited to 'src/libavoid/tests/inlineoverlap03.cpp')
-rw-r--r--src/libavoid/tests/inlineoverlap03.cpp55
1 files changed, 0 insertions, 55 deletions
diff --git a/src/libavoid/tests/inlineoverlap03.cpp b/src/libavoid/tests/inlineoverlap03.cpp
deleted file mode 100644
index 945cd72ab..000000000
--- a/src/libavoid/tests/inlineoverlap03.cpp
+++ /dev/null
@@ -1,55 +0,0 @@
-// From diffport-pins-overlap-reduced_libavoid-debug_4 bug.
-#include "libavoid/libavoid.h"
-using namespace Avoid;
-int main(void) {
- Router *router = new Router(
- PolyLineRouting | OrthogonalRouting);
- router->setRoutingPenalty((PenaltyType)0, 50);
- router->setRoutingPenalty((PenaltyType)1, 0);
- router->setRoutingPenalty((PenaltyType)2, 0);
- router->setRoutingPenalty((PenaltyType)3, 4000);
- router->setRoutingPenalty((PenaltyType)4, 110);
- router->setRoutingParameter(idealNudgingDistance, 25);
-
- Polygon poly421433292(4);
- poly421433292.ps[0] = Point(51335, 50215);
- poly421433292.ps[1] = Point(51335, 50385);
- poly421433292.ps[2] = Point(51065, 50385);
- poly421433292.ps[3] = Point(51065, 50215);
- new ShapeRef(router, poly421433292, 421433292);
-
- Polygon poly174734866(4);
- poly174734866.ps[0] = Point(51335, 50490);
- poly174734866.ps[1] = Point(51335, 50660);
- poly174734866.ps[2] = Point(51065, 50660);
- poly174734866.ps[3] = Point(51065, 50490);
- new ShapeRef(router, poly174734866, 174734866);
-
- Polygon poly564884274(4);
- poly564884274.ps[0] = Point(50635, 50500);
- poly564884274.ps[1] = Point(50635, 50583);
- poly564884274.ps[2] = Point(50515, 50583);
- poly564884274.ps[3] = Point(50515, 50500);
- new ShapeRef(router, poly564884274, 564884274);
-
- ConnRef *connRef103176525 = new ConnRef(router, 103176525);
- ConnEnd srcPt103176525(Point(51085, 50550), 4);
- connRef103176525->setSourceEndpoint(srcPt103176525);
- ConnEnd dstPt103176525(Point(50575, 50510), 1);
- connRef103176525->setDestEndpoint(dstPt103176525);
- connRef103176525->setRoutingType((ConnType)2);
-
- ConnRef *connRef223495632 = new ConnRef(router, 223495632);
- ConnEnd srcPt223495632(Point(51085, 50325), 4);
- connRef223495632->setSourceEndpoint(srcPt223495632);
- ConnEnd dstPt223495632(Point(50575, 50550), 14);
- connRef223495632->setDestEndpoint(dstPt223495632);
- connRef223495632->setRoutingType((ConnType)2);
-
- router->processTransaction();
- router->outputDiagram("output/inlineoverlap03");
- bool overlap = router->existsOrthogonalFixedSegmentOverlap();
- delete router;
- return (overlap) ? 1 : 0;
-};
-