# Deep Copy and New Copy

The Simplygon API provides two important copy methods. The DeepCopy method used to copy one object to another and NewCopy which does a deep copy of the object into a new object which is returned.

The deep and new copy methods are present in classes derived from IArray and ISceneNode, the IGeometryData class, the IPackedGeometryData class and the IImageData class. In some cases these functions take a bool argument; this bool argument determines whether to copy the actual data or just the object structure (fields, color depth, etc) without actually populating the data arrays.

The IMatrix4x4 class contains only the DeepCopy method.

# Example - How to use deep and new copy