Files
茂之钳 81011627ee
Build & Test / build-and-test (push) Has been cancelled
VDE Build & Test / build-and-test (push) Has been cancelled
Build & Test / python-bindings (push) Has been cancelled
debug: add step-by-step COLLADA/glTF debug tests
2026-08-02 12:33:13 +08:00

15 lines
564 B
C++

#include "vde/brep/brep.h"
#include "vde/brep/modeling.h"
#include "vde/foundation/io_collada.h"
#include <iostream>
int main() {
auto b = vde::brep::make_box(10,10,10);
std::cout << "faces: " << b.num_faces() << std::endl;
std::vector<vde::brep::BrepModel> bodies = {b};
std::cout << "export..." << std::endl;
bool ok = vde::foundation::export_collada(bodies, "/tmp/test.dae");
std::cout << "export=" << ok << std::endl;
auto r = vde::foundation::import_collada("/tmp/test.dae");
std::cout << "import=" << r.size() << std::endl;
}