tess 1.0.0
Performance-first tile and path simulation substrate
Loading...
Searching...
No Matches
tess::StairTransitions< StairTag > Struct Template Reference

Emits bidirectional stair transitions encoded by an integral world field. More...

#include <tess/topology/transition_provider.h>

Public Member Functions

template<typename World, typename Sink>
void for_each_transition (const World &world, ChunkKey chunk, Sink &&sink) const
template<typename World, typename Sink>
void for_each_forward (const World &world, Coord3 from, Sink &&sink) const
template<typename World, typename Sink>
void for_each_reverse (const World &world, Coord3 to, Sink &&sink) const

Static Public Attributes

static constexpr std::uint32_t maximum_transition_cost = 1

Detailed Description

template<typename StairTag>
struct tess::StairTransitions< StairTag >

Emits bidirectional stair transitions encoded by an integral world field.

Member Function Documentation

◆ for_each_forward()

template<typename StairTag>
template<typename World, typename Sink>
void tess::StairTransitions< StairTag >::for_each_forward ( const World & world,
Coord3 from,
Sink && sink ) const
inline

Enumerates stair edges whose origin is exactly from.

◆ for_each_reverse()

template<typename StairTag>
template<typename World, typename Sink>
void tess::StairTransitions< StairTag >::for_each_reverse ( const World & world,
Coord3 to,
Sink && sink ) const
inline

Enumerates stair predecessors of exactly to.


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