POV-Ray : Newsgroups : povray.general : Converter into Meshes : Re: Converter into Meshes Server Time
29 Jul 2024 18:30:16 EDT (-0400)
  Re: Converter into Meshes  
From: Sven Littkowski
Date: 24 Sep 2010 19:17:43
Message: <4c9d3197$1@news.povray.org>
Or, if anyone finds a way to export the source code below (POV-Ray scene 
language version 3.7) or the source code inside my previous posting in this 
thread (POV-Ray scene language version 2.2) to the current .3ds or .dxf file 
formats, I would appreciate this very much!

-----------------------------

#version 3.7;


camera {
 location < 0.0, 23.0, -50.0 >
 look_at < 0.0, 2.70, 0.0 >
}

light_source { < 1000.0, 2000.0, 1000.0 > rgb < 1.0, 1.0, 1.0 > }
light_source { < 1000.0, 2000.0, -1000.1 > rgb < 1.0, 1.0, 1.0 > }
light_source { < -1000.0, 2000.0, -1000. > rgb < 1.0, 1.0, 1.0 > }

#declare Radiosity=on;
#declare Photons=off;

global_settings
{
 assumed_gamma 1.0
 #if (Radiosity)
  radiosity
  {
   pretrace_start 0.04         // start pretrace at this size
   pretrace_end   0.04         // end pretrace at this size
   count 35                    // higher -> higher quality (1..1600) [35]
   nearest_count 5             // higher -> higher quality (1..10) [5]
   error_bound 1.8             // higher -> smoother, less accurate [1.8]
   recursion_limit 3           // how much interreflections are calculated 
(1..5+) [3]
   low_error_factor .5         // reduce error_bound during last pretrace 
step
   gray_threshold 0.0          // increase for weakening colors (0..1) [0]
   minimum_reuse 0.015         // reuse of old radiosity samples [0.015]
   brightness 1                // brightness of radiosity effects (0..1) [1]
   adc_bailout 0.01/2
   normal on                   // take surface normals into account [off]
   media on                    // take media into account [off]
   always_sample off           // turn sampling in final trace off [on]
   max_sample 1.0              // maximum brightness of samples
  }
 #end
 #if (Photons)
  photons
  {
   spacing 0.01                 // specify the density of photons
   media 0.5, 1.5  // media photons
   jitter 1.0                 // jitter phor photon rays
//   save_file "SL - SF - Shuttle 01.ptn"       // save photons to file
   load_file "SL Maglev Wind Turbine.ptn"       // load photons from file
//   steps 1
   expand_thresholds 0.2, 40
  }
 #end
}




#declare HeightOfBlades= 12.2;
#declare AngleOfWindCatchers_360= < 0.0, 0.0, 0.0 >;

#declare Fundament=texture { pigment { rgb < 0.4, 0.2, 0.1 > } finish { 
specular 1 roughness 0.0001 reflection 0.13 } }
#declare Building=texture { pigment { rgb < 1.0, 1.0, 1.0 > } finish { 
specular 1 roughness 0.0001 reflection 0.13 } }
#declare EntranceDoor=texture { pigment { rgb < 0.8, 0.4, 0.0 > } finish { 
specular 1 roughness 0.0001 reflection 0.13 } }
#declare StairsSection=texture { pigment { rgb < 1.0, 1.0, 1.0 > } finish 
{ specular 1 roughness 0.0001 reflection 0.13 } }
#declare WindBlades=texture { pigment { rgb < 0.7, 0.7, 1.0 > } finish { 
specular 1 roughness 0.0001 reflection 0.13 } }
#declare WindBladesDrives=texture { pigment { rgb < 0.0, 0.0, 0.0 > } finish 
{ specular 1 roughness 0.0001 reflection 0.13 } }
#declare WindCatchers=texture { pigment { rgb < 1.0, 1.0, 0.7 > } finish { 
specular 1 roughness 0.0001 reflection 0.13 } }
#declare WindCatcherFixtures=texture { pigment { rgb < 0.0, 0.5, 0.0 > } 
finish { specular 1 roughness 0.0001 reflection 0.13 } }
#declare RoofPlatform=texture { pigment { rgb < 1.0, 1.0, 1.0 > } finish { 
specular 1 roughness 0.0001 reflection 0.13 } }
#declare RoofDoor=texture { pigment { rgb < 0.5, 0.0, 0.0 > } finish { 
specular 1 roughness 0.0001 reflection 0.13 } }
#declare RoofReeling=texture { pigment { rgb < 1.0, 1.0, 0.0 > } finish { 
specular 1 roughness 0.0001 reflection 0.13 } }


#declare Base=object
{
 union
 {
  cylinder { < 0.0, -2.0, 0.0 > < 0.0, 0.0, 0.0 > 7.5 texture { 
Fundament } }
  cylinder { < 0.0, 0.0, 0.0 > < 0.0, 2.8, 0.0 > 5.0 texture { Building } }
  box { < -0.5, 0.0, -5.05 > < 0.5, 2.2, 0.0 > rotate < 0.0, 040.0, 0.0 > 
texture { EntranceDoor } }
 }
}

#declare Stairs=object
{
 cylinder { < 0.0, 2.8, 0.0 > < 0.0, (2.8+HeightOfBlades), 0.0 > 1.9 texture 
{ StairsSection } }
}

#declare Blade=object
{
 difference
 {
  cylinder { < 0.0, 0.0, 0.0 > < 0.0, HeightOfBlades, 0.0 > 3.0 }
  cylinder { < 1.1, -0.01, 0.0 > < 1.1, (HeightOfBlades+0.01), 0.0 > 4.0 }
 }
 translate < 2.8, 2.8, 0.0 >
 rotate < 0.0, 75.0, 0.0 >
 translate < -3.5, 0.0, 0.0 >
 texture { WindBlades }
}

#declare Turbine=object
{
 union
 {
  object { Blade rotate < 0.0, 000.0, 0.0 > }
  object { Blade rotate < 0.0, 036.0, 0.0 > }
  object { Blade rotate < 0.0, 072.0, 0.0 > }
  object { Blade rotate < 0.0, 108.0, 0.0 > }
  object { Blade rotate < 0.0, 144.0, 0.0 > }
  object { Blade rotate < 0.0, 180.0, 0.0 > }
  object { Blade rotate < 0.0, 216.0, 0.0 > }
  object { Blade rotate < 0.0, 252.0, 0.0 > }
  object { Blade rotate < 0.0, 288.0, 0.0 > }
  object { Blade rotate < 0.0, 324.0, 0.0 > }
  torus { 4.50, 0.05 translate < 0.0, 2.8, 0.0 > texture { 
WindBladesDrives } }
  torus { 2.75, 0.05 translate < 0.0, 2.8, 0.0 > texture { 
WindBladesDrives }  }
  torus { 4.50, 0.05 translate < 0.0, (2.8+HeightOfBlades), 0.0 > texture 
{ WindBladesDrives } }
  torus { 2.75, 0.05 translate < 0.0, (2.8+HeightOfBlades), 0.0 > texture 
{ WindBladesDrives }  }
 }
}

#declare WindCatcher=object
{
 union
 {
  torus { 5.0, 0.1 translate < 0.0, 2.8, 0.0 > texture { 
WindCatcherFixtures } }
  torus { 5.5, 0.1 translate < 0.0, 2.8, 0.0 > texture { 
WindCatcherFixtures } }
  torus { 5.0, 0.1 translate < 0.0, (2.8+HeightOfBlades), 0.0 > texture { 
WindCatcherFixtures } }
  torus { 5.5, 0.1 translate < 0.0, (2.8+HeightOfBlades), 0.0 > texture { 
WindCatcherFixtures } }
  box { < 5.0, 2.8, -0.05 > < 12.5, (2.8+HeightOfBlades), 0.05 > rotate < 
0.0, 000.0, 0.0 > texture { WindCatchers } }
  box { < 5.0, 2.8, -0.05 > < 12.5, (2.8+HeightOfBlades), 0.05 > rotate < 
0.0, 120.0, 0.0 > texture { WindCatchers } }
  box { < 5.0, 2.8, -0.05 > < 12.5, (2.8+HeightOfBlades), 0.05 > rotate < 
0.0, 240.0, 0.0 > texture { WindCatchers } }
  cylinder { < -5.5, 2.8, 0.0 > < -5.0, 2.8, 0.0 > 0.1 rotate < 0.0, 000.0, 
0.0 > texture { WindCatcherFixtures } }
  cylinder { < -5.5, 2.8, 0.0 > < -5.0, 2.8, 0.0 > 0.1 rotate < 0.0, 120.0, 
0.0 > texture { WindCatcherFixtures } }
  cylinder { < -5.5, 2.8, 0.0 > < -5.0, 2.8, 0.0 > 0.1 rotate < 0.0, 240.0, 
0.0 > texture { WindCatcherFixtures } }
  cylinder { < -5.5, (2.8+HeightOfBlades), 0.0 > < -5.0, 
(2.8+HeightOfBlades), 0.0 > 0.1 rotate < 0.0, 000.0, 0.0 > texture { 
WindCatcherFixtures } }
  cylinder { < -5.5, (2.8+HeightOfBlades), 0.0 > < -5.0, 
(2.8+HeightOfBlades), 0.0 > 0.1 rotate < 0.0, 120.0, 0.0 > texture { 
WindCatcherFixtures } }
  cylinder { < -5.5, (2.8+HeightOfBlades), 0.0 > < -5.0, 
(2.8+HeightOfBlades), 0.0 > 0.1 rotate < 0.0, 240.0, 0.0 > texture { 
WindCatcherFixtures } }
  cylinder { < -12.5, 2.8, 0.0 > < -5.0, 2.8, 0.0 > 0.1 rotate < 0.0, 060.0, 
0.0 > texture { WindCatcherFixtures } }   // Following the windcatcher's 
holds
  cylinder { < -12.5, 2.8, 0.0 > < -5.0, 2.8, 0.0 > 0.1 rotate < 0.0, 180.0, 
0.0 > texture { WindCatcherFixtures } }
  cylinder { < -12.5, 2.8, 0.0 > < -5.0, 2.8, 0.0 > 0.1 rotate < 0.0, 300.0, 
0.0 > texture { WindCatcherFixtures } }
  cylinder { < -12.5, (2.8+HeightOfBlades), 0.0 > < -5.0, 
(2.8+HeightOfBlades), 0.0 > 0.1 rotate < 0.0, 060.0, 0.0 > texture { 
WindCatcherFixtures } }
  cylinder { < -12.5, (2.8+HeightOfBlades), 0.0 > < -5.0, 
(2.8+HeightOfBlades), 0.0 > 0.1 rotate < 0.0, 180.0, 0.0 > texture { 
WindCatcherFixtures } }
  cylinder { < -12.5, (2.8+HeightOfBlades), 0.0 > < -5.0, 
(2.8+HeightOfBlades), 0.0 > 0.1 rotate < 0.0, 300.0, 0.0 > texture { 
WindCatcherFixtures } }
 }
 rotate AngleOfWindCatchers_360
}

