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> new in 2019.10
Generate flat normals.
void generateFlatNormalsInto(const Containers::StridedArrayView1D<const Vector3>& positions, const Containers::StridedArrayView1D<Vector3>& normals) new in 2019.10
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 in 2019.10
Generate flat normals.
auto generateSmoothNormals(const Containers::StridedArrayView1D<const UnsignedInt>& indices, const Containers::StridedArrayView1D<const Vector3>& positions) -> Containers::Array<Vector3> new in 2019.10
Generate smooth normals.
auto generateSmoothNormals(const Containers::StridedArrayView2D<const char>& indices, const Containers::StridedArrayView1D<const Vector3>& positions) -> Containers::Array<Vector3> new in 2020.06
Generate smooth normals using a type-erased index array.
void generateSmoothNormalsInto(const Containers::StridedArrayView1D<const UnsignedInt>& indices, const Containers::StridedArrayView1D<const Vector3>& positions, const Containers::StridedArrayView1D<Vector3>& normals) new in 2019.10
Generate smooth normals into an existing array.
void generateSmoothNormalsInto(const Containers::StridedArrayView2D<const char>& indices, const Containers::StridedArrayView1D<const Vector3>& positions, const Containers::StridedArrayView1D<Vector3>& normals) new in 2020.06
Generate smooth normals into an existing array using a type-erased index array.