add(self,
surf,
overwrite=True,
copy=False)
|
|
Add an existing Surface object to the project row. Note that if copy is
False (the default), this method will invalidate the input Surface
object, as the mmsurf handle will be managed by the project.
- Parameters:
surf (Surface) - The surface to add.
overwrite (bool) - What to do if the new surface has the same name as an existing
surface for this project row. If True, the existing surface will
be overwritten. In False, a ValueError will be raised.
copy (bool) - If True, a copy of the surface will be added to the project and
the input surface will not be invalidated.
- Returns: ProjectSurface
- A ProjectSurface object for the added surface.
|