copy

Purpose

Create a copy of an object derived from the Union class.

Syntax

Unew = U.copy
Unew = copy(U)

Description

Create a copy of the union U and return a new object Unew with same properties as the original union object. Changing one object does not affect the second one because the objects are not connected by reference.

Note that this method is different versus the equality assignment Unew = U which points to the same object.

Input Arguments

U

Any object derived from the Union class, e.g. PolyUnion, etc.

Class: Union

Output Arguments

Unew

New object which is an exact copy of the original object U.

Class: Union

See Also

polyunion


© 2003-2013 Michal Kvasnica: STU Bratislava, michal.kvasnica@stuba.sk

© 2010-2013 Martin Herceg: ETH Zurich, herceg@control.ee.ethz.ch