18 lines
1.3 KiB
C++
18 lines
1.3 KiB
C++
|
|
#include <gtest/gtest.h>
|
||
|
|
#include "vde/gpu/gpu_acceleration.h"
|
||
|
|
#include "vde/brep/fastener_library.h"
|
||
|
|
#include "vde/brep/flexible_assembly.h"
|
||
|
|
#include "vde/foundation/industrial_formats.h"
|
||
|
|
using namespace vde;
|
||
|
|
TEST(GPUTest, MC) { auto m=gpu::gpu_marching_cubes([](double,double,double){return 0.0;},{{-1,-1,-1},{1,1,1}},16); SUCCEED(); }
|
||
|
|
TEST(GPUTest, Simplify) { mesh::HalfedgeMesh m; auto r=gpu::gpu_mesh_simplify(m); SUCCEED(); }
|
||
|
|
TEST(FastenerTest, Bolt) { auto b=fasteners::create_bolt(8,40); EXPECT_GE(b.num_faces(),1u); }
|
||
|
|
TEST(FastenerTest, Nut) { auto n=fasteners::create_nut(8); EXPECT_GE(n.num_faces(),1u); }
|
||
|
|
TEST(FastenerTest, Washer) { auto w=fasteners::create_washer(8,16); EXPECT_GE(w.num_faces(),1u); }
|
||
|
|
TEST(FastenerTest, ThreadedHole) { auto h=fasteners::create_threaded_hole(8,20); EXPECT_GE(h.num_faces(),1u); }
|
||
|
|
TEST(FlexAssemblyTest, Create) { std::vector<brep::BrepModel> parts; auto a=brep::create_flexible_assembly(parts,{}); SUCCEED(); }
|
||
|
|
TEST(IndustrialFormatTest, JT) { auto r=io::import_jt(""); io::export_jt({},""); SUCCEED(); }
|
||
|
|
TEST(IndustrialFormatTest, Parasolid) { auto r=io::import_parasolid_xt(""); io::export_parasolid_xt({},""); SUCCEED(); }
|
||
|
|
TEST(IndustrialFormatTest, ACIS) { auto r=io::import_acis_sat(""); io::export_acis_sat({},""); SUCCEED(); }
|
||
|
|
TEST(IndustrialFormatTest, PDF3D) { auto r=io::export_pdf3d({}); EXPECT_GE(r.size(),0u); }
|