#include "vde/brep/brep.h" #include "vde/brep/modeling.h" #include "vde/foundation/io_gltf.h" #include int main() { auto b = vde::brep::make_box(10,10,10); std::cout << "box faces: " << b.num_faces() << std::endl; bool ok = vde::foundation::write_brep_gltf("/tmp/x.glb", b, 4); std::cout << "write: " << ok << std::endl; auto r = vde::foundation::import_gltf("/tmp/x.glb"); std::cout << "import: meshes=" << r.meshes.size() << " ok=" << r.success << std::endl; if (!r.error_message.empty()) std::cout << "ERR: " << r.error_message << std::endl; }