POV-Ray : Newsgroups : povray.general : Interlocking Heightfields. : Re: Interlocking Heightfields. Server Time
30 Jul 2024 22:21:05 EDT (-0400)
  Re: Interlocking Heightfields.  
From: Thomas de Groot
Date: 12 May 2008 08:24:56
Message: <48283718$1@news.povray.org>
Hmmm... Here is a solution. However, there is a problem I had not foreseen. 
While the joining edges are perflectly parallel to each other, the adjoining 
surfaces make a sharp angle in some places. I wonder how to solve that...

Here is a little bit of code:

#declare HF01 =
height_field {
  function 100, 100 {pattern {spotted scale 0.3 rotate -90*x}}
  smooth
  translate <-0.5,-0.5,-0.5>
  scale <30,5,30>
}

#declare HF02 =
object {HF01
  scale <1,1,-1>
  translate 30*z
}

#declare HF03 =
object {HF01
  scale <-1,1,1>
  translate 30*x
}

union {
  object {HF01 pigment {Red}}
  object {HF02 pigment {Green}}
  object {HF03 pigment {Yellow}}
  translate -15*x
}


Post a reply to this message

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