Function Polylidar::MeshHelper::ComputeTriangleNormals

Function Documentation

void Polylidar::MeshHelper::ComputeTriangleNormals(const Matrix<double> &vertices, const std::vector<size_t> &triangles, std::vector<double> &triangle_normals, const bool flip_normals = false)

Compute Triangle Normals with Contiguous Buffer Datastructures.

Parameters
  • vertices

  • triangles

  • triangle_normals – Results will be stored in here

  • flip_normals – If true will flip the normals