aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten/src/out_gerber.cpp
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-06-20 18:30:34 +0200
committerjaseg <git@jaseg.de>2022-06-20 18:30:34 +0200
commite4a0c1ba4a16c0e0f7c1013afd924ecb41b41f05 (patch)
tree5de4c8e20238b2c1a8c527cc62441315031bcd6f /svg-flatten/src/out_gerber.cpp
parent9e9cc2bc019f0e67720ad5da16315e7cd6781e78 (diff)
downloadgerbolyze-e4a0c1ba4a16c0e0f7c1013afd924ecb41b41f05.tar.gz
gerbolyze-e4a0c1ba4a16c0e0f7c1013afd924ecb41b41f05.tar.bz2
gerbolyze-e4a0c1ba4a16c0e0f7c1013afd924ecb41b41f05.zip
Fix outline mode clip & flash handling
Diffstat (limited to 'svg-flatten/src/out_gerber.cpp')
-rw-r--r--svg-flatten/src/out_gerber.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/svg-flatten/src/out_gerber.cpp b/svg-flatten/src/out_gerber.cpp
index 0b0a6bf..543d641 100644
--- a/svg-flatten/src/out_gerber.cpp
+++ b/svg-flatten/src/out_gerber.cpp
@@ -126,17 +126,6 @@ SimpleGerberOutput& SimpleGerberOutput::operator<<(const Polygon &poly) {
return *this;
}
-SimpleGerberOutput &SimpleGerberOutput::operator<<(const DrillToken &tok) {
- double x = round((tok.m_center[0] * m_scale + m_offset[0]) * m_gerber_scale);
- double y = round((m_height - tok.m_center[1] * m_scale + m_offset[1]) * m_gerber_scale);
-
- m_out << "X" << setw(m_digits_int + m_digits_frac) << setfill('0') << std::internal /* isn't C++ a marvel of engineering? */ << (long long int)x
- << "Y" << setw(m_digits_int + m_digits_frac) << setfill('0') << std::internal << (long long int)y
- << "D03*" << endl;
-
- return *this;
-}
-
void SimpleGerberOutput::footer_impl() {
m_out << "M02*" << endl;
}