Cogs.Core
Functions
Cogs::Geometry::ProfileGenerator Namespace Reference

Contains functionality for generating extrusion profiles. More...

Functions

void generateConnector (std::vector< float > &depths, std::vector< glm::vec2 > &profile, const float startDepth, const float endDepth, const float startRadius, const float outerRadius, const float endRadius, const float depthAnchor)
 
void generateCurvedProfile (std::vector< float > &depths, std::vector< glm::vec2 > &profile, const float startDepth, const float endDepth, const float startRadius, const float endRadius, const float numSections)
 
void insertPoints (std::vector< float > &depths, std::vector< glm::vec2 > &profile, const float radius, const float startDepth, const float endDepth, std::vector< float >::const_iterator it, std::vector< float >::const_iterator end)
 
void insertPointsReverse (std::vector< float > &depths, std::vector< glm::vec2 > &profile, const float radius, const float startDepth, const float endDepth, std::vector< float >::const_iterator it)
 
void reverseProfile (std::vector< float > &depths, std::vector< glm::vec2 > &profile, const float startDepth, const float endDepth)
 Reverses the given profile.
 

Detailed Description

Contains functionality for generating extrusion profiles.

Function Documentation

◆ generateConnector()

void Cogs::Geometry::ProfileGenerator::generateConnector ( std::vector< float > &  depths,
std::vector< glm::vec2 > &  profile,
const float  startDepth,
const float  endDepth,
const float  startRadius,
const float  outerRadius,
const float  endRadius,
const float  depthAnchor 
)

Definition at line 10 of file ProfileGenerator.cpp.

◆ generateCurvedProfile()

void Cogs::Geometry::ProfileGenerator::generateCurvedProfile ( std::vector< float > &  depths,
std::vector< glm::vec2 > &  profile,
const float  startDepth,
const float  endDepth,
const float  startRadius,
const float  endRadius,
const float  numSections 
)

Definition at line 27 of file ProfileGenerator.cpp.

◆ insertPoints()

void Cogs::Geometry::ProfileGenerator::insertPoints ( std::vector< float > &  depths,
std::vector< glm::vec2 > &  profile,
const float  radius,
const float  startDepth,
const float  endDepth,
std::vector< float >::const_iterator  it,
std::vector< float >::const_iterator  end 
)

Definition at line 49 of file ProfileGenerator.cpp.

◆ insertPointsReverse()

void Cogs::Geometry::ProfileGenerator::insertPointsReverse ( std::vector< float > &  depths,
std::vector< glm::vec2 > &  profile,
const float  radius,
const float  startDepth,
const float  endDepth,
std::vector< float >::const_iterator  it 
)

Definition at line 67 of file ProfileGenerator.cpp.

◆ reverseProfile()

void Cogs::Geometry::ProfileGenerator::reverseProfile ( std::vector< float > &  depths,
std::vector< glm::vec2 > &  profile,
const float  startDepth,
const float  endDepth 
)