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

#include <spring_mesh.hpp>

Public Types

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

Public Member Functions

 spring_mesh_t (double minor=0.25, double major=1.0, double size=1.0, int slices=8, int segments=32, double minorStart=0.0, double minorSweep=gml::radians(360.0), double majorStart=0.0, double majorSweep=gml::radians(720.0))
 
triangles_t triangles () const noexcept
 
vertices_t vertices () const noexcept
 

Detailed Description

A spring aligned along the z-axis winding counterclockwise

Definition at line 13 of file spring_mesh.hpp.

Member Typedef Documentation

◆ triangles_t

using generator::spring_mesh_t::triangles_t = typename impl_t::triangles_t

Definition at line 37 of file spring_mesh.hpp.

◆ vertices_t

using generator::spring_mesh_t::vertices_t = typename impl_t::vertices_t

Definition at line 44 of file spring_mesh.hpp.

Constructor & Destructor Documentation

◆ spring_mesh_t()

spring_mesh_t::spring_mesh_t ( double minor = 0.25,
double major = 1.0,
double size = 1.0,
int slices = 8,
int segments = 32,
double minorStart = 0.0,
double minorSweep = gml::radians(360.0),
double majorStart = 0.0,
double majorSweep = gml::radians(720.0) )
Parameters
minorRadius of the spring it self.
majorRadius from the z-axis
sizeHalf of the length along the z-axis.
slicesSubdivisions around the spring.
segmentsSubdivisions along the path.
majorStartCounterclockwise angle around the z-axis relative to the x-axis.
majorSweepCounterclockwise angle arounf the z-axis.

Definition at line 5 of file spring_mesh.cpp.

Member Function Documentation

◆ triangles()

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

Definition at line 39 of file spring_mesh.hpp.

◆ vertices()

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

Definition at line 46 of file spring_mesh.hpp.


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