POV-Ray : Newsgroups : povray.advanced-users : Re: mesh compressor settings for batch Server Time
29 Jul 2024 08:12:53 EDT (-0400)
  Re: mesh compressor settings for batch (Message 1 to 2 of 2)  
From: Warp
Subject: Re: mesh compressor settings for batch
Date: 7 Nov 2002 10:48:37
Message: <3dca8b55@news.povray.org>
S <sha### [at] nocannedhamactivech> wrote:
> what would the command line string for Warp's mesh compressor to handle a
> bunch of inc files?

> "C:\meshcomp *.inc *.pcm"         would be the direction of what I need.

> Compress a directory full of mesh include files.

  The program supports converting just one file at a time. If you want
to automatize converting several files, you'll have to resort to any tools
your OS offers you.
  In a Unix shell it would be a command like this:

for F in *.inc; do meshcomp $F $F.pcm; done

(of if you don't like the files named in the form 'file.inc.pcm' but would
like them to be named like 'file.pcm', you'll have to use a bit more
complicated command, like:
for F in *.inc; do meshcomp $F `basename $F .inc`.pcm; done
)

  However, from your question I deduce that you are using Windows. If you
have the command-line version of the program, you can do something like this
in the DOS-prompt:

for %%F in (*.inc) do meshcomp %%F %%F.pcm

(It will create files with the form 'file.inc.pcm', and I don't know if
it can be made to create them otherwise.)

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: S
Subject: Re: mesh compressor settings for batch
Date: 8 Nov 2002 00:22:09
Message: <3dcb4a01@news.povray.org>
Warp,

Thanks, have forgotten about good DOS tricks.  Appreciate it.

Shaw


Post a reply to this message

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