How to Duplicate Nodes?

New Message Reply Date view Thread view Subject view Author view

Al Jones (solo++at++crl.com)
Tue, 7 Feb 1995 18:49:31 -0800


I have a simple question which doesn't seem to be answered in the
documentation: How do you make a copy of a node (or better yet, a
node and all of its children)?

I have an application which needs to draw multiple instances of the
same model, but with each instance drawn in a different color.
Unfortunately, I can't seem to use shared or cloned instancing for this,
since color is not an inherited attribute. So I believe I'm stuck
with making a copy of the model for each instance I want to draw, then
setting each leaf node to the desired color. It's ugly, but it might work
if I could figure out how to make copies (short of reading each node's
type and attributes and explicitly re-creating an identical one).

I'd appreciate any clues.

Al Jones
solo++at++crl.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:56 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.