Function vertex::fillMissingFlatNormals

Function vertex::fillMissingFlatNormals#

Function Documentation#

void vertex::fillMissingFlatNormals(std::span<Vertex> vertices, std::span<const unsigned int> indices, std::size_t firstIndex = 0)#

Same per-triangle geometric normal as computeFlatNormals, but only fills in a corner whose current normal is (near-)zero-length instead of overwriting every corner - for OBJs where only some faces carry vn.