chiark / gitweb /
move into misc-data.pl: PA_Outercoast_Vertices Noorderzijlvest
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 10 Mar 2019 19:42:46 +0000 (19:42 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 10 Mar 2019 20:48:16 +0000 (20:48 +0000)
NFC

generate-board
misc-data.pl

index 0568e717fe07d4ce2fd156be11ba9f1a9a34ec4b..b48f8bc2d8be1018e544d6053644dfac09461114 100755 (executable)
@@ -281,9 +281,11 @@ sub adjust_sea() {
       my $dout = $$posk - $$posj;
       #print STDERR " sea adj j=$ej ",prvec($$posj)," $poly->[$ej]{VxName}\n";
       #print STDERR " sea adj k=$ek ",prvec($$posk)," $poly->[$ek]{VxName}\n";
-      if ($poly->[$ej]{VxName} =~ /Noorderzijlvest/) {
-       #print STDERR " sea adj extra\n";
-       $$posk = $$posj + 10 * mkvec(100,-50);
+      foreach my $paocv (@{ $c{PA_Outercoast_Vertices} }) {
+       if ($poly->[$ej]{VxName} =~ m{$paocv->{Re}}) {
+         #print STDERR " sea adj extra\n";
+         $$posk = $$posj + 10 * &mkvec(@{ $paocv->{PA} });
+       }
       }
       $$posj = $$posj + $dleft + $dout*10;
       $$posk = $$posk          + $dout*10;
index 3c7379cabcd400ffde645d7dff43e04335291a11..f15b60526b6e5982d4268bb430fb30e6435765ef 100644 (file)
@@ -64,4 +64,7 @@ END
  PA => {
    OuterCoastDelta => [ -1000, 0 ],
  },
+ PA_Outercoast_Vertices => [
+   { Re => qr{Noorderzijlvest}, PA => [ 100,-50 ] },
+ ],
 );