get
- get(filename)[source]
Get the full path to one of the sample data files.
- Parameters:
- filenamestr
The name of the data file. The following are available.
boxes.obj
faces.obj
fink.obj
hypar.obj
lines.obj
saddle.obj
- Returns:
- str
The full path to the specified file.
Notes
The file name should be specified relative to the sample data folder. This folder is only locally available if you installed
compas_libigl
from source, or if you are working directly with the source. In all other cases, the function will get the corresponding files direcly from the GitHub repo.Examples
>>> import compas_libigl as igl >>> from compas.datastructures import Mesh >>> mesh = Mesh.from_off(igl.get("bunny.off"))