|
libsdfio 1.0.0
Reader and writer for ISO 25178-71 SDF surface data files in C
|
libsdfio is a C11 library without dependencies that reads and writes the SDF surface data files of ISO 25178-71. An SDF file contains the heights of a profile or of an areal surface measurement on a rectangular grid. It is used as a software measurement standard, a set of reference data with which the software of surface texture measuring instruments is verified, and as an interchange format for topography data.
With Visual Studio, configure with -A x64 (or Win32, ARM64) and name the configuration in the other commands: --config Release, and -C Release for ctest.
These CMake options control which components are built:
| Option | Default | Builds |
|---|---|---|
| SDFIO_BUILD_EXAMPLES | OFF | The examples. |
| SDFIO_BUILD_EXTERNAL_EXAMPLES | OFF | The examples that use OpenCV, VTK and Eigen, which must be found. |
| SDFIO_BUILD_DOCS | OFF | This API reference, with Doxygen, as the target docs. |
Dates are time_t values in seconds since 1970-01-01 00:00:00 UTC. The library and the program must use the same width of time_t. On a 32-bit host, a 64-bit time_t is needed for dates beyond 2038, for example with glibc:
An installed library provides the CMake target sdfio::sdfio:
Source files that use the library include <sdfio/sdfio.h>, and <sdfio/file.h> for the functions that open files. See Examples for typical uses. Without CMake, compile and link with the flags that pkg-config reports: