diff --git a/src/groupmesh.cpp b/src/groupmesh.cpp index 8880c919..a890195d 100644 --- a/src/groupmesh.cpp +++ b/src/groupmesh.cpp @@ -569,7 +569,7 @@ void Group::DrawPolyError(Canvas *canvas) { Canvas::Stroke strokeError = Style::Stroke(Style::DRAW_ERROR); strokeError.layer = Canvas::Layer::FRONT; - strokeError.width = 0.0f; + strokeError.width = 1.0f; Canvas::hStroke hcsError = canvas->GetStroke(strokeError); double textHeight = Style::DefaultTextHeight() / camera.scale; diff --git a/test/commit.sh b/test/commit.sh new file mode 100755 index 00000000..bd95b5d2 --- /dev/null +++ b/test/commit.sh @@ -0,0 +1,9 @@ +#!/bin/sh -ex + +make -C build solvespace_testsuite +./build/test/solvespace_testsuite $* || true +for e in slvs png; do + for i in `find . -name *.out.$e`; do + mv $i `dirname $i`/`basename $i .out.$e`.$e; + done; +done diff --git a/test/constraint/angle/free_in_3d.png b/test/constraint/angle/free_in_3d.png index 4fb2e9fd..7fd497ea 100644 Binary files a/test/constraint/angle/free_in_3d.png and b/test/constraint/angle/free_in_3d.png differ diff --git a/test/constraint/angle/normal.png b/test/constraint/angle/normal.png index 1ab25731..375671dc 100644 Binary files a/test/constraint/angle/normal.png and b/test/constraint/angle/normal.png differ diff --git a/test/constraint/angle/reference.png b/test/constraint/angle/reference.png index 59376ffd..3da3445c 100644 Binary files a/test/constraint/angle/reference.png and b/test/constraint/angle/reference.png differ diff --git a/test/constraint/angle/reference_free_in_3d.png b/test/constraint/angle/reference_free_in_3d.png index 9e8a2ab9..58b6498b 100644 Binary files a/test/constraint/angle/reference_free_in_3d.png and b/test/constraint/angle/reference_free_in_3d.png differ diff --git a/test/constraint/arc_line_tangent/normal.png b/test/constraint/arc_line_tangent/normal.png index c2c65029..72980cb3 100644 Binary files a/test/constraint/arc_line_tangent/normal.png and b/test/constraint/arc_line_tangent/normal.png differ diff --git a/test/constraint/at_midpoint/line_plane_free_in_3d.png b/test/constraint/at_midpoint/line_plane_free_in_3d.png index 510aa890..e9f38799 100644 Binary files a/test/constraint/at_midpoint/line_plane_free_in_3d.png and b/test/constraint/at_midpoint/line_plane_free_in_3d.png differ diff --git a/test/constraint/at_midpoint/line_plane_normal.png b/test/constraint/at_midpoint/line_plane_normal.png index 510aa890..e9f38799 100644 Binary files a/test/constraint/at_midpoint/line_plane_normal.png and b/test/constraint/at_midpoint/line_plane_normal.png differ diff --git a/test/constraint/at_midpoint/line_pt_free_in_3d.png b/test/constraint/at_midpoint/line_pt_free_in_3d.png index fe283089..2d0490db 100644 Binary files a/test/constraint/at_midpoint/line_pt_free_in_3d.png and b/test/constraint/at_midpoint/line_pt_free_in_3d.png differ diff --git a/test/constraint/at_midpoint/line_pt_normal.png b/test/constraint/at_midpoint/line_pt_normal.png index fe283089..2d0490db 100644 Binary files a/test/constraint/at_midpoint/line_pt_normal.png and b/test/constraint/at_midpoint/line_pt_normal.png differ diff --git a/test/constraint/cubic_line_tangent/free_in_3d.png b/test/constraint/cubic_line_tangent/free_in_3d.png index 5784a678..2ef2ad5e 100644 Binary files a/test/constraint/cubic_line_tangent/free_in_3d.png and b/test/constraint/cubic_line_tangent/free_in_3d.png differ diff --git a/test/constraint/curve_curve_tangent/arc_arc.png b/test/constraint/curve_curve_tangent/arc_arc.png index d4588907..9193cb2f 100644 Binary files a/test/constraint/curve_curve_tangent/arc_arc.png and b/test/constraint/curve_curve_tangent/arc_arc.png differ diff --git a/test/constraint/curve_curve_tangent/arc_cubic.png b/test/constraint/curve_curve_tangent/arc_cubic.png index 5b47f702..5e4935e5 100644 Binary files a/test/constraint/curve_curve_tangent/arc_cubic.png and b/test/constraint/curve_curve_tangent/arc_cubic.png differ diff --git a/test/constraint/eq_len_pt_line_d/normal.png b/test/constraint/eq_len_pt_line_d/normal.png index aa12011b..74857ff3 100644 Binary files a/test/constraint/eq_len_pt_line_d/normal.png and b/test/constraint/eq_len_pt_line_d/normal.png differ diff --git a/test/constraint/eq_pt_ln_distances/normal.png b/test/constraint/eq_pt_ln_distances/normal.png index 599e55f6..72a026d3 100644 Binary files a/test/constraint/eq_pt_ln_distances/normal.png and b/test/constraint/eq_pt_ln_distances/normal.png differ diff --git a/test/constraint/equal_angle/normal.png b/test/constraint/equal_angle/normal.png index 2b744a8f..f530bd59 100644 Binary files a/test/constraint/equal_angle/normal.png and b/test/constraint/equal_angle/normal.png differ diff --git a/test/constraint/equal_angle/other.png b/test/constraint/equal_angle/other.png index 21cdcc46..ab7676c6 100644 Binary files a/test/constraint/equal_angle/other.png and b/test/constraint/equal_angle/other.png differ diff --git a/test/constraint/equal_length_lines/normal.png b/test/constraint/equal_length_lines/normal.png index 6a59e7d6..cc0f9c26 100644 Binary files a/test/constraint/equal_length_lines/normal.png and b/test/constraint/equal_length_lines/normal.png differ diff --git a/test/constraint/equal_line_arc_len/normal.png b/test/constraint/equal_line_arc_len/normal.png index 323d8113..c0393ad2 100644 Binary files a/test/constraint/equal_line_arc_len/normal.png and b/test/constraint/equal_line_arc_len/normal.png differ diff --git a/test/constraint/equal_line_arc_len/pi.png b/test/constraint/equal_line_arc_len/pi.png index 9a5ab155..b22fbace 100644 Binary files a/test/constraint/equal_line_arc_len/pi.png and b/test/constraint/equal_line_arc_len/pi.png differ diff --git a/test/constraint/equal_line_arc_len/tau.png b/test/constraint/equal_line_arc_len/tau.png index 7b4a312d..8ecd8a6f 100644 Binary files a/test/constraint/equal_line_arc_len/tau.png and b/test/constraint/equal_line_arc_len/tau.png differ diff --git a/test/constraint/equal_radius/normal.png b/test/constraint/equal_radius/normal.png index 376ddea7..17931920 100644 Binary files a/test/constraint/equal_radius/normal.png and b/test/constraint/equal_radius/normal.png differ diff --git a/test/constraint/horizontal/line.png b/test/constraint/horizontal/line.png index 3a5e46e4..6a2f7b23 100644 Binary files a/test/constraint/horizontal/line.png and b/test/constraint/horizontal/line.png differ diff --git a/test/constraint/length_difference/normal.png b/test/constraint/length_difference/normal.png index 63a1b8fc..0ff0e69e 100644 Binary files a/test/constraint/length_difference/normal.png and b/test/constraint/length_difference/normal.png differ diff --git a/test/constraint/length_difference/reference.png b/test/constraint/length_difference/reference.png index d2ece4c8..97ef14ab 100644 Binary files a/test/constraint/length_difference/reference.png and b/test/constraint/length_difference/reference.png differ diff --git a/test/constraint/length_ratio/normal.png b/test/constraint/length_ratio/normal.png index b67ffe0f..eacac75d 100644 Binary files a/test/constraint/length_ratio/normal.png and b/test/constraint/length_ratio/normal.png differ diff --git a/test/constraint/length_ratio/reference.png b/test/constraint/length_ratio/reference.png index 7d3b8712..42ea9562 100644 Binary files a/test/constraint/length_ratio/reference.png and b/test/constraint/length_ratio/reference.png differ diff --git a/test/constraint/parallel/free_in_3d.png b/test/constraint/parallel/free_in_3d.png index 3ce8c892..6c7d8703 100644 Binary files a/test/constraint/parallel/free_in_3d.png and b/test/constraint/parallel/free_in_3d.png differ diff --git a/test/constraint/parallel/normal.png b/test/constraint/parallel/normal.png index 518845f8..e408b3fe 100644 Binary files a/test/constraint/parallel/normal.png and b/test/constraint/parallel/normal.png differ diff --git a/test/constraint/perpendicular/normal.png b/test/constraint/perpendicular/normal.png index f1d36526..00d40964 100644 Binary files a/test/constraint/perpendicular/normal.png and b/test/constraint/perpendicular/normal.png differ diff --git a/test/constraint/pt_line_distance/extended.png b/test/constraint/pt_line_distance/extended.png index b608b38f..38fcd820 100644 Binary files a/test/constraint/pt_line_distance/extended.png and b/test/constraint/pt_line_distance/extended.png differ diff --git a/test/constraint/pt_line_distance/free_in_3d.png b/test/constraint/pt_line_distance/free_in_3d.png index 8b765301..a083fb9b 100644 Binary files a/test/constraint/pt_line_distance/free_in_3d.png and b/test/constraint/pt_line_distance/free_in_3d.png differ diff --git a/test/constraint/pt_line_distance/normal.png b/test/constraint/pt_line_distance/normal.png index 8b765301..a083fb9b 100644 Binary files a/test/constraint/pt_line_distance/normal.png and b/test/constraint/pt_line_distance/normal.png differ diff --git a/test/constraint/pt_line_distance/reference.png b/test/constraint/pt_line_distance/reference.png index 8f28f962..c34ec26d 100644 Binary files a/test/constraint/pt_line_distance/reference.png and b/test/constraint/pt_line_distance/reference.png differ diff --git a/test/constraint/pt_on_line/left_free_in_3d.png b/test/constraint/pt_on_line/left_free_in_3d.png index f79bf70f..f234e5bd 100644 Binary files a/test/constraint/pt_on_line/left_free_in_3d.png and b/test/constraint/pt_on_line/left_free_in_3d.png differ diff --git a/test/constraint/pt_on_line/normal.png b/test/constraint/pt_on_line/normal.png index 0f10f4e0..c0b5085e 100644 Binary files a/test/constraint/pt_on_line/normal.png and b/test/constraint/pt_on_line/normal.png differ diff --git a/test/constraint/pt_on_line/right_free_in_3d.png b/test/constraint/pt_on_line/right_free_in_3d.png index 0cf31c91..e67bfacf 100644 Binary files a/test/constraint/pt_on_line/right_free_in_3d.png and b/test/constraint/pt_on_line/right_free_in_3d.png differ diff --git a/test/constraint/symmetric_line/normal.png b/test/constraint/symmetric_line/normal.png index ce4acf87..972da941 100644 Binary files a/test/constraint/symmetric_line/normal.png and b/test/constraint/symmetric_line/normal.png differ diff --git a/test/constraint/vertical/line.png b/test/constraint/vertical/line.png index caa33372..884b366f 100644 Binary files a/test/constraint/vertical/line.png and b/test/constraint/vertical/line.png differ diff --git a/test/harness.cpp b/test/harness.cpp index e2270060..a5fe01ea 100644 --- a/test/harness.cpp +++ b/test/harness.cpp @@ -314,6 +314,7 @@ int main(int argc, char **argv) { } SS.Init(); + SS.checkClosedContour = false; Test::Helper helper = {}; testCase.fn(&helper); diff --git a/test/request/arc_of_circle/normal.png b/test/request/arc_of_circle/normal.png index 90361e81..30f7f0fb 100644 Binary files a/test/request/arc_of_circle/normal.png and b/test/request/arc_of_circle/normal.png differ diff --git a/test/request/cubic/normal.png b/test/request/cubic/normal.png index 798a25c2..4f961d0d 100644 Binary files a/test/request/cubic/normal.png and b/test/request/cubic/normal.png differ diff --git a/test/request/cubic_periodic/normal.png b/test/request/cubic_periodic/normal.png index 8f4c66fc..76defb2f 100644 Binary files a/test/request/cubic_periodic/normal.png and b/test/request/cubic_periodic/normal.png differ diff --git a/test/request/line_segment/normal.png b/test/request/line_segment/normal.png index 189436b5..69711fa2 100644 Binary files a/test/request/line_segment/normal.png and b/test/request/line_segment/normal.png differ