Content-type: text/html
illegal2vrml
read the file
protofile.wrl
which should contain such EXTERNPROTOs.
The names of the EXTERNPROTOs should start with the same prefix.
The prefix is needed to deal with additional illegal field names
in valid VRML97 nodes.
In the next step
illegal2vrml
read the file
file.wrl
and replace all node names which are identical to the EXTERNPROTOs
without the prefix with the names of the EXTERNPROTOs (with the prefix).
In the last step, the result is written to standard output.
set the name of the prefix of the EXTERNPROTOs. If this option is not used, the prefix is calculated from the proto names in protofile.wrl
Imagine a VRML97 file with a illegal extension to the WorldInfo node
WorldInfo
{
copyright "(C) illegal extension Inc."
info "a existing VRML97 node with a illegal extension"
}
EXTERNPROTO PrefixWorldInfo
[
field SFString copyright
field MFString info
field SFString title
]
["urn:inet:browser.com:library:PrefixWorldInfo" "PrefixWorldInfo.wrl"]
EXTERNPROTO PrefixWorldInfo
[
field SFString copyright
field MFString info
field SFString title
]
["urn:inet:browser.com:library:PrefixWorldInfo" "PrefixWorldInfo.wrl"]
PrefixWorldInfo
{
copyright "(C) illegal extension Inc."
info
[
"a existing VRML97 node with a illegal extension"
]
}
This program is free software; you can redistribute it
and/or modify it under the terms of the
GNU General Public License
as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later
version.