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

eagine::shapes::mesh_edge Class Reference

Class storing information about an edge between two mesh faces. More...

#include <eagine/shapes/topology.hpp>

Public Member Functions

auto triangle (span_size_t i) const noexcept -> const mesh_triangle &
 Returns one of the two adjacent triangle faces. More...
 
auto edge_vertices (span_size_t i) const noexcept -> std::tuple< unsigned, unsigned >
 Returns a pair of vertex indices (0,1 or 2) defining the i-th edge. More...
 

Detailed Description

Class storing information about an edge between two mesh faces.

See also
mesh_triangle
topology

Member Function Documentation

◆ edge_vertices()

auto eagine::shapes::mesh_edge::edge_vertices ( span_size_t  i) const -> std::tuple<unsigned, unsigned>
inlinenoexcept

Returns a pair of vertex indices (0,1 or 2) defining the i-th edge.

Precondition
i >= 0 && i < 2

◆ triangle()

auto eagine::shapes::mesh_edge::triangle ( span_size_t  i) const -> const mesh_triangle&
inlinenoexcept

Returns one of the two adjacent triangle faces.

Precondition
i >= 0 && i < 2

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).