Unravel Engine C++ Reference
Loading...
Searching...
No Matches
generator::torus_knot_mesh_t Class Reference

#include <torus_knot_mesh.hpp>

Public Types

using triangles_t = typename impl_t::triangles_t
 
using vertices_t = typename impl_t::vertices_t
 

Public Member Functions

 torus_knot_mesh_t (int p=2, int q=3, int slices=8, int segments=96)
 
triangles_t triangles () const noexcept
 
vertices_t vertices () const noexcept
 

Detailed Description

A Circle extruded along a knot path.

Definition at line 13 of file torus_knot_mesh.hpp.

Member Typedef Documentation

◆ triangles_t

using generator::torus_knot_mesh_t::triangles_t = typename impl_t::triangles_t

Definition at line 24 of file torus_knot_mesh.hpp.

◆ vertices_t

using generator::torus_knot_mesh_t::vertices_t = typename impl_t::vertices_t

Definition at line 31 of file torus_knot_mesh.hpp.

Constructor & Destructor Documentation

◆ torus_knot_mesh_t()

torus_knot_mesh_t::torus_knot_mesh_t ( int p = 2,
int q = 3,
int slices = 8,
int segments = 96 )
Parameters
slicesNumber subdivisions around the circle.
segmentsNumber of subdivisions around the path.

Definition at line 5 of file torus_knot_mesh.cpp.

Member Function Documentation

◆ triangles()

triangles_t generator::torus_knot_mesh_t::triangles ( ) const
inlinenoexcept

Definition at line 26 of file torus_knot_mesh.hpp.

◆ vertices()

vertices_t generator::torus_knot_mesh_t::vertices ( ) const
inlinenoexcept

Definition at line 33 of file torus_knot_mesh.hpp.


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