Browse Source

MeshTools: doc++

pull/470/head
Vladimír Vondruš 6 years ago
parent
commit
5e5fd681f8
  1. 7
      src/Magnum/MeshTools/GenerateIndices.h
  2. 3
      src/Magnum/MeshTools/GenerateNormals.h

7
src/Magnum/MeshTools/GenerateIndices.h

@ -213,8 +213,11 @@ MAGNUM_MESHTOOLS_EXPORT void generateQuadIndicesInto(const Containers::StridedAr
Expects that @p mesh is not indexed and is one of
@ref MeshPrimitive::LineStrip, @ref MeshPrimitive::LineLoop,
@ref MeshPrimitive::TriangleStrip, @ref MeshPrimitive::TriangleFan primitives.
If your mesh is indexed, call @ref duplicate(const Trade::MeshData& data, Containers::ArrayView<const Trade::MeshAttributeData>)
@ref MeshPrimitive::TriangleStrip, @ref MeshPrimitive::TriangleFan primitives,
calling one of @ref generateLineStripIndices(), @ref generateLineLoopIndices(),
@ref generateTriangleStripIndices() or @ref generateTriangleFanIndices()
functions to generate the index buffer. If your mesh is indexed, call
@ref duplicate(const Trade::MeshData& data, Containers::ArrayView<const Trade::MeshAttributeData>)
on it first.
The resulting mesh always has @ref MeshIndexType::UnsignedInt, call

3
src/Magnum/MeshTools/GenerateNormals.h

@ -54,7 +54,8 @@ Example usage:
@snippet MagnumMeshTools.cpp generateFlatNormals
@see @ref generateFlatNormalsInto(), @ref generateSmoothNormals(),
@ref MeshTools::CompileFlag::GenerateFlatNormals
@ref MeshTools::CompileFlag::GenerateFlatNormals,
@ref Math::cross(const Vector3<T>&, const Vector3<T>&)
*/
MAGNUM_MESHTOOLS_EXPORT Containers::Array<Vector3> generateFlatNormals(const Containers::StridedArrayView1D<const Vector3>& positions);

Loading…
Cancel
Save