File:Raytraced ball and stick model of an icosahedron.png

Original file(4,000 × 3,000 pixels, file size: 1.26 MB, MIME type: image/png)

Captions

Captions

Add a one-line explanation of what this file represents

Summary edit

Description
English: A raytraced ball and stick model of an icosahedron, made with POV-Ray.
Date
Source Own work
Author Prateek Karandikar

Source Code edit

The include file vert_edge.inc:

#declare SteelBall = sphere{
	0 , 0.2
	texture{
		pigment{color rgb <224/255, 223/255, 219/255>}
		finish{
			reflection 0.7
			diffuse 0.5
			specular 1
			roughness 0.005
			metallic
		}
	}
	photons{
		target
		reflection on
		refraction on
	}
}

#macro Rod(End1, End2, Col)
cylinder{
	End1, End2, 0.1
	texture{
		pigment{Col}
	}
}
#end

The main source:

#include "colors.inc"
#include "vert_edge.inc"

#declare phi = (1+sqrt(5))/2;
 
camera{
	location -15*z
	look_at 0
	angle 25
}

light_source{
	<-5,5,-5>
	White
	area_light
	0.3*y, 0.3*z, 15,15
	adaptive 2
	photons{
		reflection on
		refraction on
	}
}

light_source{
	<5,5,-5>
	White
	area_light
	0.3*y, 0.3*z, 15,15
	adaptive 2
	photons{
		reflection on
		refraction on
	}
}

light_source{
	0
	0.4*White
	photons{
		reflection on
		refraction on
	}
}

#macro EdgeGroup(One, Zero, Phi, Col) //One, Zero, and Phi should all be unit vectors
	Rod(One + phi*Phi, -One + phi*Phi, Col)
	Rod(One + phi*Phi, phi*Zero + Phi, Col)
	Rod(-One + phi*Phi, phi*Zero + Phi, Col)
	Rod(One + phi*Phi, -phi*Zero + Phi, Col)
	Rod(-One + phi*Phi, -phi*Zero + Phi, Col)
#end

union{
	//3 groups each of 4 vertices, the vertices of a rectangle
	object{SteelBall translate <1,0,phi>}
	object{SteelBall translate <-1,0,phi>}
	object{SteelBall translate <1,0,-phi>}
	object{SteelBall translate <-1,0,-phi>}
	
	object{SteelBall translate <0,phi,1>}
	object{SteelBall translate <0,phi,-1>}
	object{SteelBall translate <0,-phi,1>}
	object{SteelBall translate <0,-phi,-1>}
	
	object{SteelBall translate <phi,1,0>}
	object{SteelBall translate <phi,-1,0>}
	object{SteelBall translate <-phi,1,0>}
	object{SteelBall translate <-phi,-1,0>}
	
	//6 groups each of 5 edges. A short edge of a rectangle, and the edges of the two triangular faces it is a part of.
	EdgeGroup(x,y,z, Green)
	EdgeGroup(x,y,-z, Red)
	EdgeGroup(y,z,x, Blue)
	EdgeGroup(y,z,-x, Yellow)
	EdgeGroup(z,x,y, Orange)
	EdgeGroup(z,x,-y, Med_Purple)
	rotate <15,15,15>
}

global_settings{
	max_trace_level 20
	photons{count 100000}
	radiosity{recursion_limit 10}
}

Licensing edit

I, the copyright holder of this work, hereby publish it under the following licenses:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International, 3.0 Unported, 2.5 Generic, 2.0 Generic and 1.0 Generic license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
You may select the license of your choice.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current13:43, 16 December 2010Thumbnail for version as of 13:43, 16 December 20104,000 × 3,000 (1.26 MB)Kprateek88 (talk | contribs){{Information |Description={{en|1=A raytraced ball and stick model of an icosahedron, made with POV-Ray.}} |Source=Own work |Author=Prateek Karandikar |Date=2010-12-06 |Permission= |other_versions= }} Category:Icosahedron [[Category:Created with Pers

There are no pages that use this file.