1#include "geometries/Geometry.hpp"
16#define halfWidth width / 2
17#define halfHeight height / 2
21 halfWidth, halfHeight, 0, \
22 -halfWidth, halfHeight, 0, \
23 -halfWidth, -halfHeight, 0, \
24 halfWidth, -halfHeight, 0, \
27#define indexBuffer {0, 1, 3, 3, 1, 2}
28#define normalBuffer {0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1}
50 Plane(
double width,
double height)
A class representing attributes, such as vertex positions, face indices, and vertex normals.
Definition BufferAttribute.hpp:27
The base 3D geometry class.
Definition Geometry.hpp:37
void setIndices(BufferAttribute< int > _faceIndices)
Sets the index buffer of this geometry.
Definition Geometry.hpp:93
The geometry of a flat, depth-less plane.
Definition Plane.hpp:38
Plane(double width, double height)
Creates a new plane geometry with the specified width and height centered on the origin and faces tow...
Definition Plane.hpp:50
The t software 3D graphics library namespace.
Definition algorithms.hpp:12