t
|
The geometry of a flat, depth-less plane. More...
#include <Plane.hpp>
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. | |
The geometry of a flat, depth-less plane.
On creation, the plane is centered on the origin and faces towards the positive Z direction.
|
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.
width | The width of the plane. |
height | The height of the plane. |