# filters.delaunay

The Delaunay Filter creates a triangulated mesh fulfilling the Delaunay condition from a collection of points.

The filter is implemented using the delaunator-cpp library, a C++ port of the JavaScript Delaunator library.

The filter currently only supports 2D Delaunay triangulation, using the `X` and `Y` dimensions of the point cloud.

Default Embedded Stage

This stage is enabled by default

## Example

    [
        "input.las",
        {
            "type": "filters.delaunay"
        },
        {
            "type": "writers.ply",
            "filename": "output.ply",
            "faces": true
        }
    ]

## Options

where

  An expression that limits points passed to a filter. Points that don’t pass the expression skip the stage but are available to subsequent stages in a pipeline. [Default: no filtering]

where_merge

  A strategy for merging points skipped by a ‘where’ option when running in standard mode. If `true`, the skipped points are added to the first point view returned by the skipped filter. If `false`, skipped points are placed in their own point view. If `auto`, skipped points are merged into the returned point view provided that only one point view is returned and it has the same point count as it did when the filter was run. [Default: `auto`]