mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-12-23 03:23:48 +01:00
added infill overlap
This commit is contained in:
parent
f25e6493b2
commit
68e16a94a4
@ -5,6 +5,7 @@
|
||||
"shellThickness": 0.4,
|
||||
"brimOffset": 5.0,
|
||||
"fillGridSize": 5.0,
|
||||
"infillOverlap": 0.5,
|
||||
"travelSpeed": 200.0,
|
||||
"retractionAmount": 3.0,
|
||||
"retractionEnabled": true,
|
||||
|
@ -31,10 +31,10 @@ D3D.Slicer.prototype.setMesh = function (geometry, matrix) {
|
||||
return;
|
||||
}
|
||||
|
||||
//apply mesh matrix on geometry;
|
||||
if (matrix instanceof THREE.Matrix4) {
|
||||
geometry.applyMatrix(matrix);
|
||||
}
|
||||
|
||||
geometry.computeBoundingBox();
|
||||
geometry.computeFaceNormals();
|
||||
geometry.mergeVertices();
|
||||
@ -287,6 +287,7 @@ D3D.Slicer.prototype.slicesToData = function (slices, printer) {
|
||||
var supportMargin = printer.config["supportMargin"] * scale;
|
||||
var plateSize = printer.config["supportPlateSize"] * scale;
|
||||
var supportDistanceY = printer.config["supportDistanceY"];
|
||||
var infillOverlap = printer.config["infillOverlap"] * scale;
|
||||
|
||||
var supportDistanceLayers = Math.ceil(supportDistanceY / layerHeight);
|
||||
var bottomSkinCount = Math.ceil(bottomThickness/layerHeight);
|
||||
@ -345,7 +346,7 @@ D3D.Slicer.prototype.slicesToData = function (slices, printer) {
|
||||
var inset = ((part.innerLines.length > 0) ? part.innerLines[part.innerLines.length - 1] : outerLine);
|
||||
|
||||
var fillArea = inset.offset(-nozzleRadius);
|
||||
var highFillArea = (surroundingLayer !== undefined) ? fillArea.difference(surroundingLayer) : fillArea;
|
||||
var highFillArea = (surroundingLayer !== undefined) ? fillArea.difference(surroundingLayer).offset(infillOverlap).intersect(fillArea) : fillArea;
|
||||
var lowFillArea = fillArea.difference(highFillArea);
|
||||
|
||||
var fill = new D3D.Paths([], false);
|
||||
|
Loading…
Reference in New Issue
Block a user