Function Polylidar::MeshHelper::ComputeTriangleNormalsFromMatrix

Function Documentation

void Polylidar::MeshHelper::ComputeTriangleNormalsFromMatrix(const Matrix<double> &vertices, const Matrix<size_t> &triangles, Matrix<double> &triangle_normals_mat, const bool flip_normals = false)

Compute Triangle Normals with Matrix Datastructures.

Parameters
  • vertices

  • triangles

  • triangle_normals_mat – Results will be stored in here

  • flip_normals – If true will flip the normals