-// Copyright (C) 2007-2012 CEA/DEN, EDF R&D
+// Copyright (C) 2007-2015 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
#include "InterpKernelGeo2DEdgeArcCircle.hxx"
#include "InterpKernelGeo2DQuadraticPolygon.hxx"
-using namespace INTERP_KERNEL;
-
namespace INTERP_TEST
{
class INTERPKERNELTEST_EXPORT QuadraticPlanarInterpTest : public CppUnit::TestFixture
//
CPPUNIT_TEST( checkNormalize );
CPPUNIT_TEST( checkMakePartitionAbs1 );
+ //
+ CPPUNIT_TEST( checkIsInOrOut );
+ CPPUNIT_TEST( checkGetMiddleOfPoints );
+ CPPUNIT_TEST( checkGetMiddleOfPointsOriented );
CPPUNIT_TEST_SUITE_END();
public:
void setUp();
//
void checkNormalize();
void checkMakePartitionAbs1();
+ // From Adrien:
+ void checkIsInOrOut();
+ void checkGetMiddleOfPoints();
+ void checkGetMiddleOfPointsOriented();
+
private:
- QuadraticPolygon *buildQuadraticPolygonCoarseInfo(const double *coords, const int *conn, int lgth);
- EdgeArcCircle *buildArcOfCircle(const double *center, double radius, double alphaStart, double alphaEnd);
- double btw2NodesAndACenter(const Node& n1, const Node& n2, const double *center);
- void checkBasicsOfPolygons(QuadraticPolygon& pol1, QuadraticPolygon& pol2, bool checkDirection);
+ INTERP_KERNEL::QuadraticPolygon *buildQuadraticPolygonCoarseInfo(const double *coords, const int *conn, int lgth);
+ INTERP_KERNEL::EdgeArcCircle *buildArcOfCircle(const double *center, double radius, double alphaStart, double alphaEnd);
+ double btw2NodesAndACenter(const INTERP_KERNEL::Node& n1, const INTERP_KERNEL::Node& n2, const double *center);
+ void checkBasicsOfPolygons(INTERP_KERNEL::QuadraticPolygon& pol1, INTERP_KERNEL::QuadraticPolygon& pol2, bool checkDirection);
};
}