}
}
+sub psvec ($) {
+ my ($pos) = @_;
+ sprintf "%20.6f %20.6f", $pos->get(0),$pos->get(1)
+}
+
sub write_face_edges() {
o("5 setlinewidth 1 setlinejoin\n");
foreach my $rr (values %region) {
# xxx ordering: must do all fills then all strokes
foreach my $vertex (@{ $rr->{Polygon} }) {
my $pos = $vertex->{Pos};
- # xxx break this out
- o(sprintf " %20.6f %20.6f %s\n", $pos->get(0),$pos->get(1), $xto);
+ o(sprintf " %s %s\n", psvec($pos), $xto);
$xto = 'lineto';
}
o(" closepath\n");