POV-Ray : Newsgroups : povray.text.scene-files : Cinder Block (full and half size) : Cinder Block (full and half size) Server Time
28 Jul 2024 18:20:24 EDT (-0400)
  Cinder Block (full and half size)  
From: Bob Hughes
Date: 20 Aug 1999 05:41:15
Message: <37bd22bb@news.povray.org>
/* Cinder Block (measured from real one, though not guaranteed
accurate */
#declare CinderBlock=
difference {
 box {-1,1 scale <15.5,7.36,7.36>/2}
 superellipsoid {<.4,.4> scale <3,4.5,2.67> translate -3.45*x}
 superellipsoid {<.4,.4> scale <3,4.5,2.67> translate 3.45*x}
/* uncomment the following two lines for end indentations, otherwise
makes corner block */
 superellipsoid {<.4,.4> scale <1,5,2.5> translate -8.25*x}
 superellipsoid {<.4,.4> scale <1,5,2.5> translate 8.25*x}

  pigment {granite frequency 8 color_map {
                [.2 color rgb .75]
                [.7 color rgb .9]
  } triangle_wave }
   normal {granite -.1 frequency 8 triangle_wave}
    finish {ambient .15 diffuse .7 specular .05 roughness .5}
}

object {CinderBlock} /* actual object */

#declare CinderBlockHalf=  /* the Half Block variety */
difference {
 box {-1,1 scale <15.5,7.36,7.36>/2}
 superellipsoid {<.4,.4> scale <3,4.25,2.25> translate -3.45*x}
 superellipsoid {<.4,.4> scale <3,4.25,2.25> translate 3.45*x}

  pigment {granite frequency 8 color_map {
                [.2 color rgb .75]
                [.7 color rgb .9]
  } triangle_wave }
   normal {granite -.1 frequency 8 triangle_wave}
    finish {ambient .15 diffuse .7 specular .05 roughness .5}
 scale <1,1,.5>
}

object {CinderBlockHalf} /* actual object */


/*Bob*/


--
omniVERSE


Post a reply to this message

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