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