26 Plane(
int width = 5,
int height = 5)
30 for (
double x = 0; x < width; x += 1) {
31 for (
double z = 0; z < height; z += 1) {
37 for (
int i = 1; i < height; ++i) {
38 for (
int j = 1; j < width; ++j) {
Base class for shape generators.
void addVertex_(double x, double y, double z)
Add a new vertex to the shape.
void addCell_(int v1, int v2, int v3)
Add a new triangular face to the mesh from vertex IDs.
std::size_t orderedWidth_
std::size_t orderedHeight_
Shape and mesh primitives.