MCPcopy Create free account
hub / github.com/XRay3D/GERBER_X3 / create

Method create

GGEasy/gcode/gcpocketoffset.cpp:27–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27void PocketCreator::create()
28{
29 if (m_gcp.tools.size() > 1) {
30 createMultiTool(m_gcp.tools, m_gcp.params[GCodeParams::Depth].toDouble());
31 } else if (m_gcp.params.contains(GCodeParams::Steps) && m_gcp.params[GCodeParams::Steps].toInt() > 0) {
32 createFixedSteps(m_gcp.tools.front(), m_gcp.params[GCodeParams::Depth].toDouble(), m_gcp.params[GCodeParams::Steps].toInt());
33 } else {
34 createStdFull(m_gcp.tools.front(), m_gcp.params[GCodeParams::Depth].toDouble());
35 }
36}
37
38void PocketCreator::createFixedSteps(const Tool& tool, const double depth, const int steps)
39{

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.80
toDoubleMethod · 0.45
containsMethod · 0.45
toIntMethod · 0.45

Tested by

no test coverage detected