KiCad PCB EDA Suite
zone_filler.cpp File Reference
#include <cstdint>
#include <thread>
#include <mutex>
#include <algorithm>
#include <future>
#include <class_board.h>
#include <class_zone.h>
#include <class_module.h>
#include <class_edge_mod.h>
#include <class_drawsegment.h>
#include <class_track.h>
#include <class_pcb_text.h>
#include <class_pcb_target.h>
#include <connectivity/connectivity_data.h>
#include <board_commit.h>
#include <widgets/progress_reporter.h>
#include <geometry/shape_poly_set.h>
#include <geometry/shape_file_io.h>
#include <geometry/convex_hull.h>
#include <geometry/geometry_utils.h>
#include <confirm.h>
#include "zone_filler.h"

Go to the source code of this file.

Functions

void CreateThermalReliefPadPolygon (SHAPE_POLY_SET &aCornerBuffer, const D_PAD &aPad, int aThermalGap, int aCopperThickness, int aMinThicknessValue, int aCircleToSegmentsCount, double aCorrectionFactor, double aThermalRot)
 Function CreateThermalReliefPadPolygon Add holes around a pad to create a thermal relief copper thickness is min (dx/2, aCopperWitdh) or min (dy/2, aCopperWitdh) More...
 

Variables

static double s_thermalRot = 450
 
static const bool s_DumpZonesWhenFilling = false
 

Function Documentation

◆ CreateThermalReliefPadPolygon()

void CreateThermalReliefPadPolygon ( SHAPE_POLY_SET aCornerBuffer,
const D_PAD aPad,
int  aThermalGap,
int  aCopperThickness,
int  aMinThicknessValue,
int  aCircleToSegmentsCount,
double  aCorrectionFactor,
double  aThermalRot 
)

Function CreateThermalReliefPadPolygon Add holes around a pad to create a thermal relief copper thickness is min (dx/2, aCopperWitdh) or min (dy/2, aCopperWitdh)

Parameters
aCornerBuffer= a buffer to store the polygon
aPad= the current pad used to create the thermal shape
aThermalGap= gap in thermal shape
aCopperThickness= stubs thickness in thermal shape
aMinThicknessValue= min copper thickness allowed
aCircleToSegmentsCount= the number of segments to approximate a circle
aCorrectionFactor= the correction to apply to circles radius to keep
aThermalRot= for rond pads the rotation of thermal stubs (450 usually for 45 deg.)

Definition at line 928 of file board_items_to_polygon_shape_transform.cpp.

