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

#include <lathe_mesh.hpp>

Classes

class  triangles_t
 
class  vertices_t
 

Public Member Functions

 lathe_mesh_t (shape_t shape, const gml::dvec2 &axis, int slices=32, double start=0.0, double sweep=gml::radians(360.0))
 
triangles_t triangles () const noexcept
 
vertices_t vertices () const noexcept
 

Detailed Description

template<typename shape_t>
class generator::lathe_mesh_t< shape_t >

Spins a shape around an axis to create a mesh. u-texture coordinate is taken from the shape and v runs from 0 to 1 around the axis counterclockwise.

Definition at line 19 of file lathe_mesh.hpp.

Constructor & Destructor Documentation

◆ lathe_mesh_t()

template<typename shape_t >
generator::lathe_mesh_t< shape_t >::lathe_mesh_t ( shape_t shape,
const gml::dvec2 & axis,
int slices = 32,
double start = 0.0,
double sweep = gml::radians(360.0) )
inline
Parameters
shapeThe shape to spin.
axisUnit length axis to spin around.
slicesNumber of subdivisions around the axis.
startCounterclockwise angle around the given axis relative to the xy-plane. relative to the xy-plane.
sweepCounterclockwise angle around the given axis.

Definition at line 141 of file lathe_mesh.hpp.

Member Function Documentation

◆ triangles()

template<typename shape_t >
triangles_t generator::lathe_mesh_t< shape_t >::triangles ( ) const
inlinenoexcept

Definition at line 154 of file lathe_mesh.hpp.

◆ vertices()

template<typename shape_t >
vertices_t generator::lathe_mesh_t< shape_t >::vertices ( ) const
inlinenoexcept

Definition at line 159 of file lathe_mesh.hpp.


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