3dPrinting :
- corretto errore calcolo lead in nel caso di primi layers mancanti.
This commit is contained in:
@@ -3016,7 +3016,7 @@ function CalcToolPath.Exec( nPartId)
|
||||
-- recupero i parametri per calcolo dei toolpath
|
||||
local LayerParams = GetLayerParamsForToolPathCalc()
|
||||
local nSlicingType = EgtGetInfo( s_nPartId, KEY_SLICING_TYPE, 'i')
|
||||
local nFirstSolidLay = EgtGetInfo( s_nPartId, KEY_FIRST_SOLID_LAY, 'i')
|
||||
local bFirst = true
|
||||
|
||||
-- caso spiral vase
|
||||
if LayerParams.bSpiralVase then
|
||||
@@ -3077,8 +3077,8 @@ function CalcToolPath.Exec( nPartId)
|
||||
|
||||
-- shell
|
||||
if LayerParams.vPrintOrder[j] == PRINT_ELEMENT.SHELL then
|
||||
CalcShellsToolPath( vShellIds, nTpathGrpId, nIdx == nFirstSolidLay, LayerParams)
|
||||
|
||||
CalcShellsToolPath( vShellIds, nTpathGrpId, bFirst, LayerParams)
|
||||
|
||||
-- extra shell
|
||||
elseif LayerParams.vPrintOrder[j] == PRINT_ELEMENT.EXTRA_SHELL then
|
||||
CalcExtraShellToolPath( vExtraShellIds, nTpathGrpId, LayerParams)
|
||||
@@ -3122,6 +3122,10 @@ function CalcToolPath.Exec( nPartId)
|
||||
end
|
||||
end
|
||||
|
||||
if bFirst and EgtGetGroupObjs( nTpathGrpId) > 0 then
|
||||
bFirst = false
|
||||
end
|
||||
|
||||
-- passo al gruppo di contorni successivo
|
||||
nCrvGrpId = EgtGetNextName( nCrvGrpId, CONTOUR_GRP.."*")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user