Descriptions and Examples for the POV-Ray Raytracerby Friedrich A. Lohmüller     POV-Ray Examples - How To Make Objects for POV-Ray
Italiano
Français
Deutsch

Home
- POV-Ray Tutorial
- POV-Ray Examples
Index of Content
- Geometry
- Architecture
- Engineering
- Pylons
- Railing
- Bridge
- Tubes
- Tube Fork
- Tube Stopcock
- Chain
- Torpedo
- Cruise Missile
- Rocket
- Wheel
- Truck
- Propeller
- 2. Motion Blur
- 3. Assembly
- Airplanes
- Canoe
- Guitar Body
- 7-Segment Display
- Ribbon Cable

Propeller

How to make a propeller with a variable number of blades.

A propeller with a variable number of blades.
To keep this construction as flexible as possible the angle of the propeller rotation is declared at the top of the following.
For animations it can be changed like this: "#declare Rotation_Angle = 360*clock;" With "Number_of_Blades" and the length of the blades "Blade_Radius", the dimensions of the propeller are easy to adapt to anything you want.

```#declare Rotation_Angle =  20;
// ------------------------------------ dimensions of the blades
// --------------------------------------- texture of the blades
texture { Chrome_Metal finish{ambient 0.1 diffuse 0.8 phong 1}}
// -------------------------------------------------------------
union{  // propeller -------------------------------------------
cylinder  { <0,0,-0.01>,<0,0,1.00>,0.10 }  // propeller axis
difference{                                 // propeller nose
sphere{<0,0,0>, 1}
box {<-1,-1,-0.1>,<1,1,1>}
scale <1,1,2.5>*0.3
translate<0,0,0.2>
}
#declare Nr = 0;
#while (  Nr < End)
sphere { < 0, 0, 0>,0.5
translate <0.5,0,0>
scale <1,0.15,0.04> rotate <10,0,0>
rotate< 0,0, 360/End * Nr >
}
#declare Nr = Nr + 1;
#end
} // end of union of the blades
translate <0,0,-0.5>
rotate <0,0,Rotation_Angle>
} // end of union propeller  ------------------------------------```

top
 © Friedrich A. Lohmüller, 2006 email: Friedrich.Lohmueller_at_t-online.de homepage:http://www.f-lohmueller.de