POV-Ray : Newsgroups : povray.general : Height field to topographic map? : Re: Height field to topographic map? Server Time
19 Nov 2024 11:42:08 EST (-0500)
  Re: Height field to topographic map?  
From: Ron Parker
Date: 5 Mar 2002 10:14:11
Message: <slrna89o64.nvb.ron.parker@fwi.com>
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

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