项目作者: simogasp

项目描述 :
mirror of the "unflattened" version of delaunay-psm from geogram
高级语言: C++
项目地址: git://github.com/simogasp/geogram-delaunay.git
创建时间: 2017-08-04T15:25:13Z
项目社区:https://github.com/simogasp/geogram-delaunay

开源协议:BSD 3-Clause "New" or "Revised" License

下载


Geogram-delaunay

This is a mirror of the “unflattened” version of the delaunay-psm (Pluggable Software Module) from the Geogram library.

The full library is hosted at here and the sources for both the library and the PSM version are hosted here.

The difference between this version and the PSM one is that the PSM comes as 2 files, a header and a source file, which contained a “flattened” version of the library module. Here the hierarchy of the library is preserved and limited to the essential sources necessary to build the delaunay triangulation.

Build

The library has no dependency so it can be built with the typical

  1. mkdir build && cd build
  2. cmake .. -DCMAKE_INSTALL_PREFIX:PATH=<prefix>
  3. make -j 4

Use as 3rd party

In order to use this library as 3rd party in your project, you simply need to import the delaunayConfig.cmake generated by the build process (usually in build/geogram/generated).
If you install the library, say in <prefix>, then the config is installed in <prefix>/lib/cmake/delaunay.
Either way, the file exposes a target delaunay::delaunay that can be used to link with your project.

In your cmake project you simply have to

  1. find_package(delaunay CONFIG REQUIRED)
  2. add_executable(myDelaunaySample main.cpp)
  3. target_link_libraries(myDelaunaySample delaunay::delaunay)

Check the example.

Documentation

The documentation of the module can be found at http://alice.loria.fr/software/geogram/doc/html/classGEO_1_1Delaunay.html

License

Geogram (as well as this repository) is licensed under the 3-clauses BSD License