t
Loading...
Searching...
No Matches
t::Plane Class Reference

The geometry of a flat, depth-less plane. More...

#include <Plane.hpp>

Inheritance diagram for t::Plane:
t::Geometry

Public Member Functions

 Plane (double width, double height)
 Creates a new plane geometry with the specified width and height centered on the origin and faces towards the positive Z direction.
 
- Public Member Functions inherited from t::Geometry
 Geometry (const BufferAttribute< double > &_vertexPositions, const BufferAttribute< double > &_vertexNormals)
 Creates a new 3D geometry with the specified vertex buffer and normal buffer.
 
void setIndices (BufferAttribute< int > _faceIndices)
 Sets the index buffer of this geometry.
 

Additional Inherited Members

- Public Attributes inherited from t::Geometry
BufferAttribute< double > vertexPositions
 The vertex buffer.
 
std::optional< BufferAttribute< int > > faceIndices
 The index buffer, which is optional.
 
BufferAttribute< double > vertexNormals
 The normal buffer.
 
FrontFace frontFace
 The vertex winding order which classifies the front face of a triangle.
 

Detailed Description

The geometry of a flat, depth-less plane.

On creation, the plane is centered on the origin and faces towards the positive Z direction.

Constructor & Destructor Documentation

◆ Plane()

t::Plane::Plane ( double width,
double height )
inline

Creates a new plane geometry with the specified width and height centered on the origin and faces towards the positive Z direction.

For lighting calculations, it may be assumed that the width and height are in meters.

Parameters
widthThe width of the plane.
heightThe height of the plane.

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