From 0407c9bd5fdeeb0037020a259d7265e660adcb0d Mon Sep 17 00:00:00 2001 From: SaraP Date: Tue, 6 Sep 2022 17:11:06 +0200 Subject: [PATCH] 3dPrinting : - corretta estrusione per wipe. --- LuaLibs/CalcToolPath.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/LuaLibs/CalcToolPath.lua b/LuaLibs/CalcToolPath.lua index 339cb64..70c19a6 100644 --- a/LuaLibs/CalcToolPath.lua +++ b/LuaLibs/CalcToolPath.lua @@ -243,6 +243,7 @@ local function AddRetraction( nCrvId, LayerParams, dCoastingLen, dWipeLen, dWipe local ptS = EgtEP( nCoastingId or nCrvId) local ptE = ptS + vtDir * dWipeLen nWipeId = EgtCurveCompoFromPoints( EgtGetParent( nCrvId), {ptS, ptE}) + EgtModifyCurveExtrusion( nWipeId, LayerParams.vtSlicing, GDB_RT.GLOB) EgtRelocateGlob( nWipeId, nCoastingId or nCrvId, GDB_IN.AFTER) end @@ -561,6 +562,7 @@ local function AddRibsLeadOut( nCrv, nTPathGrp, nLoopsGrp, vtSlicing) vtE:rotate( vtSlicing, EgtIf( bInvert, - dAng, dAng)) local ptFinal = ptE + vtE * dRibsLOWipe nWipe = EgtCurveCompoFromPoints( nTPathGrp, { ptE, ptFinal}) + EgtModifyCurveExtrusion( nWipe, vtSlicing, GDB_RT.GLOB) EgtRelocateGlob( nWipe, nCoasting or nCrvLO or nCrv, GDB_IN.AFTER) EgtSetName( nWipe, WIPE_CRV) EgtSetInfo( nWipe, KEY_TYPE, TYPE.WIPE)