From Yefei He, " I wrote a class derived from CopyOp that preserves the multi-parent structure of scene graphs. I only considered the case of DEEP_COPY_NODES, but it is sufficient for me. It is not the most elegant way -- I used a map to list all the already cloned nodes with multiple parents, to be looked up whenever such a node is revisited. The good part is, it works."
From Yefei He, " I wrote a class derived from CopyOp that preserves the multi-parent
structure of scene graphs. I only considered the case of DEEP_COPY_NODES,
but it is sufficient for me. It is not the most elegant way -- I used
a map to list all the already cloned nodes with multiple parents, to be
looked up whenever such a node is revisited. The good part is, it works."

From Robert Osfield, fixed build problems under Linux 64 due to use of int's to store Node*
in internal maps used in above custom CopyOp.  Added ref_ptr<> usage to main to
prevent memory leaks


marchelbling/osg,openscenegraph/osg,artoolkit/osg,jtorresfabra/osg,tomasthoresen/osg,marchelbling/osg,jtorresfabra/osg,scrawl/osg,artoolkit/osg,tomasthoresen/osg,artoolkit/osg,scrawl/osg,tomasthoresen/osg,jtorresfabra/osg,openscenegraph/osg,scrawl/osg,scrawl/osg,marchelbling/osg,artoolkit/osg,tomasthoresen/osg,openscenegraph/osg,openscenegraph/osg,marchelbling/osg,jtorresfabra/osg