26#include <boost/test/unit_test.hpp>
38SHAPE_POLY_SET convertOvalAperture(
double aWidthMm,
double aHeightMm )
47 dcode.ConvertShapeToPolygon( &item );
49 return dcode.m_Polygon;
61 int smallCount = convertOvalAperture( 2.0, 1.0 ).VertexCount();
62 int largeCount = convertOvalAperture( 40.0, 20.0 ).VertexCount();
64 BOOST_CHECK_GT( largeCount, smallCount );
71 const int tolerance = 2 *
gerbIUScale.mmToIU( 0.005 );
73 BOX2I horizontal = convertOvalAperture( 2.0, 1.0 ).BBox();
78 BOX2I vertical = convertOvalAperture( 1.0, 2.0 ).BBox();
constexpr EDA_IU_SCALE gerbIUScale
constexpr size_type GetWidth() const
constexpr size_type GetHeight() const
A gerber DCODE (also called Aperture) definition.
Hold the image data and parameters for one gerber file and layer parameters.
Represent a set of closed polygons.
EDA_ANGLE abs(const EDA_ANGLE &aAngle)
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_AUTO_TEST_CASE(OvalTessellationScalesWithSize)
BOOST_AUTO_TEST_SUITE_END()
VECTOR2< int32_t > VECTOR2I