POV-Ray : Newsgroups : povray.general : POV File I/O : POV File I/O Server Time
5 Aug 2024 02:16:38 EDT (-0400)
  POV File I/O  
From: Niytaan
Date: 23 Dec 2002 20:35:22
Message: <3e07b9da@news.povray.org>
I guess this would be the best place for this:

How do you think I should go about getting the following lines to output to
a .pov file with indents?

#declare TriBegin="triangle{\n";
#declare TriMid=",\n";
#declare TriEnd="}\n";
#fopen Mesh "mesh.pov" append

#declare P1=<0,0,0>;
#declare P2=<0,0,0>;
#declare P3=<0,0,0>;

#write(Mesh,TriBegin,P1,TriMid,P2,TriMid,P3,TriEnd)
#ifdef(Mesh)
#fclose Mesh
#end

I want that code to output as

triangle{
    <0,0,0>,
    <0,0,0>,
    <0,0,0>
}

but instead it comes out as

triangle{
<0,0,0> ,
<0,0,0> ,
<0,0,0>
}

I have this dreadful feeling that what I want to do is impossible without
writing my own patch for the problem since I've tried several ways to do
this already. Thanks ahead of time to anyone who can help. :)


Post a reply to this message

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