Files
Z3D/include/geometry/normal_estimation.hpp

14 lines
364 B
C++

#pragma once
#include <vector>
#include <array>
#include <span>
#include "util/uix.hpp"
#include "assets/components/mesh_vertex_components.hpp"
void estimate_normals(
std::span<const mesh_vertex_components::position::value_type> vertices,
std::span<const std::array<ztu::u32, 3>> triangles,
std::vector<mesh_vertex_components::normal::value_type>& normals
);