15 lines
564 B
C++
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;
|
|
}
|