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

A triangular region on a surface of a sphere. More...

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

Classes

class  Triangles
 
class  Vertices
 

Public Member Functions

 SphericalTriangleMesh (double radius=1.0, int segments=4)
 
 SphericalTriangleMesh (const Vector3 &v0, const Vector3 &v1, const Vector3 &v2, int segments=4)
 
Triangles triangles () const noexcept
 
Vertices vertices () const noexcept
 

Private Attributes

Vector3 v0_
 
Vector3 v1_
 
Vector3 v2_
 
Vector3 normal_
 
int mSegments
 

Detailed Description

A triangular region on a surface of a sphere.

Constructor & Destructor Documentation

◆ SphericalTriangleMesh() [1/2]

CeresEngine::MeshGenerator::SphericalTriangleMesh::SphericalTriangleMesh ( double  radius = 1.0,
int  segments = 4 
)
Parameters
radiusRadius of the containing sphere.
segmentsNumber of subdivisions along each edge.

◆ SphericalTriangleMesh() [2/2]

CeresEngine::MeshGenerator::SphericalTriangleMesh::SphericalTriangleMesh ( const Vector3 v0,
const Vector3 v1,
const Vector3 v2,
int  segments = 4 
)
Parameters
segmentsNumber of subdivisions along each edge.

Member Function Documentation

◆ triangles()

Triangles CeresEngine::MeshGenerator::SphericalTriangleMesh::triangles ( ) const
noexcept

◆ vertices()

Vertices CeresEngine::MeshGenerator::SphericalTriangleMesh::vertices ( ) const
noexcept

Member Data Documentation

◆ mSegments

int CeresEngine::MeshGenerator::SphericalTriangleMesh::mSegments
private

◆ normal_

Vector3 CeresEngine::MeshGenerator::SphericalTriangleMesh::normal_
private

◆ v0_

Vector3 CeresEngine::MeshGenerator::SphericalTriangleMesh::v0_
private

◆ v1_

Vector3 CeresEngine::MeshGenerator::SphericalTriangleMesh::v1_
private

◆ v2_

Vector3 CeresEngine::MeshGenerator::SphericalTriangleMesh::v2_
private

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