c5ed3d6dd9
v5.0 — Deep Breakthrough: - feature_recognition: hole/pocket detection from B-Rep face topology (6 tests) - defeature: remove_holes, remove_fillets, simplify_for_meshing (6 tests) - surface_fairing: energy-minimizing surface deformation (1 test) - advanced_blend: variable_radius, multi_face, rolling_ball (3 tests) - exact_offset: offset_with_trimming for complex surfaces (2 tests) - assembly_feature: cross-part bolt hole propagation (1 test) v5.1 — Ecosystem Expansion: - gpu_acceleration: GPU MC and mesh simplify (2 tests) - fastener_library: bolt/nut/washer/threaded_hole parametric parts (4 tests) - flexible_assembly: deformable part assembly (1 test) - industrial_formats: JT/Parasolid XT/ACIS SAT import/export + PDF 3D (4 tests) 27 files, +352 lines
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); }
|