File:Barbell POV-Ray.png

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Barbell_POV-Ray.png(573 × 186 pixels, file size: 13 KB, MIME type: image/png)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description
English: A rendering of a barbell
Date
Source Own work
Author Kostmo

Source code[edit]

// Author: Karl Ostmo
// Date: 2/13/2011
// Version: 1.0
//
// Units in inches
// Sky include obtained from:
// http://povray.tashcorp.net/library/sky_sphere/realskies.inc

#include "colors.inc"
#include "textures.inc"
#include "metals.inc"
#include "realskies.inc"
 
#declare camera_pos = 60;
#declare bar_length = 84;	// 7 Feet
#declare half_bar_length = bar_length/2;

#declare grip_offset = 6;

#declare plate_annulus_radius = 1.5;
#declare flange_radius = 1.5*plate_annulus_radius;
#declare bar_radius = plate_annulus_radius/2;
#declare flange_length = 2;
#declare plate_extension_length = 18;
#declare grip_length = 6;

#declare flange_start = half_bar_length - (flange_length + plate_extension_length);

camera {
	location <-camera_pos/5, -camera_pos, 3/4*camera_pos>
	look_at 0
}

plane {
	<0, 0, 1>, -flange_radius
	pigment {
		White
	}
}

light_source {
	<0, 0, 20*camera_pos>
	color 1.4*White
}

sky_sphere {
    sky_realsky_04
}

#declare half_shape = merge {

	merge {

		cylinder {
			0, x*grip_offset, bar_radius
		}

		cylinder {
			x*(grip_offset + grip_length), x*flange_start, bar_radius
		}

		pigment {
			Gray45
		}
	}

	// Grip
	cylinder {
		x*grip_offset, x*(grip_offset + grip_length), bar_radius

		pigment {
			Gray70
		}
	}

	merge {

		cylinder {
			x*flange_start, x*half_bar_length, plate_annulus_radius
		}

		// Flange
		cylinder {
			x*flange_start, x*(flange_start + flange_length), flange_radius
		}

		texture {T_Silver_4E}
	}
}

merge {
	object{
		half_shape
		scale -1*x
	}

	object{ half_shape }
}

Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following licenses:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported 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.
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.
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
current07:32, 14 February 2011Thumbnail for version as of 07:32, 14 February 2011573 × 186 (13 KB)Kostmo (talk | contribs){{Information |Description ={{en|1=A rendering of a barbell}} |Source ={{own}} |Author =Kostmo |Date =2011-02-13 |Permission = |other_versions = }} Category:Exercise equipment

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file: