POV-Ray : Newsgroups : povray.binaries.images : Help I need it : Re: Help I need it- okay, here it is Server Time
16 Aug 2024 06:15:39 EDT (-0400)
  Re: Help I need it- okay, here it is  
From: Sir Charles W  Shults III
Date: 14 Mar 2002 23:51:45
Message: <3c917de1@news.povray.org>
Oh, yes- once you scale the octahedron at 1.414*y, since it is perfectly
symmetrical, you can then use one more cube and trim it into a perfect
cuboctahedron like this:

// start of POV code

#declare octahedron = intersection {
  object {box{<-2,-1,-1>, <2,1,1>} rotate 45*x}
  object {box{<-1,-1,-2>, <1,1,2>} rotate 45*z}
  pigment {color Green}
  finish {roughness .1 specular .1}
}

object {intersection {
  object {octahedron scale 1.414*y }
  object {box{-1, 1} rotate 45*y pigment {color Green} finish {roughness .1
specular .1} }
} }

// end of POV code

  Note the attached image.

Cheers!

Chip Shults
My robotics, space and CGI web page - http://home.cfl.rr.com/aichip


Post a reply to this message


Attachments:
Download 'Octahedr.jpg' (8 KB)

Preview of image 'Octahedr.jpg'
Octahedr.jpg


 

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