###### 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
- House
- House part 2
- House part 3
- Roof
- Tower
- Castle
- Window + Door
- Stairs
- Pyramid
- Columns
- Arch
- Fences
- Furnitur
- Household
- Engineering

# House - part 1

###### The Construction of a House (Basic house shape). To keep this construction as flexible as possible we declare all important dimensions of the house as variables (see the first image). For easy changing of the roof angle it is also declared separately. This angle is used at many locations in the construction: by cutting off the gable from the walls as well as during the positioning of the parts of the roof. An include file to use this object as a read-made object you can find at my POV-Ray Objects page.
 ```// the dimensions of the house: #declare Hx = 2.00; // half width in x #declare Hy = 3.50; // total height #declare Hz = 4.00; // length in z #declare Roof_Angle = 38; // Dachwinkel #declare Wall_D = 0.20; // thickness //-------------------------------------```

#### The gable by subtraction of two planes:

###### The walls are made by a box with the outlines of the house. From this box we subtract two planes (more precisely: half-spaces) sloped in roof angle and moved to the top of the house to cut away the walls at the gable.
 ```// The house shape // with the gable cut out difference{ //------------------------- box{ <-Hx,0,0>,< Hx,Hy,Hz> texture{ pigment{color rgb<1,1,1>} finish {diffuse 0.9} } // end of texture } // end of box -------------------- plane{<0,-1,0>,0 texture{ pigment{color rgb<1,1,1>} finish {diffuse 0.9} } // end of texture rotate<0,0,Roof_Angle> translate<0,Hy,0> }// end of plane ------------------ plane{<0,-1,0>,0 texture{ pigment{color rgb<1,1,1>} finish {diffuse 0.9} } // end of texture rotate<0,0,-Roof_Angle> translate<0,Hy,0> }// end of plane ------------------ }// end of difference ----------------- //--------------------------------- end```

##### Ready-made POV-Ray objects as include files and example files you'll find at the POV-Ray Objects Page
top

 © Friedrich A. Lohmüller, 2006 www.f-lohmueller.de