Template Function SimplifyLine::SimplifyLine

Function Documentation

template<typename T, int dim = 2>
Matrix<T> SimplifyLine::SimplifyLine(const Matrix<T> &points, T max_distance, bool high_quality = true)

Will simplify a 2D or 3D line.

Return

Matrix<T> The simplified line

Template Parameters
  • T:

  • dim: The dimesion of the line, 2D or 3D

Parameters
  • points: Matrix of 2D or 3D points

  • max_distance: Maximum distance of point on line

  • high_quality: Create high quality simplification, quality comes with increased computation time.