3dPrinting 2.7a1 :

- modificati i controlli per il valore di ritorno di EgtGetNameInGroup.
This commit is contained in:
SaraP
2025-01-31 11:05:57 +01:00
parent b0ebb4a871
commit 000bd0091f
5 changed files with 19 additions and 19 deletions
+6 -6
View File
@@ -537,7 +537,7 @@ end
---------------------------------------------------------------------
local function CalcShellsToolPath( vEntIds, nTpathGrpId, LayerParams)
if not vEntIds then return end
if not vEntIds or #vEntIds == 0 then return end
-- aggiungo le curve nel toolpath
local vIds = AddCurvesToToolPath( vEntIds, nTpathGrpId, LayerParams.nOrder, LayerParams.bInvert, LayerParams.vtSlicing, LayerParams.dLayHeight)
@@ -585,7 +585,7 @@ end
---------------------------------------------------------------------
local function CalcExtraShellToolPath( vEntIds, nTpathGrpId, LayerParams)
if not vEntIds then return end
if not vEntIds or #vEntIds == 0 then return end
-- aggiungo le curve nel toolpath
local vIds = AddCurvesToToolPath( vEntIds, nTpathGrpId, PRINT_ORDER.EXT_INT, false, LayerParams.vtSlicing, LayerParams.dLayHeight)
@@ -938,7 +938,7 @@ local function JoinShellsAndSolidFills( nInfillGrp, vShellIds, vExtraShells, Lay
local nFillType = EgtGetInfo( nInfillGrp, KEY_FILL_TYPE, 'i') or FILL_TYPE.NONE
if nFillType == FILL_TYPE.OFFSET and vShellIds then
if nFillType == FILL_TYPE.OFFSET and vShellIds and #vShellIds > 0 then
-- cerco indice di realizzazione dei vari elementi di stampa
local vTypeSequence = {}
@@ -955,7 +955,7 @@ local function JoinShellsAndSolidFills( nInfillGrp, vShellIds, vExtraShells, Lay
end
-- verifico se extra shell realizzate tra shell e infill
if vExtraShells and nMin < vTypeSequence[PRINT_ELEMENT.EXTRA_SHELL] and vTypeSequence[PRINT_ELEMENT.EXTRA_SHELL] < nMax then
if vExtraShells and #vExtraShells > 0 and nMin < vTypeSequence[PRINT_ELEMENT.EXTRA_SHELL] and vTypeSequence[PRINT_ELEMENT.EXTRA_SHELL] < nMax then
return
end
@@ -996,7 +996,7 @@ local function CalcAuxSolidsToolPath( nAuxSolidsGrp, nAuxSolidsPathGrp, nTpathGr
-- recupero tutti i percorsi relativi a quel solido
local sName = EgtGetName( nSolidId)
local vEntIds = EgtGetNameInGroup( nAuxSolidsPathGrp, sName .. '*')
if vEntIds then
if vEntIds and #vEntIds > 0 then
-- recupero i parametri relativi al solido dalla curva di slicing
local nFillType = EgtGetInfo( nSolidId, KEY_AUX_SOLIDS_INFILL, 'i')
@@ -2156,7 +2156,7 @@ function CalcToolPath.Exec( nPartId)
-- Recupero i layer da processare
local vLayIds = EgtGetNameInGroup( s_nPartId, SLICE_LAYER.."*")
if not vLayIds then
if not vLayIds or #vLayIds == 0 then
EgtOutBox( 'Error missing slices', 'ToolPathCalc')
return true
end