For all displayable objects in visual, object.__copy__() returns an
identical copy of that object, which is displayed immediately. Without
any arguments, this results in creating a second object in the exact
same position as the first and may not be quite what you want. So, the
__copy__() member function also takes a list of keyword=value argument
pairs which are applied to the new object before making it visible. So,
for example, to clone an object from one display to another, you would
execute:
new_object = old_object.__copy__( display=new_display)
Restriction: If the original object is within a frame, and the new
object is on a different display, you must supply both a new display and
a new frame for the new object (the new frame may be None). This is due
to the restriction that an object may not be located within a reference
frame on a separate display.
Cloning the 'universe' within one display to another, in the case when
some objects are within frames can be done with the following algorithm
(sent as attachment to keep formatting):
-Jonathan
|