OGLplus  (0.59.0) a C++ wrapper for rendering APIs

Class holding information about the topology of a generated shape. More...

#include <eagine/shapes/topology.hpp>

Public Member Functions

 topology (std::shared_ptr< generator > gen, drawing_variant var, vertex_attrib_variant vav)
 Construction from a generator, drawing and attribute variant.
 
 topology (const std::shared_ptr< generator > &gen)
 Construction from a shape generator.
 
auto triangle_count () const noexcept -> span_size_t
 Returns the number of triangles in the mesh.
 
auto triangle (span_size_t i) const noexcept -> const mesh_triangle &
 Returns the i-th triangle in the mesh.
 

Detailed Description

Class holding information about the topology of a generated shape.

See also
mesh_edge
mesh_triangle
Examples
eagine/shape_topology.cpp.

The documentation for this class was generated from the following file:

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).