POV-Ray : Newsgroups : povray.binaries.images : Voronoi pattern - attached files (1/1) : Re: Voronoi pattern - attached files (1/1) Server Time
14 Nov 2024 16:27:48 EST (-0500)
  Re: Voronoi pattern - attached files (1/1)  
From: Christopher James Huff
Date: 26 Dec 2003 11:25:01
Message: <cjameshuff-A38EB9.11250626122003@netplex.aussie.org>
In article <3febc82e@news.povray.org>, Jim Charter <jrc### [at] msncom> 
wrote:

> Looks very exciting.  What are the options for specifyimg points?  Could 
> the vertices of a mesh be used for instance?

You either specify point vectors or float-vector pairs. If the latter, 
the result is similar to crackle with the solid feature turned on, 
except that it uses the specified value for that cell rather than a 
pseudo-random one. The points can be whatever you want...mesh vertices 
would work, but you would have to extract the actual vertex locations.

voronoi {
    offset FLOAT
    form FLOAT
    metric FLOAT (actually a vector, but only the x component is used)

    POINTS
}

POINTS:
    VECTOR,
    VECTOR,
    VECTOR...
or:
    [FLOAT VECTOR]
    [FLOAT VECTOR]
    [FLOAT VECTOR]

You must specify at least 3 points, but that is the only restriction.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.