CGAL 5.6 - Manual
Loading...
Searching...
No Matches
CGAL Namespace Reference

Functions

std::string data_file_path (const std::string &filename)
 returns the full path of a data file from CGAL.
 

Function Documentation

◆ data_file_path()

std::string CGAL::data_file_path ( const std::string &  filename)

returns the full path of a data file from CGAL.

The data files are located in the data directory of a CGAL release or in the directory Data/data from a git branch checkout. That function uses as prefix the environment variable CGAL_DATA_DIR if set, and the value of the macro CGAL_DATA_DIR otherwise. When using cmake and a standard CGAL setup, linking the target using that function with the target CGAL::Data will automatically set the macro CGAL_DATA_DIR pointing to the data directory of the CGAL version used. The function will attempt to open the file at the returned location and will print a warning message via std::cerr if the file could not be opened.

Examples
Classification/gis_tutorial_example.cpp, and Poisson_surface_reconstruction_3/tutorial_example.cpp.