936 {
937  wxPoint corner, corner_end;
938  wxPoint padShapePos = aPad.ShapePos(); // Note: for pad having a shape offset,
939  // the pad position is NOT the shape position
940  wxSize copper_thickness;
941 
942  double delta = 3600.0 / aCircleToSegmentsCount; // rot angle in 0.1 degree
943 
944  /* Keep in account the polygon outline thickness
945  * aThermalGap must be increased by aMinThicknessValue/2 because drawing external outline
946  * with a thickness of aMinThicknessValue will reduce gap by aMinThicknessValue/2
947  */
948  aThermalGap += aMinThicknessValue / 2;
949 
950  /* Keep in account the polygon outline thickness
951  * copper_thickness must be decreased by aMinThicknessValue because drawing outlines
952  * with a thickness of aMinThicknessValue will increase real thickness by aMinThicknessValue
953  */
954  int dx = aPad.GetSize().x / 2;
955  int dy = aPad.GetSize().y / 2;
956 
957  copper_thickness.x = std::min( aPad.GetSize().x, aCopperThickness ) - aMinThicknessValue;
958  copper_thickness.y = std::min( aPad.GetSize().y, aCopperThickness ) - aMinThicknessValue;
959 
960  if( copper_thickness.x < 0 )
961  copper_thickness.x = 0;
962 
963  if( copper_thickness.y < 0 )
964  copper_thickness.y = 0;
965 
966  switch( aPad.GetShape() )
967  {
968  case PAD_SHAPE_CIRCLE: // Add 4 similar holes
969  {
970  /* we create 4 copper holes and put them in position 1, 2, 3 and 4
971  * here is the area of the rectangular pad + its thermal gap
972  * the 4 copper holes remove the copper in order to create the thermal gap
973  * 4 ------ 1
974  * | |
975  * | |
976  * | |
977  * | |
978  * 3 ------ 2
979  * holes 2, 3, 4 are the same as hole 1, rotated 90, 180, 270 deg
980  */
981 
982  // Build the hole pattern, for the hole in the X >0, Y > 0 plane:
983  // The pattern roughtly is a 90 deg arc pie
984  std::vector <wxPoint> corners_buffer;
985 
986  // Radius of outer arcs of the shape corrected for arc approximation by lines
987  int outer_radius = KiROUND( (dx + aThermalGap) * aCorrectionFactor );
988 
989  // Crosspoint of thermal spoke sides, the first point of polygon buffer
990  corners_buffer.push_back( wxPoint( copper_thickness.x / 2, copper_thickness.y / 2 ) );
991 
992  // Add an intermediate point on spoke sides, to allow a > 90 deg angle between side
993  // and first seg of arc approx
994  corner.x = copper_thickness.x / 2;
995  int y = outer_radius - (aThermalGap / 4);
996  corner.y = KiROUND( sqrt( ( (double) y * y - (double) corner.x * corner.x ) ) );
997 
998  if( aThermalRot != 0 )
999  corners_buffer.push_back( corner );
1000 
1001  // calculate the starting point of the outter arc
1002  corner.x = copper_thickness.x / 2;
1003 
1004  corner.y = KiROUND( sqrt( ( (double) outer_radius * outer_radius ) -
1005  ( (double) corner.x * corner.x ) ) );
1006  RotatePoint( &corner, 90 ); // 9 degrees is the spoke fillet size
1007 
1008  // calculate the ending point of the outter arc
1009  corner_end.x = corner.y;
1010  corner_end.y = corner.x;
1011 
1012  // calculate intermediate points (y coordinate from corner.y to corner_end.y
1013  while( (corner.y > corner_end.y) && (corner.x < corner_end.x) )
1014  {
1015  corners_buffer.push_back( corner );
1016  RotatePoint( &corner, delta );
1017  }
1018 
1019  corners_buffer.push_back( corner_end );
1020 
1021  /* add an intermediate point, to avoid angles < 90 deg between last arc approx line
1022  * and radius line
1023  */
1024  corner.x = corners_buffer[1].y;
1025  corner.y = corners_buffer[1].x;
1026  corners_buffer.push_back( corner );
1027 
1028  // Now, add the 4 holes ( each is the pattern, rotated by 0, 90, 180 and 270 deg
1029  // aThermalRot = 450 (45.0 degrees orientation) work fine.
1030  double angle_pad = aPad.GetOrientation(); // Pad orientation
1031  double th_angle = aThermalRot;
1032 
1033  for( unsigned ihole = 0; ihole < 4; ihole++ )
1034  {
1035  aCornerBuffer.NewOutline();
1036 
1037  for( unsigned ii = 0; ii < corners_buffer.size(); ii++ )
1038  {
1039  corner = corners_buffer[ii];
1040  RotatePoint( &corner, th_angle + angle_pad ); // Rotate by segment angle and pad orientation
1041  corner += padShapePos;
1042  aCornerBuffer.Append( corner.x, corner.y );
1043  }
1044 
1045  th_angle += 900; // Note: th_angle in in 0.1 deg.
1046  }
1047  }
1048  break;
1049 
1050  case PAD_SHAPE_OVAL:
1051  {
1052  // Oval pad support along the lines of round and rectangular pads
1053  std::vector <wxPoint> corners_buffer; // Polygon buffer as vector
1054 
1055  dx = (aPad.GetSize().x / 2) + aThermalGap; // Cutout radius x
1056  dy = (aPad.GetSize().y / 2) + aThermalGap; // Cutout radius y
1057 
1058  wxPoint shape_offset;
1059 
1060  // We want to calculate an oval shape with dx > dy.
1061  // if this is not the case, exchange dx and dy, and rotate the shape 90 deg.
1062  int supp_angle = 0;
1063 
1064  if( dx < dy )
1065  {
1066  std::swap( dx, dy );
1067  supp_angle = 900;
1068  std::swap( copper_thickness.x, copper_thickness.y );
1069  }
1070 
1071  int deltasize = dx - dy; // = distance between shape position and the 2 demi-circle ends centre
1072  // here we have dx > dy
1073  // Radius of outer arcs of the shape:
1074  int outer_radius = dy; // The radius of the outer arc is radius end + aThermalGap
1075 
1076  // Some coordinate fiddling, depending on the shape offset direction
1077  shape_offset = wxPoint( deltasize, 0 );
1078 
1079  // Crosspoint of thermal spoke sides, the first point of polygon buffer
1080  corner.x = copper_thickness.x / 2;
1081  corner.y = copper_thickness.y / 2;
1082  corners_buffer.push_back( corner );
1083 
1084  // Arc start point calculation, the intersecting point of cutout arc and thermal spoke edge
1085  // If copper thickness is more than shape offset, we need to calculate arc intercept point.
1086  if( copper_thickness.x > deltasize )
1087  {
1088  corner.x = copper_thickness.x / 2;
1089  corner.y = KiROUND( sqrt( ( (double) outer_radius * outer_radius ) -
1090  ( (double) ( corner.x - delta ) * ( corner.x - deltasize ) ) ) );
1091  corner.x -= deltasize;
1092 
1093  /* creates an intermediate point, to have a > 90 deg angle
1094  * between the side and the first segment of arc approximation
1095  */
1096  wxPoint intpoint = corner;
1097  intpoint.y -= aThermalGap / 4;
1098  corners_buffer.push_back( intpoint + shape_offset );
1099  RotatePoint( &corner, 90 ); // 9 degrees of thermal fillet
1100  }
1101  else
1102  {
1103  corner.x = copper_thickness.x / 2;
1104  corner.y = outer_radius;
1105  corners_buffer.push_back( corner );
1106  }
1107 
1108  // Add an intermediate point on spoke sides, to allow a > 90 deg angle between side
1109  // and first seg of arc approx
1110  wxPoint last_corner;
1111  last_corner.y = copper_thickness.y / 2;
1112  int px = outer_radius - (aThermalGap / 4);
1113  last_corner.x =
1114  KiROUND( sqrt( ( ( (double) px * px ) - (double) last_corner.y * last_corner.y ) ) );
1115 
1116  // Arc stop point calculation, the intersecting point of cutout arc and thermal spoke edge
1117  corner_end.y = copper_thickness.y / 2;
1118  corner_end.x =
1119  KiROUND( sqrt( ( (double) outer_radius *
1120  outer_radius ) - ( (double) corner_end.y * corner_end.y ) ) );
1121  RotatePoint( &corner_end, -90 ); // 9 degrees of thermal fillet
1122 
1123  // calculate intermediate arc points till limit is reached
1124  while( (corner.y > corner_end.y) && (corner.x < corner_end.x) )
1125  {
1126  corners_buffer.push_back( corner + shape_offset );
1127  RotatePoint( &corner, delta );
1128  }
1129 
1130  //corners_buffer.push_back(corner + shape_offset); // TODO: about one mil geometry error forms somewhere.
1131  corners_buffer.push_back( corner_end + shape_offset );
1132  corners_buffer.push_back( last_corner + shape_offset ); // Enabling the line above shows intersection point.
1133 
1134  /* Create 2 holes, rotated by pad rotation.
1135  */
1136  double angle = aPad.GetOrientation() + supp_angle;
1137 
1138  for( int irect = 0; irect < 2; irect++ )
1139  {
1140  aCornerBuffer.NewOutline();
1141  for( unsigned ic = 0; ic < corners_buffer.size(); ic++ )
1142  {
1143  wxPoint cpos = corners_buffer[ic];
1144  RotatePoint( &cpos, angle );
1145  cpos += padShapePos;
1146  aCornerBuffer.Append( cpos.x, cpos.y );
1147  }
1148 
1149  angle = AddAngles( angle, 1800 ); // this is calculate hole 3
1150  }
1151 
1152  // Create holes, that are the mirrored from the previous holes
1153  for( unsigned ic = 0; ic < corners_buffer.size(); ic++ )
1154  {
1155  wxPoint swap = corners_buffer[ic];
1156  swap.x = -swap.x;
1157  corners_buffer[ic] = swap;
1158  }
1159 
1160  // Now add corner 4 and 2 (2 is the corner 4 rotated by 180 deg
1161  angle = aPad.GetOrientation() + supp_angle;
1162 
1163  for( int irect = 0; irect < 2; irect++ )
1164  {
1165  aCornerBuffer.NewOutline();
1166 
1167  for( unsigned ic = 0; ic < corners_buffer.size(); ic++ )
1168  {
1169  wxPoint cpos = corners_buffer[ic];
1170  RotatePoint( &cpos, angle );
1171  cpos += padShapePos;
1172  aCornerBuffer.Append( cpos.x, cpos.y );
1173  }
1174 
1175  angle = AddAngles( angle, 1800 );
1176  }
1177  }
1178  break;
1179 
1181  case PAD_SHAPE_ROUNDRECT: // thermal shape is the same for rectangular shapes.
1182  case PAD_SHAPE_RECT:
1183  {
1184  /* we create 4 copper holes and put them in position 1, 2, 3 and 4
1185  * here is the area of the rectangular pad + its thermal gap
1186  * the 4 copper holes remove the copper in order to create the thermal gap
1187  * 1 ------ 4
1188  * | |
1189  * | |
1190  * | |
1191  * | |
1192  * 2 ------ 3
1193  * hole 3 is the same as hole 1, rotated 180 deg
1194  * hole 4 is the same as hole 2, rotated 180 deg and is the same as hole 1, mirrored
1195  */
1196 
1197  // First, create a rectangular hole for position 1 :
1198  // 2 ------- 3
1199  // | |
1200  // | |
1201  // | |
1202  // 1 -------4
1203 
1204  // Modified rectangles with one corner rounded. TODO: merging with oval thermals
1205  // and possibly round too.
1206 
1207  std::vector <wxPoint> corners_buffer; // Polygon buffer as vector
1208 
1209  dx = (aPad.GetSize().x / 2) + aThermalGap; // Cutout radius x
1210  dy = (aPad.GetSize().y / 2) + aThermalGap; // Cutout radius y
1211 
1212  // calculation is optimized for pad shape with dy >= dx (vertical rectangle).
1213  // if it is not the case, just rotate this shape 90 degrees:
1214  double angle = aPad.GetOrientation();
1215  wxPoint corner_origin_pos( -aPad.GetSize().x / 2, -aPad.GetSize().y / 2 );
1216 
1217  if( dy < dx )
1218  {
1219  std::swap( dx, dy );
1220  std::swap( copper_thickness.x, copper_thickness.y );
1221  std::swap( corner_origin_pos.x, corner_origin_pos.y );
1222  angle += 900.0;
1223  }
1224  // Now calculate the hole pattern in position 1 ( top left pad corner )
1225 
1226  // The first point of polygon buffer is left lower corner, second the crosspoint of
1227  // thermal spoke sides, the third is upper right corner and the rest are rounding
1228  // vertices going anticlockwise. Note the inverted Y-axis in corners_buffer y coordinates.
1229  wxPoint arc_end_point( -dx, -(aThermalGap / 4 + copper_thickness.y / 2) );
1230  corners_buffer.push_back( arc_end_point ); // Adds small miters to zone
1231  corners_buffer.push_back( wxPoint( -(dx - aThermalGap / 4), -copper_thickness.y / 2 ) ); // fill and spoke corner
1232  corners_buffer.push_back( wxPoint( -copper_thickness.x / 2, -copper_thickness.y / 2 ) );
1233  corners_buffer.push_back( wxPoint( -copper_thickness.x / 2, -(dy - aThermalGap / 4) ) );
1234  // The first point to build the rounded corner:
1235  wxPoint arc_start_point( -(aThermalGap / 4 + copper_thickness.x / 2) , -dy );
1236  corners_buffer.push_back( arc_start_point );
1237 
1238  int rounding_radius = KiROUND( aThermalGap * aCorrectionFactor ); // Corner rounding radius
1239 
1240  // Calculate arc angle parameters.
1241  // the start angle id near 900 decidegrees, the final angle is near 1800.0 decidegrees.
1242  double arc_increment = 3600.0 / aCircleToSegmentsCount;
1243 
1244  // the arc_angle_start is 900.0 or slighly more, depending on the actual arc starting point
1245  double arc_angle_start = atan2( -arc_start_point.y -corner_origin_pos.y, arc_start_point.x - corner_origin_pos.x ) * 1800/M_PI;
1246  if( arc_angle_start < 900.0 )
1247  arc_angle_start = 900.0;
1248 
1249  bool first_point = true;
1250  for( double curr_angle = arc_angle_start; ; curr_angle += arc_increment )
1251  {
1252  wxPoint corner_position = wxPoint( rounding_radius, 0 );
1253  RotatePoint( &corner_position, curr_angle ); // Rounding vector rotation
1254  corner_position += corner_origin_pos; // Rounding vector + Pad corner offset
1255 
1256  // The arc angle is <= 90 degrees, therefore the arc is finished if the x coordinate
1257  // decrease or the y coordinate is smaller than the y end point
1258  if( !first_point &&
1259  ( corner_position.x >= corners_buffer.back().x || corner_position.y > arc_end_point.y ) )
1260  break;
1261 
1262  first_point = false;
1263 
1264  // Note: for hole in position 1, arc x coordinate is always < x starting point
1265  // and arc y coordinate is always <= y ending point
1266  if( corner_position != corners_buffer.back() // avoid duplicate corners.
1267  && corner_position.x <= arc_start_point.x ) // skip current point at the right of the starting point
1268  corners_buffer.push_back( corner_position );
1269  }
1270 
1271  for( int irect = 0; irect < 2; irect++ )
1272  {
1273  aCornerBuffer.NewOutline();
1274 
1275  for( unsigned ic = 0; ic < corners_buffer.size(); ic++ )
1276  {
1277  wxPoint cpos = corners_buffer[ic];
1278  RotatePoint( &cpos, angle ); // Rotate according to module orientation
1279  cpos += padShapePos; // Shift origin to position
1280  aCornerBuffer.Append( cpos.x, cpos.y );
1281  }
1282 
1283  angle = AddAngles( angle, 1800 ); // this is calculate hole 3
1284  }
1285 
1286  // Create holes, that are the mirrored from the previous holes
1287  for( unsigned ic = 0; ic < corners_buffer.size(); ic++ )
1288  {
1289  wxPoint swap = corners_buffer[ic];
1290  swap.x = -swap.x;
1291  corners_buffer[ic] = swap;
1292  }
1293 
1294  // Now add corner 4 and 2 (2 is the corner 4 rotated by 180 deg
1295  for( int irect = 0; irect < 2; irect++ )
1296  {
1297  aCornerBuffer.NewOutline();
1298 
1299  for( unsigned ic = 0; ic < corners_buffer.size(); ic++ )
1300  {
1301  wxPoint cpos = corners_buffer[ic];
1302  RotatePoint( &cpos, angle );
1303  cpos += padShapePos;
1304  aCornerBuffer.Append( cpos.x, cpos.y );
1305  }
1306 
1307  angle = AddAngles( angle, 1800 );
1308  }
1309  }
1310  break;
1311 
1312  case PAD_SHAPE_TRAPEZOID:
1313  {
1314  SHAPE_POLY_SET antipad; // The full antipad area
1315 
1316  // We need a length to build the stubs of the thermal reliefs
1317  // the value is not very important. The pad bounding box gives a reasonable value
1318  EDA_RECT bbox = aPad.GetBoundingBox();
1319  int stub_len = std::max( bbox.GetWidth(), bbox.GetHeight() );
1320 
1321  aPad.TransformShapeWithClearanceToPolygon( antipad, aThermalGap,
1322  aCircleToSegmentsCount, aCorrectionFactor );
1323 
1324  SHAPE_POLY_SET stub; // A basic stub ( a rectangle)
1325  SHAPE_POLY_SET stubs; // the full stubs shape
1326 
1327 
1328  // We now substract the stubs (connections to the copper zone)
1329  //ClipperLib::Clipper clip_engine;
1330  // Prepare a clipping transform
1331  //clip_engine.AddPath( antipad, ClipperLib::ptSubject, true );
1332 
1333  // Create stubs and add them to clipper engine
1334  wxPoint stubBuffer[4];
1335  stubBuffer[0].x = stub_len;
1336  stubBuffer[0].y = copper_thickness.y/2;
1337  stubBuffer[1] = stubBuffer[0];
1338  stubBuffer[1].y = -copper_thickness.y/2;
1339  stubBuffer[2] = stubBuffer[1];
1340  stubBuffer[2].x = -stub_len;
1341  stubBuffer[3] = stubBuffer[2];
1342  stubBuffer[3].y = copper_thickness.y/2;
1343 
1344  stub.NewOutline();
1345 
1346  for( unsigned ii = 0; ii < arrayDim( stubBuffer ); ii++ )
1347  {
1348  wxPoint cpos = stubBuffer[ii];
1349  RotatePoint( &cpos, aPad.GetOrientation() );
1350  cpos += padShapePos;
1351  stub.Append( cpos.x, cpos.y );
1352  }
1353 
1354  stubs.Append( stub );
1355 
1356  stubBuffer[0].y = stub_len;
1357  stubBuffer[0].x = copper_thickness.x/2;
1358  stubBuffer[1] = stubBuffer[0];
1359  stubBuffer[1].x = -copper_thickness.x/2;
1360  stubBuffer[2] = stubBuffer[1];
1361  stubBuffer[2].y = -stub_len;
1362  stubBuffer[3] = stubBuffer[2];
1363  stubBuffer[3].x = copper_thickness.x/2;
1364 
1365  stub.RemoveAllContours();
1366  stub.NewOutline();
1367 
1368  for( unsigned ii = 0; ii < arrayDim( stubBuffer ); ii++ )
1369  {
1370  wxPoint cpos = stubBuffer[ii];
1371  RotatePoint( &cpos, aPad.GetOrientation() );
1372  cpos += padShapePos;
1373  stub.Append( cpos.x, cpos.y );
1374  }
1375 
1376  stubs.Append( stub );
1378 
1379  antipad.BooleanSubtract( stubs, SHAPE_POLY_SET::PM_FAST );
1380  aCornerBuffer.Append( antipad );
1381 
1382  break;
1383  }
1384 
1385  default:
1386  ;
1387  }
1388 }
static int KiROUND(double v)
Round a floating point number to an integer using "round halfway cases away from zero".
Definition: common.h:121
int GetWidth() const
Definition: eda_rect.h:117
void RotatePoint(int *pX, int *pY, double angle)
Definition: trigo.cpp:216
static const int delta[8][2]
Definition: solve.cpp:112
void TransformShapeWithClearanceToPolygon(SHAPE_POLY_SET &aCornerBuffer, int aClearanceValue, int aCircleToSegmentsCount, double aCorrectionFactor, bool ignoreLineWidth=false) const override
Function TransformShapeWithClearanceToPolygon Convert the pad shape to a closed polygon Used in filli...
T AddAngles(T a1, T2 a2)
Add two angles (keeping the result normalized). T2 is here.
Definition: trigo.h:288
Class SHAPE_POLY_SET.
void Simplify(POLYGON_MODE aFastMode)
Simplifies the polyset (merges overlapping polys, eliminates degeneracy/self-intersections) For aFast...
int NewOutline()
Creates a new empty polygon in the set and returns its index
int GetHeight() const
Definition: eda_rect.h:118
constexpr std::size_t arrayDim(T const (&)[N]) noexcept
Definition: macros.h:99
#define max(a, b)
Definition: auxiliary.h:86
double GetOrientation() const
Function GetOrientation returns the rotation angle of the pad in tenths of degrees,...
Definition: class_pad.h:389
static DIRECTION_45::AngleType angle(const VECTOR2I &a, const VECTOR2I &b)
void RemoveAllContours()
Removes all outlines & holes (clears) the polygon set.
wxPoint ShapePos() const
Definition: class_pad.cpp:562
Class EDA_RECT handles the component boundary box.
Definition: eda_rect.h:44
void BooleanSubtract(const SHAPE_POLY_SET &b, POLYGON_MODE aFastMode)
Performs boolean polyset difference For aFastMode meaning, see function booleanOp
PAD_SHAPE_T GetShape() const
Function GetShape.
Definition: class_pad.h:216
const wxSize & GetSize() const
Definition: class_pad.h:269
const EDA_RECT GetBoundingBox() const override
Function GetBoundingBox returns the orthogonal, bounding box of this object for display purposes.
Definition: class_pad.cpp:226
#define min(a, b)
Definition: auxiliary.h:85
int Append(int x, int y, int aOutline=-1, int aHole=-1, bool aAllowDuplication=false)
Appends a vertex at the end of the given outline/hole (default: the last outline)

