Commit 84aa7eb2 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[test][constraints][quad] test against quad shape, too

parent 871026e8
......@@ -5,6 +5,7 @@
#include <frackit/geometry/quadrilateral.hh>
#include <frackit/geometry/cylinder.hh>
#include <frackit/entitynetwork/constraints.hh>
#include <frackit/occ/breputilities.hh>
//! test the constraints for entity networks of quadrilaterals
int main()
......@@ -105,6 +106,17 @@ int main()
throw std::runtime_error("False positive intersection distance violation");
std::cout << "Test 8 passed" << std::endl;
// test the two above also with a shape representation of the main quad
{
if (constraints.evaluate(mainQuad, Frackit::OCCUtilities::getShape(quad7)))
throw std::runtime_error("Did not detect intersection distance violation");
std::cout << "Test 7 (with shape) passed" << std::endl;
if (!constraints.evaluate(mainQuad, Frackit::OCCUtilities::getShape(quad8)))
throw std::runtime_error("False positive intersection distance violation");
std::cout << "Test 8 (with shape) passed" << std::endl;
}
// intersection angle just ok
Quad quad9(Point(-0.5, -0.5, -0.5 - 1e-3),
Point( 0.5, -0.5, -0.5 - 1e-3),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment