recon_surf.rewrite_oriented_surface

recon_surf.rewrite_oriented_surface.make_parser()[source]

Create a command line interface and return command line options.

Returns:
options

Namespace object holding options.

recon_surf.rewrite_oriented_surface.resafe_surface(surface_file, surface_backup=None)[source]

Take path to surface_file and rewrite it to fix improperly oriented triangles.

If the surface is not oriented and surface_backup is set, rename the old surface_file to surface_backup. Else just overwrite with the corrected surface.

Parameters:
surface_filePath, str

Path and name of input surface.

surface_backupPath, str, optional

Path and name of output surface.

Returns:
bool

Whether the surface was rewritten.