Magnum/MeshTools/GenerateNormals.h file

Function Magnum::MeshTools::generateFlatNormals(), Magnum::MeshTools::generateFlatNormalsInto(), Magnum::MeshTools::generateSmoothNormals(), Magnum::MeshTools::generateSmoothNormalsInto()

Contents

Namespaces

namespace Magnum
Root namespace.
namespace Magnum::MeshTools
Mesh tools.

Functions

auto generateFlatNormals(const Containers::StridedArrayView1D<const Vector3>& positions) -> Containers::Array<Vector3>
Generate flat normals.
void generateFlatNormalsInto(const Containers::StridedArrayView1D<const Vector3>& positions, const Containers::StridedArrayView1D<Vector3>& normals)
Generate flat normals into an existing array.
auto generateFlatNormals(const std::vector<UnsignedInt>& indices, const std::vector<Vector3>& positions) -> std::pair<std::vector<UnsignedInt>, std::vector<Vector3>> deprecated
Generate flat normals.
template<class T>
auto generateSmoothNormals(const Containers::StridedArrayView1D<const T>& indices, const Containers::StridedArrayView1D<const Vector3>& positions) -> Containers::Array<Vector3>
Generate smooth normals.
template<class T>
void generateSmoothNormalsInto(const Containers::StridedArrayView1D<const T>& indices, const Containers::StridedArrayView1D<const Vector3>& positions, const Containers::StridedArrayView1D<Vector3>& normals)
Generate smooth normals into an existing array.