Browse Source

Primitives: doc++

pull/388/head
Vladimír Vondruš 7 years ago
parent
commit
023c3811c8
  1. 2
      src/Magnum/Primitives/Cone.cpp
  2. 4
      src/Magnum/Primitives/Grid.h

2
src/Magnum/Primitives/Cone.cpp

@ -61,7 +61,7 @@ Trade::MeshData3D coneSolid(const UnsignedInt rings, const UnsignedInt segments,
Trade::MeshData3D coneWireframe(const UnsignedInt segments, const Float halfLength) {
CORRADE_ASSERT(segments >= 4 && segments%4 == 0,
"Primitives::cylinderWireframe(): multiples of 4 segments expected",
"Primitives::coneWireframe(): multiples of 4 segments expected",
(Trade::MeshData3D{MeshPrimitive::Lines, {}, {}, {}, {}, {}, nullptr}));
Implementation::WireframeSpheroid cone{segments/4};

4
src/Magnum/Primitives/Grid.h

@ -64,7 +64,7 @@ typedef Containers::EnumSet<GridFlag> GridFlags;
CORRADE_ENUMSET_OPERATORS(GridFlags)
/**
@brief 3D solid grid
@brief Solid 3D grid
2x2 grid in the XY plane with normals in positive Z direction. Indexed
@ref MeshPrimitive::Triangles with optional normals and texture coordinates.
@ -81,7 +81,7 @@ cells horizontally and 4 vertically. In particular, this is different from the
MAGNUM_PRIMITIVES_EXPORT Trade::MeshData3D grid3DSolid(const Vector2i& subdivisions, GridFlags flags = GridFlag::GenerateNormals);
/**
@brief 3D wireframe grid
@brief Wireframe 3D grid
2x2 grid in the XY plane. Indexed @ref MeshPrimitive::Lines.

Loading…
Cancel
Save