References AddAngles(), PNS::angle(), SHAPE_POLY_SET::Append(), arrayDim(), SHAPE_POLY_SET::BooleanSubtract(), delta, D_PAD::GetBoundingBox(), EDA_RECT::GetHeight(), D_PAD::GetOrientation(), D_PAD::GetShape(), D_PAD::GetSize(), EDA_RECT::GetWidth(), KiROUND(), max, min, SHAPE_POLY_SET::NewOutline(), PAD_SHAPE_CHAMFERED_RECT, PAD_SHAPE_CIRCLE, PAD_SHAPE_OVAL, PAD_SHAPE_RECT, PAD_SHAPE_ROUNDRECT, PAD_SHAPE_TRAPEZOID, SHAPE_POLY_SET::PM_FAST, SHAPE_POLY_SET::RemoveAllContours(), RotatePoint(), D_PAD::ShapePos(), SHAPE_POLY_SET::Simplify(), and D_PAD::TransformShapeWithClearanceToPolygon().

Referenced by ZONE_FILLER::buildZoneFeatureHoleList().

Variable Documentation

◆ s_DumpZonesWhenFilling

const bool s_DumpZonesWhenFilling = false
static

Definition at line 65 of file zone_filler.cpp.

Referenced by ZONE_FILLER::computeRawFilledAreas().

◆ s_thermalRot

double s_thermalRot = 450
static