3dPrinting :

- in presenza di floor e spiral vase separata gestione dei primi layers con floor ( fatti con ripartenze) da quelli senza floor ( fatti in spiral vase)
- correzioni varie per floor e lead in.
This commit is contained in:
SaraP
2026-06-18 08:57:26 +02:00
parent f0f1758636
commit d2c1d9a25a
3 changed files with 154 additions and 116 deletions
+6 -7
View File
@@ -55,7 +55,6 @@ local function GetLayerParamsForPathCalc()
-- eventuale modifica dei parametri per gestire correttamente il caso spiral vase
if LayerParams.bSpiralVase then
LayerParams.nFloorNbr = 0
LayerParams.nCeilNbr = 0
end
@@ -4475,20 +4474,20 @@ function CalcPaths.Exec( nPartId)
end
-- gestione solidi ausiliari ( se no floor o ceil)
if nAuxSolidsGrp and ( nFirstSolidLay + LayerParams.nFloorNbr <= nIdx and nIdx <= nLastSolidLay - LayerParams.nCeilNbr or LayerParams.nShellsNbr == 0) then
if nAuxSolidsGrp and LayerParams.nFloorNbr < nIdx and nIdx <= nLastSolidLay - LayerParams.nCeilNbr then
CalcAuxSolidsPaths( vLayIds[nIdx], nAuxSolidsGrp, LayerParams, vPtStart)
end
-- gestione riempimenti
if LayerParams.nShellsNbr > 0 then
-- infill
if nFirstSolidLay + LayerParams.nFloorNbr <= nIdx and nIdx <= nLastSolidLay - LayerParams.nCeilNbr then
CalcInfillPaths( vLayIds[nIdx], nInfillGrp, LayerParams)
-- floor
elseif nFirstSolidLay <= nIdx and nIdx < nFirstSolidLay + LayerParams.nFloorNbr then
if nIdx <= LayerParams.nFloorNbr then
CalcSolidFillPath( vLayIds[nIdx], LayerParams, vPtStart, LayerParams.nFloorType)
-- infill
elseif nIdx <= nLastSolidLay - LayerParams.nCeilNbr then
CalcInfillPaths( vLayIds[nIdx], nInfillGrp, LayerParams)
-- ceil
elseif nLastSolidLay - LayerParams.nCeilNbr < nIdx and nIdx <= nLastSolidLay then
else
CalcSolidFillPath( vLayIds[nIdx], LayerParams, vPtStart, LayerParams.nCeilType)
end
end