Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Better maps with Math::Geometry::Voronoi, (Working* code)

by BrowserUk (Patriarch)
on Jul 03, 2008 at 07:50 UTC ( [id://695306]=note: print w/replies, xml ) Need Help??

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 );
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://695306]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-19 13:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found