|
|
On Tue, 05 Mar 2002 09:59:02 +0200, Vahur Krouverk wrote:
> Mark Wagner wrote:
>>
>> I'm looking for a program that will take a heightfield image that I've
>> created and turn it into a contour map. I've found GRASS, but it seems a
>> bit overkill for the job, and it's a 17 MB download.
>>
> Won't POV-Ray be suitable? if you render heightfield orthographically
> from top and create texture map accordingly to height?
That technique has a tendency to make fat contour lines where the slope is
gentle.
I once wrote a program to do contour lines. Unfortunately, it belongs to
my former employer, so I can't help with actual code. As I recall, gnuplot
is able to do such a thing, though I don't remember off the top of my head
how it's done.
--
#macro R(L P)sphere{L __}cylinder{L P __}#end#macro P(_1)union{R(z+_ z)R(-z _-z)
R(_-z*3_+z)torus{1__ clipped_by{plane{_ 0}}}translate z+_1}#end#macro S(_)9-(_1-
_)*(_1-_)#end#macro Z(_1 _ __)union{P(_)P(-_)R(y-z-1_)translate.1*_1-y*8pigment{
rgb<S(7)S(5)S(3)>}}#if(_1)Z(_1-__,_,__)#end#end Z(10x*-2,.2)camera{rotate x*90}
Post a reply to this message
|
|