On Mon, Oct 7, 2013 at 9:23 PM, Kevin Smith <[email protected]> wrote:

> A poisson disc distribution would probably look nicer than either jittered
> grid or purely random points.  There's an interesting algorithm for
> generating poisson disc point sets really fast using Wang Tiles
> http://johanneskopf.de/publications/blue_noise/
>

The random position generator is factored out in inteface plus separate
classes, are you interested in trying to implement
a possoid disc based one?

The objective is to generate a random distribution of points inside the
tile that will be then provided to TexturePaint for
filling polygons. The interface to implement is simple:

interface PositionSequence {
        Position getNextPosition();
        void lastPositionResults(boolean conflict);
    }


The first method returns a x,y,rotation, the second one is called back to
notify the generator whether the generated position
was used, or stumbled into another alrady painted symbol.
You can find everything inside the RandomFillBuilder class, in the GeoTools
render module.

Cheers
Andrea

-- 
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to