CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::MeshGenerator::SpringMesh Class Reference

A spring aligned along the z-axis winding counterclockwise. More...

#include <CeresEngine/Mesh/Generator/SpringMesh.hpp>

Public Types

using Triangles = typename Impl::Triangles
 
using Vertices = typename Impl::Vertices
 

Public Member Functions

 SpringMesh (double minor=0.25, double major=1.0, double size=1.0, int slices=8, int segments=32, double minorStart=0.0, double minorSweep=radians(360.0), double majorStart=0.0, double majorSweep=radians(720.0))
 
Triangles triangles () const noexcept
 
Vertices vertices () const noexcept
 

Private Types

using Impl = ExtrudeMesh< CircleShape, HelixPath >
 

Private Attributes

Impl mExtrudeMesh
 

Detailed Description

A spring aligned along the z-axis winding counterclockwise.

Member Typedef Documentation

◆ Impl

◆ Triangles

◆ Vertices

Constructor & Destructor Documentation

◆ SpringMesh()

CeresEngine::MeshGenerator::SpringMesh::SpringMesh ( double  minor = 0.25,
double  major = 1.0,
double  size = 1.0,
int  slices = 8,
int  segments = 32,
double  minorStart = 0.0,
double  minorSweep = radians(360.0),
double  majorStart = 0.0,
double  majorSweep = 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.

Member Function Documentation

◆ triangles()

Triangles CeresEngine::MeshGenerator::SpringMesh::triangles ( ) const
inlinenoexcept

◆ vertices()

Vertices CeresEngine::MeshGenerator::SpringMesh::vertices ( ) const
inlinenoexcept

Member Data Documentation

◆ mExtrudeMesh

Impl CeresEngine::MeshGenerator::SpringMesh::mExtrudeMesh
private

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