mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2025-01-11 03:45:08 +01:00
didn't thing about the difference in size when lines are diagonal
This commit is contained in:
parent
57f7ee62bc
commit
2aae3c526b
@ -292,6 +292,7 @@ D3D.Slicer.prototype.slicesToData = function (slices, printer) {
|
|||||||
var bottomSkinCount = Math.ceil(bottomThickness/layerHeight);
|
var bottomSkinCount = Math.ceil(bottomThickness/layerHeight);
|
||||||
var topSkinCount = Math.ceil(topThickness/layerHeight);
|
var topSkinCount = Math.ceil(topThickness/layerHeight);
|
||||||
var nozzleRadius = nozzleDiameter / 2;
|
var nozzleRadius = nozzleDiameter / 2;
|
||||||
|
var hightemplateSize = Math.sqrt(2 * Math.pow(nozzleDiameter, 2));
|
||||||
|
|
||||||
var lowFillTemplate = this.getFillTemplate({
|
var lowFillTemplate = this.getFillTemplate({
|
||||||
left: this.geometry.boundingBox.min.z * scale,
|
left: this.geometry.boundingBox.min.z * scale,
|
||||||
@ -356,7 +357,7 @@ D3D.Slicer.prototype.slicesToData = function (slices, printer) {
|
|||||||
if (highFillArea.length > 0) {
|
if (highFillArea.length > 0) {
|
||||||
var bounds = highFillArea.bounds();
|
var bounds = highFillArea.bounds();
|
||||||
var even = (layer % 2 === 0);
|
var even = (layer % 2 === 0);
|
||||||
var highFillTemplate = this.getFillTemplate(bounds, nozzleDiameter, even, !even);
|
var highFillTemplate = this.getFillTemplate(bounds, hightemplateSize, even, !even);
|
||||||
|
|
||||||
part.fill.join(highFillTemplate.intersect(highFillArea));
|
part.fill.join(highFillTemplate.intersect(highFillArea));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user