POV-Ray : Newsgroups : povray.binaries.images : Strange Artifacts : Re: Strange Artifacts Server Time
30 Jul 2024 18:23:10 EDT (-0400)
  Re: Strange Artifacts  
From: Jörg 'Yadgar' Bleimann
Date: 2 Oct 2011 06:45:17
Message: <4e8840bd$1@news.povray.org>
Am 02.10.2011 00:44, schrieb clipka:

>
>> Now the result is the same like with my original version (see
>> attachment)...
>
> I can't help but think that the torus and cylinder ends might be bogus.
>
> Do you have some code for me to toy around with?

O.k., here it is:

#declare rfh = 1; // Roof railing total height
#declare ur = 0.025; // Upper rail radius
#declare or = 0.018; // Other rails' radius
#declare pr = 0.018; // Railing post radius
#declare cp = 0.08;  // Rail cornerpieces' radius
#declare fh = 0.02;  // Railing post foot height
#declare fpr = 0.005; // Railing post foot outer rounding radius
#declare jlt = 0.012; // Railing middle join loop thickness
#declare jlr = 0.005; // Railing middle join loop outer rounding radius
#declare jlw = 2*(jlr+pr); // Railing middle join loop width
#declare mr = 2;      // Number of middle rails
#declare rvsp = rfh/(mr+1); // Vertical spacing of rails

#declare F_Shiny =
finish
{
   diffuse 1
   brilliance 0.6
   specular 0.8
   roughness 0.05
}

#declare T_Red_Metal =
texture
{
   pigment { color rgb <0.8, 0, 0> }
   finish { F_Shiny }
}



   cylinder
   {
     <2.1+cp, sh+2*rfh/(mr+1), 4.1>, <4.9, sh+2*rfh/(mr+1), 4.1>, or
     texture { T_Red_Metal }
   }

   sphere
   {
   // sqrt(sqr(3.6)-sqr(0.1))
   // <4.9+(3.6-cos(atan(0.1/3.6))*3.6), sh+rfh/(mr+1), 4.1>, or
     <4.9+(3.6-sqrt(pow(3.6, 2)-pow(0.1, 2))), sh+rfh/(mr+1), 4.1>, or
     texture { T_Red_Metal }
   }

   difference // ground floor round cutout railing, lower rail
   {
     torus
     {
       3.6, or
     }
     box
     {
       <0, -(or+df), -(3.6+or+df)>, <3.6+or+df, or+df, 3.6+or+df>
     }
     box
     {
       <-(3.6+or+df), -(or+2*df), -(3.6+or+2*df)>, <3.6+or+2*df, or+2*df, 0>
       rotate <0, degrees(atan(0.1/3.5)), 0>
     }
     translate <8.5, sh+rfh/3, 4>
     texture { T_Red_Metal }
   }

See you in Khyberspace!

Yadgar


Post a reply to this message

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