Unravel Engine C++ Reference
Loading...
Searching...
No Matches
generator::transform_mesh_t< mesh_t > Class Template Reference

Apply a mutator function to each vertex. More...

#include <transform_mesh.hpp>

Classes

class  vertices_t
 

Public Types

using triangles_t = typename impl_t::triangles_t
 

Public Member Functions

 transform_mesh_t (mesh_t mesh, const std::function< void(mesh_vertex_t &)> &mutate)
 
triangles_t triangles () const noexcept
 
vertices_t vertices () const noexcept
 

Detailed Description

template<typename mesh_t>
class generator::transform_mesh_t< mesh_t >

Apply a mutator function to each vertex.

Definition at line 14 of file transform_mesh.hpp.

Member Typedef Documentation

◆ triangles_t

template<typename mesh_t >
using generator::transform_mesh_t< mesh_t >::triangles_t = typename impl_t::triangles_t

Definition at line 61 of file transform_mesh.hpp.

Constructor & Destructor Documentation

◆ transform_mesh_t()

template<typename mesh_t >
generator::transform_mesh_t< mesh_t >::transform_mesh_t ( mesh_t mesh,
const std::function< void(mesh_vertex_t &)> & mutate )
inlineexplicit
Parameters
meshSource data mesh.
mutateCallback function that gets called once per vertex.

Definition at line 55 of file transform_mesh.hpp.

Member Function Documentation

◆ triangles()

template<typename mesh_t >
triangles_t generator::transform_mesh_t< mesh_t >::triangles ( ) const
inlinenoexcept

Definition at line 63 of file transform_mesh.hpp.

◆ vertices()

template<typename mesh_t >
vertices_t generator::transform_mesh_t< mesh_t >::vertices ( ) const
inlinenoexcept

Definition at line 68 of file transform_mesh.hpp.


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