2b1266c647
Contributes to issue CURA-3006.
24 linhas
402 B
C++
24 linhas
402 B
C++
//Copyright (C) 2016 Ultimaker
|
|
//Released under terms of the AGPLv3 License
|
|
|
|
#include "GCodePath.h"
|
|
|
|
namespace cura
|
|
{
|
|
|
|
bool GCodePath::isTravelPath()
|
|
{
|
|
return config->isTravelPath();
|
|
}
|
|
|
|
double GCodePath::getExtrusionMM3perMM()
|
|
{
|
|
return flow * config->getExtrusionMM3perMM();
|
|
}
|
|
|
|
int GCodePath::getLineWidth()
|
|
{
|
|
return flow * config->getLineWidth() * config->getFlowPercentage() / 100.0;
|
|
}
|
|
|
|
} |