mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 22:24:27 +08:00
gridline more depth
(cherry picked from commit 3ea5a75388511d7706b2c630384dcd044a637191)
This commit is contained in:
parent
c48aca1704
commit
a685633e87
@ -42,6 +42,7 @@ using boost::optional;
|
||||
namespace fs = boost::filesystem;
|
||||
|
||||
static const float GROUND_Z = -0.03f;
|
||||
static const float GROUND_Z_GRIDLINE = -0.26f;
|
||||
static const float GRABBER_X_FACTOR = 0.20f;
|
||||
static const float GRABBER_Y_FACTOR = 0.03f;
|
||||
static const float GRABBER_Z_VALUE = 0.5f;
|
||||
@ -376,10 +377,10 @@ void PartPlate::calc_gridlines(const ExPolygon& poly, const BoundingBox& pp_bbox
|
||||
Lines contour_lines = to_lines(poly);
|
||||
std::copy(contour_lines.begin(), contour_lines.end(), std::back_inserter(gridlines));
|
||||
|
||||
if (!m_gridlines.set_from_lines(gridlines, -0.06f))
|
||||
if (!m_gridlines.set_from_lines(gridlines, GROUND_Z_GRIDLINE))
|
||||
BOOST_LOG_TRIVIAL(error) << __FUNCTION__ << "Unable to create bed grid lines\n";
|
||||
|
||||
if (!m_gridlines_bolder.set_from_lines(gridlines_bolder, -0.06f))
|
||||
if (!m_gridlines_bolder.set_from_lines(gridlines_bolder, GROUND_Z_GRIDLINE))
|
||||
BOOST_LOG_TRIVIAL(error) << __FUNCTION__ << "Unable to create bed grid lines\n";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user