Help for this page

Select Code to Download


  1. or download this
    [
      [[177, 518], [205, 353]],
    ...
      [[746, 269], [856, 312]],
      [[775, 555], [856, 312]],
    ]
    
  2. or download this
    sub edges2poly {
        my $edges = shift; ## Ref to the AoAoA above.
    ...
        ## return an AoA of just the required points for the bounding poly
    +gon.
        return( $edges->[ 0 ][ 0 ], map{ $_->[ 1 ] } @$edges );
    }
    
  3. or download this
    #! perl -slw
    use strict;
    ...
        }
        return( $edges->[ 0 ][ 0 ], map{ $_->[ 1 ] } @$edges );
    }