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