POV-Ray : Newsgroups : povray.general : pov2 html on-line : Re: pov2 html on-line Server Time
6 Aug 2024 19:25:20 EDT (-0400)
  Re: pov2 html on-line  
From: ingo
Date: 20 Mar 2002 10:50:29
Message: <Xns91D7ABAE9D960seed7@povray.org>
in news:3c988556@news.povray.org Gleb wrote:

>> It does not deal with nested multiline comments in the right way.
> What do you mean "the right way"? It seems that POV doesn't support
> nested multiline comments.

Ah, I assumed that because the POV-Ray parser deals with nested multi-
line comments the code coloring would do also. Wrong assumption. Yet I 
think it is more elegant when colorizer deals with it.
 
>> It has sometimes problems with the {}
> Example, please, if possible.

Try the piece of code below. It produces black {} inside the macro. It 
produces black }{ after T_Wood7 and T_Wood14.

---%<------%<---
#macro Ring (Rin,Rout,Height) 
   difference { 
      cylinder {<0,(-Height/2),0>,<0,Height/2,0>, Rout} 
      cylinder {<0,(-Height/1.99),0>,<0,Height/1.99,0>, Rin} 
   } 
#end //macro  

      texture {T_Wood7}   
      normal {     
         wood 0.03 
         scale <0.075, 0.075, 1> 
         turbulence 0.065 
         omega 0.45 
         lambda 2.3 
         rotate x*4  
      } 

   merge { 
      difference { 
         object { 
            Ring(0.561,0.59,0.3)  
            rotate <0,0,90> 
         } 
         box{<-1.2,-1,-1>,<1.2,0,1>} 
         box{<-1.2,-1,-1>,<1.2,1,0>} 
      } 
      box{<-0.15,0.56,-0.8>,<0.15,0.59,0>} 
      translate <0.95,0,0> 
      texture {T_Wood14} 
   } 
    
   merge { 
      difference { 
         object { 
            Ring(0.561,0.59,0.3)  
            rotate <0,0,90> 
         } 
         box{<-1.2,-1,-1>,<1.2,0,1>} 
         box{<-1.2,-1,-1>,<1.2,1,0>} 
      } 
      box{<-0.15,0.56,-0.8>,<0.15,0.59,0>} 
      translate <-0.95,0,0> 
      texture {T_Wood14} 
   } 
---%<------%<---

Ingo


Post a reply to this message

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