Function Polylidar::MeshHelper::ExtractTriMeshFromOrganizedPointCloud

Function Documentation

std::tuple<HalfEdgeTriangulation, VUI> Polylidar::MeshHelper::ExtractTriMeshFromOrganizedPointCloud(Matrix<double> &points_2D, const size_t rows, const size_t cols, const size_t stride, const bool calc_normals)

Extracts a Half-Edge Triangulated mesh (Uniform Mesh/Right Cut Mesh) from an organized point cloud Returns mesh and T_map. T_map is the valid triangle set that maps between the complete fully connected mesh and all triangles returned. You will mostly likely not need T_map and can safely discard.

Parameters
  • points_2D – Organized Point Cloud

  • rows – Rows in organized point clouds

  • cols – Columns in organized point cloud

  • stride – Stride Level

  • calc_normals – Will calculate triangle normals if requested

Returns

std::tuple<HalfEdgeTriangulation, VUI>