#include "o3d/mesh.h" #include #include #include #include "math/vector.h" using namespace engine::o3d; Mesh Mesh::plane() { return { { {-1.f, 0.f, -1.f, 1.f}, {+1.f, 0.f, -1.f, 1.f}, {+1.f, 0.f, +1.f, 1.f}, {-1.f, 0.f, +1.f, 1.f}, }, { {0.f, 0.f, -1.f} }, { {0.f, 0.f}, {1.f, 0.f}, {1.f, 1.f}, {0.f, 1.f}, }, { {{ {{0, 0, 0}}, {{1, 0, 1}}, {{2, 0, 2}} }}, {{ {{2, 0, 2}}, {{3, 0, 3}}, {{0, 0, 0}} }}, {{ {{0, 0, 0}}, {{3, 0, 3}}, {{2, 0, 2}} }}, {{ {{2, 0, 2}}, {{1, 0, 1}}, {{0, 0, 0}} }}, } }; }