24#include <boost/test/unit_test.hpp> 
   54    BOOST_REQUIRE_EQUAL( chamfer_result.has_value(), aTestCase.
m_expected_result.has_value() );
 
   56    if( chamfer_result.has_value() )
 
   64        const auto check_updated_seg =
 
   65                [&]( 
const std::optional<SEG>& updated_seg, 
const std::optional<SEG>& expected_seg )
 
   67                    BOOST_REQUIRE_EQUAL( updated_seg.has_value(), expected_seg.has_value() );
 
   69                    if( updated_seg.has_value() )
 
   72                                               ( *updated_seg )( *expected_seg ) );
 
 
std::optional< CHAMFER_RESULT > ComputeChamferPoints(const SEG &aSegA, const SEG &aSegB, const CHAMFER_PARAMS &aChamferParams)
Compute the chamfer points for a given line pair and chamfer parameters.
 
bool SegmentsHaveSameEndPoints(const SEG &aSeg1, const SEG &aSeg2)
Check that two SEGs have the same end points, in either order.
 
Parameters that define a simple chamfer operation.
 
std::optional< SEG > m_updated_seg_a
 
std::optional< SEG > m_updated_seg_b
 
Declares the FilletFixture struct as the boost test fixture.
 
std::optional< CHAMFER_RESULT > m_expected_result
 
static void DoChamferTestChecks(const TWO_LINE_CHAMFER_TEST_CASE &aTestCase)
 
BOOST_AUTO_TEST_CASE(SimpleChamferAtOrigin)
 
BOOST_AUTO_TEST_SUITE_END()
 
BOOST_CHECK_PREDICATE(ArePolylineEndPointsNearCircle,(chain)(c.m_geom.m_center_point)(radius)(accuracy+epsilon))
 
VECTOR2< int32_t > VECTOR2I