See also entry in DESCRIPTION file
Usage: pro2pov files
pro2pov converts a .slp render file to a POV-Ray .pov file.
POV-Ray is a freeware rendering program available at the official
ftp site ftp.povray.org.
All colors are converted to a texture with a metallic finish.
If the last facet is empty it will be deleted (this is common
with Pro/E).
You can create Pro/E render files thru #interface #export #render.
This is part of the Pro/INTERFACE module.
options: -h => this help screen
-m => use internal model name
-c => assign one color (the first found)
to every facet
-n => do NOT assign a metallic finish to
the texture
-f FINISH => assign finish FINISH to all textures.
Example:
This script will create a povray file with the following
structure (where [modelname] is the name of the .slp file):
#declare Pro_[modelname]_1 = texture {pigment{color red .. green .. blue .. }finish{Metal}}
#declare [modelname]_model =
object { // Pro/ENGINEER defined geometry
union {
smooth_triangle{
... [smooth triangle coordinates]
texture {Pro_[modelname]_1}
}
... [more smooth triangles]
}
}
To include this model in your scene file add the lines:
#include "[modelname].pov"
object { [modelname]_model }
BUGS: Do not include the minus sign in your model names. POV-Ray cannot
handle them.
Author: Olaf Corten, the Netherlands
E-Mail: olafc@molding.fico.nl or ocorten@knoware.nl
Original script written by Korhan Tekin (korhan@ix.netcom.com)
################################################################################
# History:
# 19990219 Changed SCRIPTS_DIR extraction.
# 19970905 Fixed internal colornames (c_..) not changing.
# 19970904 Fixed bug: \ in front of texture name for non-SGI machines.
# 19960723 Changed SCRIPTS_DIR setting.
# 19960220 Fixed removal of temporary .sed files.
# 19960116 Fixed several bugs introduced in dec. 95 version.
# 19951211 Added FINISH option.
# 19951206 Added commandline help and included sed and awk scripts.
# Added -m, -c and -n options.
# Last facet will be deleted if it is empty.
# 19951124 Changed Pro_color.. to Pro_[modelname]..
#
# Original script written by Korhan Tekin (korhan@ix.netcom.com), 22-Jul-95
# Permission to distribute freely given under the freeware software license
# agreement.
#
################################################################################
|