POV-Ray : Newsgroups : povray.general : What is the PovWin editor's line length limit? Server Time
1 Nov 2024 21:20:21 EDT (-0400)
  What is the PovWin editor's line length limit? (Message 1 to 10 of 10)  
From: Brian Elliott
Subject: What is the PovWin editor's line length limit?
Date: 4 Jul 2004 05:10:20
Message: <40e7c97c@news.povray.org>
Hi all,

I had a first-time fiddle with Wings-3D this afternoon to see what it's all
about, and I exported the first object played with to a PoV-Ray mesh2 -
using a bolt-on POV export plug-in.

When the .pov file was loaded into PovRay exactly as written by the
exporter, every mesh2 clause - ie. vertex_vectors, normal_vectors,
face_indices, etc - was a long SINGLE line extending to somewhat over 3,000
characters each.

Now, the long lines DID load without truncation or error.  The language
engine couldn't colour-code keywords on the long lines, but that was
trivially solved by manually breaking it up with linefeeds.

However this model is a fairly modest mesh - 105 vertex vectors, 206 face
indices of a "played-with" dodecahedron.  With a complex mesh2, one line
could run to tens of thousands of characters.

SO...  Given I cannot make this plug-in from Wings-3D insert frequent LFs,
and wondering if manual text filtering could be necessary; What is the
editor's line length limit?

Cheers,
    Brian


Post a reply to this message

From: Christoph Hormann
Subject: Re: What is the PovWin editor's line length limit?
Date: 4 Jul 2004 05:45:02
Message: <cc8jf3$om3$1@chho.imagico.de>
Brian Elliott wrote:
> Hi all,
> 
> I had a first-time fiddle with Wings-3D this afternoon to see what it's all
> about, and I exported the first object played with to a PoV-Ray mesh2 -
> using a bolt-on POV export plug-in.
> 
> When the .pov file was loaded into PovRay exactly as written by the
> exporter, every mesh2 clause - ie. vertex_vectors, normal_vectors,
> face_indices, etc - was a long SINGLE line extending to somewhat over 3,000
> characters each.

You should notice a few things.

- POV-Ray does not care about the line endings, if the WinPOV editor has 
trouble with them this is a completely different issue.
- you can of course easily add line endings anywhere a whitespace occurs 
in the file without affecting POV-Ray's ability to interpret the script. 
  A 'sed "s? ?\n?g"' would for example replace every space with a newline.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 01 May. 2004 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Apache
Subject: Re: What is the PovWin editor's line length limit?
Date: 4 Jul 2004 07:33:09
Message: <40e7eaf5$1@news.povray.org>
He'll have to install cygwin to do that. :)


Post a reply to this message

From: Brian Elliott
Subject: Re: What is the PovWin editor's line length limit?
Date: 4 Jul 2004 08:05:34
Message: <40e7f28e$1@news.povray.org>
"Christoph Hormann" <chr### [at] gmxde> wrote in message
news:cc8jf3$om3$1@chho.imagico.de...
> You should notice a few things.
>
> - POV-Ray does not care about the line endings, if the WinPOV editor has
> trouble with them this is a completely different issue.
> - you can of course easily add line endings anywhere a whitespace occurs
> in the file without affecting POV-Ray's ability to interpret the script.
>   A 'sed "s? ?\n?g"' would for example replace every space with a newline.

Thanks Christoph,

Yep, I am aware that the SDL interpreter [forgive me if incorrect
terminology] sees whitespace characters space, tab and \n as interchangeable
between tokens.

Still wondering about the WinPov editor though.  I could try to break it to
find out.  Curiously, this Wings exporter produces tightly-packed vectors -- 
not one space in the entire line, neither inside nor between vectors.
Still, />,/>,\n/g is a trivial regular expression replacement.

Maybe it's time to get Cygwin on this PC, as there are no RE filters like
sed on WinXP.

However, and I may be wrong, but I thought even sed under *NIX has a line
length limit, because it and other editors would be restricted by whatever
the limits.h source file set at compile time for line buffering, and sed
does track line numbers of the input file.

Brian


Post a reply to this message

From: Brian Elliott
Subject: Re: What is the PovWin editor's line length limit?
Date: 4 Jul 2004 08:10:13
Message: <40e7f3a5$1@news.povray.org>
"Apache" <apa### [at] hotmailcom> wrote in message
news:40e7eaf5$1@news.povray.org...
> He'll have to install cygwin to do that. :)

Funny you mentioned that...  I just said it myself too!  :-D

Well, I do at least need an X-Windows client on my home PC to run work's
host apps when I'm working from home - namely HP Omniback II, so it oughta
be worth it.

Brian


Post a reply to this message

From: Brian Elliott
Subject: Re: What is the PovWin editor's line length limit?
Date: 4 Jul 2004 10:18:56
Message: <40e811d0@news.povray.org>
"Brian Elliott" <bel### [at] gilcomau> wrote in message
news:40e7f28e$1@news.povray.org...
> Still wondering about the WinPov editor though.  I could try to break it
to
> find out.

Well, the editor handles at least 22,695 characters in a single line.  Not
broken it yet!  :-)


Post a reply to this message

From: ingo
Subject: Re: What is the PovWin editor's line length limit?
Date: 4 Jul 2004 11:36:18
Message: <Xns951CB31BA78F8seed7@news.povray.org>
in news:40e7f28e$1@news.povray.org Brian Elliott wrote:

> Maybe it's time to get Cygwin on this PC, as there are no RE filters
> like sed on WinXP.
> 

No, you don't need that,

http://gnuwin32.sourceforge.net/packages.html


Ingo


Post a reply to this message

From: "Jérôme M. Berger"
Subject: Re: What is the PovWin editor's line length limit?
Date: 4 Jul 2004 14:14:35
Message: <40e8490b@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Apache wrote:
| He'll have to install cygwin to do that. :)
|

	In fact, no... He can get the Unixutils package here:
http://unxutils.sourceforge.net/ and this doesn't have any particular
dependencies.

		Jerome
- --
******************************
*      Jerome M. Berger      *
* mailto:jbe### [at] ifrancecom *
*  http://jeberger.free.fr/  *
******************************
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA6EjLqIYJdJhyixIRAiy9AJ4wVeK5dpu2DEq0abZH5bG04swLpQCgp54K
0WuhvnL0YdoDYQLjIgLp4PE=
=S7m9
-----END PGP SIGNATURE-----


Post a reply to this message

From: Apache
Subject: Re: What is the PovWin editor's line length limit?
Date: 4 Jul 2004 18:44:06
Message: <40e88836$1@news.povray.org>
Thanks. I already thought of this but I didn't remember where and what is
was.


Post a reply to this message

From: Brian Elliott
Subject: Re: What is the PovWin editor's line length limit?
Date: 5 Jul 2004 02:20:40
Message: <40e8f338$1@news.povray.org>

chance.  I'm not ruling out Cygwin either, because some of my team use it at
work for X-Windows on Wintel desktop.  That may be overkill, so thanks for
these links...

Brian


Post a reply to this message

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