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
12 lines
884 B
C++
12 lines
884 B
C++
#include <gtest/gtest.h>
|
|
#include "vde/brep/feature_recognition.h"
|
|
#include "vde/brep/defeature.h"
|
|
#include "vde/brep/modeling.h"
|
|
using namespace vde::brep;
|
|
TEST(FeatureRecognitionTest, Empty) { BrepModel b; auto r=recognize_features(b); EXPECT_EQ(r.features.size(),0u); }
|
|
TEST(FeatureRecognitionTest, Box) { auto b=make_box(2,2,2); auto r=recognize_features(b); EXPECT_GE(r.features.size(),0u); }
|
|
TEST(FeatureRecognitionTest, HoleCount) { auto b=make_box(2,2,2); auto r=recognize_features(b); EXPECT_GE(r.hole_count,0); }
|
|
TEST(DefeatureTest, RemoveHoles) { auto b=make_box(2,2,2); auto r=remove_holes(b); EXPECT_GE(r.num_faces(),1u); }
|
|
TEST(DefeatureTest, RemoveFillets) { auto b=make_box(2,2,2); auto r=remove_fillets(b); EXPECT_GE(r.num_faces(),1u); }
|
|
TEST(DefeatureTest, SimplifyForMeshing) { auto b=make_box(2,2,2); auto r=simplify_for_meshing(b); EXPECT_GE(r.num_faces(),1u); }
|