pingwyn.copy

pingwyn.copy(obj)

Create an in-memory copy of a pingwyn object.

This function mainly makes sense for inline function calls, as pg.* calls already make copies where applicable. As an example: ```

obj2 = obj.copy().remove_plane().align_rows()

```

Parameters:

obj (pingwyn.Curve or pingwyn.Grid or pingwin.Image or pingwyn.Profile) – Pingwyn object to make a copy of.

Returns:

Copy of the provided object. Inherits the same type.

Return type:

pingwyn.Curve or pingwyn.Grid or pingwin.Image or pingwyn.Profile