3dPrinting :

- correzione gestione percorsi con diverse passate.
This commit is contained in:
SaraP
2022-08-12 15:49:07 +02:00
parent ff84fd21c3
commit 5743e07ec1
3 changed files with 9 additions and 41 deletions
+3 -9
View File
@@ -208,13 +208,12 @@ local function AddRetraction( nCrvId, dCoastingLen, dWipeLen, vtSlicing)
-- se shell
local nWipeId
local nType = EgtGetInfo( nCrvId, KEY_TYPE, 'i')
local bClosedExtraShell = EgtGetInfo( nCrvId, KEY_CLOSED_EXTRA_SHELL, 'b') or false
if nType == TYPE.OUTER_SHELL or nType == TYPE.INNER_SHELL or bClosedExtraShell then
-- se shell o extra shell chiusa
if nType == TYPE.OUTER_SHELL or nType == TYPE.INNER_SHELL then
-- se shell
nWipeId = EgtCopyGlob( nCopyId, nCoastingId or nCrvId, GDB_IN.AFTER)
EgtTrimCurveEndAtLen( nWipeId, dWipeLen)
else
-- se extra shell aperta
-- se extra shell
local bInverted = EgtGetInfo( nCrvId, KEY_INVERTED_CURVE, 'b') or false
local vtDir = EgtEV( nCoastingId or nCrvId)
vtDir:rotate( vtSlicing, EgtIf( bInverted, 90, -90))
@@ -745,10 +744,6 @@ function CalcToolPath.Exec( nPartId)
-- aggiungo gli opportuni raccordi sulle shell complete
local vIds = EgtGetNameInGroup( nTpathGrpId, SHELL_CRV .. '*')
local vIdsExtra = EgtGetNameInGroup( nTpathGrpId, EXTRA_SHELL_CRV .. '*') or {}
for i = 1, #vIdsExtra do
table.insert( vIds, vIdsExtra[i])
end
AddLink( vIds, nTpathGrpId, LayerParams.nLinkType, LayerParams.dLinkParam, LayerParams.dSPOffs, LayerParams.dStrand, LayerParams.vtSlicing)
-- aggiungo gli opportuni raccondi sulle shell con numero diverso di passate
@@ -769,7 +764,6 @@ function CalcToolPath.Exec( nPartId)
nCurr = EgtGetNextName( nCurr, EXTRA_SHELL_CRV .. '*')
end
-- aggiungo leadin/leadout
local nFirstCurve = EgtGetFirstInGroup( nTpathGrpId)
if nFirstCurve and LayerParams.nLeadInType ~= LEAD_TYPE.NONE then