#declare Platform=object
{
 union
 {
  cylinder { < 0.0, (2.8+HeightOfBlades), 0.0 > < 0.0, 
(3.30+HeightOfBlades), 0.0 > 5.0 texture { RoofPlatform } }
  cylinder { < 0.0, (2.8+HeightOfBlades+0.5), 0.0 > < 0.0, 
(2.8+HeightOfBlades+0.6), 0.0 > 1.5 texture { RoofDoor } }
  torus { 4.975, 0.025 translate < 0.0, (2.8+0.5+HeightOfBlades+0.34), 0.0 > 
texture { RoofReeling } }
  torus { 4.975, 0.025 translate < 0.0, (2.8+0.5+HeightOfBlades+0.67), 0.0 > 
texture { RoofReeling } }
  torus { 4.975, 0.025 translate < 0.0, (2.8+0.5+HeightOfBlades+1.0), 0.0 > 
texture { RoofReeling } }
  cylinder { < 4.975, 15.5, 0.0 > < 4.975, (2.8+0.5+HeightOfBlades+0.975), 
0.0 > 0.025 rotate < 0.0, 000.0, 0.0 > texture { RoofReeling } }
  cylinder { < 4.975, 15.5, 0.0 > < 4.975, (2.8+0.5+HeightOfBlades+0.975), 
0.0 > 0.025 rotate < 0.0, 036.0, 0.0 > texture { RoofReeling } }
  cylinder { < 4.975, 15.5, 0.0 > < 4.975, (2.8+0.5+HeightOfBlades+0.975), 
0.0 > 0.025 rotate < 0.0, 072.0, 0.0 > texture { RoofReeling } }
  cylinder { < 4.975, 15.5, 0.0 > < 4.975, (2.8+0.5+HeightOfBlades+0.975), 
0.0 > 0.025 rotate < 0.0, 108.0, 0.0 > texture { RoofReeling } }
  cylinder { < 4.975, 15.5, 0.0 > < 4.975, (2.8+0.5+HeightOfBlades+0.975), 
0.0 > 0.025 rotate < 0.0, 144.0, 0.0 > texture { RoofReeling } }
  cylinder { < 4.975, 15.5, 0.0 > < 4.975, (2.8+0.5+HeightOfBlades+0.975), 
0.0 > 0.025 rotate < 0.0, 180.0, 0.0 > texture { RoofReeling } }
  cylinder { < 4.975, 15.5, 0.0 > < 4.975, (2.8+0.5+HeightOfBlades+0.975), 
0.0 > 0.025 rotate < 0.0, 216.0, 0.0 > texture { RoofReeling } }
  cylinder { < 4.975, 15.5, 0.0 > < 4.975, (2.8+0.5+HeightOfBlades+0.975), 
0.0 > 0.025 rotate < 0.0, 252.0, 0.0 > texture { RoofReeling } }
  cylinder { < 4.975, 15.5, 0.0 > < 4.975, (2.8+0.5+HeightOfBlades+0.975), 
0.0 > 0.025 rotate < 0.0, 288.0, 0.0 > texture { RoofReeling } }
  cylinder { < 4.975, 15.5, 0.0 > < 4.975, (2.8+0.5+HeightOfBlades+0.975), 
0.0 > 0.025 rotate < 0.0, 324.0, 0.0 > texture { RoofReeling } }
 }
}

#declare Maglev=union
{
 object { Base }
 object { Stairs }
 object { Turbine }
 object { WindCatcher }
 object { Platform }
}

object { Maglev }


Post a reply to this message

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