mirror of https://github.com/CGAL/cgal
test distance
This commit is contained in:
parent
2e56e8d298
commit
d5e2c05c42
|
|
@ -102,6 +102,8 @@ create_single_source_cgal_program("test_pmp_manifoldness.cpp")
|
|||
create_single_source_cgal_program("test_mesh_smoothing.cpp")
|
||||
create_single_source_cgal_program("test_remove_caps_needles.cpp")
|
||||
create_single_source_cgal_program("test_simplify_polylines_pmp.cpp")
|
||||
create_single_source_cgal_program("test_pmp_polyhedral_envelope.cpp")
|
||||
|
||||
# create_single_source_cgal_program("test_pmp_repair_self_intersections.cpp")
|
||||
|
||||
if(TARGET CGAL::TBB_support)
|
||||
|
|
|
|||
|
|
@ -96,8 +96,25 @@ void test_remove_si()
|
|||
assert(!PMP::does_self_intersect(tm));
|
||||
}
|
||||
|
||||
void cube_test()
|
||||
{
|
||||
std::cout << "---- cube_test() ----\n";
|
||||
CGAL::Surface_mesh<EPIC::Point_3> tm;
|
||||
std::ifstream in("data-coref/cube_meshed.off");
|
||||
in >> tm;
|
||||
assert(tm.vertices().size()!=0);
|
||||
|
||||
typedef EPIC::Point_3 P;
|
||||
CGAL::Polyhedral_envelope<EPIC> envelope(tm, 0.1);
|
||||
assert(envelope(P(0,0,0), P(1,0,0), P(1,1,0)));
|
||||
assert(envelope(P(0,0,0.05), P(1,0,0.05), P(1,1,0.05)));
|
||||
// assert(envelope(P(0,0,0.1), P(1,0,0.1), P(1,1,0.1))); // NOT WORKING
|
||||
assert(!envelope(P(0,0,0.2), P(1,0,0.2), P(1,1,0.2)));
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
test_remove_si();
|
||||
test_API();
|
||||
}
|
||||
cube_test();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue