Skip to content

build/api-examples/Mesh.cpp

Complete program from the Mesh API reference. Save it at the path shown above and use the build command in the reference page.

Source files · Download Mesh.cpp

#include "raster3d.hpp"
using namespace gaspardos::graphics;

int main()
{
    Mesh value = Shapes3D::cube();
    return value.vertices.empty() ? 1 : 0;
}