@@ -919,6 +919,10 @@ inline void RendererAgg::_draw_path_collection_generic(GCAgg &gc,
919
919
typedef PathSnapper<clipped_t > snapped_t ;
920
920
typedef agg::conv_curve<snapped_t > snapped_curve_t ;
921
921
typedef agg::conv_curve<clipped_t > curve_t ;
922
+ typedef Sketch<clipped_t > sketch_clipped_t ;
923
+ typedef Sketch<curve_t > sketch_curve_t ;
924
+ typedef Sketch<snapped_t > sketch_snapped_t ;
925
+ typedef Sketch<snapped_curve_t > sketch_snapped_curve_t ;
922
926
923
927
size_t Npaths = path_generator.num_paths ();
924
928
size_t Noffsets = safe_first_shape (offsets);
@@ -994,31 +998,29 @@ inline void RendererAgg::_draw_path_collection_generic(GCAgg &gc,
994
998
}
995
999
}
996
1000
1001
+ gc.isaa = antialiaseds (i % Naa);
1002
+ transformed_path_t tpath (path, trans);
1003
+ nan_removed_t nan_removed (tpath, true , has_codes);
1004
+ clipped_t clipped (nan_removed, do_clip, width, height);
997
1005
if (check_snap) {
998
- gc.isaa = antialiaseds (i % Naa);
999
-
1000
- transformed_path_t tpath (path, trans);
1001
- nan_removed_t nan_removed (tpath, true , has_codes);
1002
- clipped_t clipped (nan_removed, do_clip, width, height);
1003
1006
snapped_t snapped (
1004
1007
clipped, gc.snap_mode , path.total_vertices (), points_to_pixels (gc.linewidth ));
1005
1008
if (has_codes) {
1006
1009
snapped_curve_t curve (snapped);
1007
- _draw_path (curve, has_clippath, face, gc);
1010
+ sketch_snapped_curve_t sketch (curve, gc.sketch .scale , gc.sketch .length , gc.sketch .randomness );
1011
+ _draw_path (sketch, has_clippath, face, gc);
1008
1012
} else {
1009
- _draw_path (snapped, has_clippath, face, gc);
1013
+ sketch_snapped_t sketch (snapped, gc.sketch .scale , gc.sketch .length , gc.sketch .randomness );
1014
+ _draw_path (sketch, has_clippath, face, gc);
1010
1015
}
1011
1016
} else {
1012
- gc.isaa = antialiaseds (i % Naa);
1013
-
1014
- transformed_path_t tpath (path, trans);
1015
- nan_removed_t nan_removed (tpath, true , has_codes);
1016
- clipped_t clipped (nan_removed, do_clip, width, height);
1017
1017
if (has_codes) {
1018
1018
curve_t curve (clipped);
1019
- _draw_path (curve, has_clippath, face, gc);
1019
+ sketch_curve_t sketch (curve, gc.sketch .scale , gc.sketch .length , gc.sketch .randomness );
1020
+ _draw_path (sketch, has_clippath, face, gc);
1020
1021
} else {
1021
- _draw_path (clipped, has_clippath, face, gc);
1022
+ sketch_clipped_t sketch (clipped, gc.sketch .scale , gc.sketch .length , gc.sketch .randomness );
1023
+ _draw_path (sketch, has_clippath, face, gc);
1022
1024
}
1023
1025
}
1024
1026
}
0 commit comments