spkit.io.read_surf

spkit.io.read_surf(file_name)

Read Surf File .surf file geenrated by tools including vertices and faces

Parameters:
file_namestr
  • file name with full path

Returns:
V: 2d-array

Vertices

F: 2d-array

Faces

Examples

>>> import spkit as sp
>>> file_name = 'full_accessible_path/to_surf_file.surf'
>>> V,F  = sp.io.read_surf(file_name)