[x3d-public] Prototype Minimizer
Don Brutzman
brutzman at nps.edu
Wed Jun 8 20:04:26 PDT 2016
On 6/7/2016 7:23 PM, John Carlson wrote:
> Does anyone have any thoughts as to a “Prototype Minimizer” which would take the output from a “Prototype Expander” and produce a roundtrip version of the non-expanded X3D file?
Please advise if this matches what you are asking:
- A prototype expander converts a ProtoDeclare definition with ProtoInstance initializations to create a native-X3D scene graph tree
- You are interested in examining from the expanded version and deducing the original prototype structure
If so, then the simplest way to do this is probably to embed the original ProtoDeclare and ProtoInstance in the expansion, either as a comment of perhaps hidden under a Switch node (or even as Metadata values). Then no deduction is needed, rather the expansion includes a description of how it was created.
all the best, Don
--
Don Brutzman Naval Postgraduate School, Code USW/Br brutzman at nps.edu
Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman
More information about the x3d-public
mailing list