POV-Ray : Newsgroups : povray.general : Interlocking Heightfields. : Re: Interlocking Heightfields. Server Time: 24 Jul 2008 13:33:03 GMT
  Re: Interlocking Heightfields.  
From: Thomas de Groot
Date: 12 May 2008 12:24:56
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 1991-2004 POV-Team™