Function Polylidar::MeshHelper::ExtractHalfEdges

Function Documentation

inline std::vector<size_t> Polylidar::MeshHelper::ExtractHalfEdges(const std::vector<size_t> &triangles)

Extract the halfedges from a flattened triangles array datastructure. triangles is simply the contiguous buffer of the the N X K triangles structure. TODO: This should really be private/nested namespace.

Parameters

triangles

Returns

std::vector<size_t> This is the flattened contiguous buffer of halfedges