From 1180ebdc1f18044a74f22f17b4d500ce7d6543fa Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 25 Apr 2021 00:09:57 +0200 Subject: Remove cairo dependency We initially used Cairo for its bezier flattening algorithm. That algorithm turned out to be a bit too imprecise at the scales we're working at here (#17), so I ended up porting over some code from Antigrain Graphics. The only other thing we used Cairo for was debug output and coordinate transforms, so I just wrote the relevant vector math in a small header file, deleted all debug output code and thus eliminated the cairo dependency. This is a step towards Windows builds. --- svg-flatten/src/flatten.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'svg-flatten/src/flatten.cpp') diff --git a/svg-flatten/src/flatten.cpp b/svg-flatten/src/flatten.cpp index e93f044..cb7f427 100644 --- a/svg-flatten/src/flatten.cpp +++ b/svg-flatten/src/flatten.cpp @@ -7,7 +7,6 @@ using namespace gerbolyze; namespace gerbolyze { - const double curve_distance_epsilon = 1e-15; const double curve_collinearity_epsilon = 1e-15; const double curve_angle_tolerance_epsilon = 0.1; constexpr unsigned curve_recursion_limit = 20; -- cgit