3dPrinting :

- aggiunta nuova tipologia per setti ( setti di supporto)
- correzioni per setti chiusi nel caso di intersezioni con 2 passate.
This commit is contained in:
SaraP
2023-01-05 15:16:45 +01:00
parent 89a8002205
commit 1225625a9a
4 changed files with 74 additions and 42 deletions
+6 -4
View File
@@ -529,7 +529,7 @@ local function VerifyRibsLink( nLinkId, nCurr, nNext, dStrand, nGrpTmp)
local nRes = EgtCurveWithRegionClassify( nLinkId, nSurfId)
local nType1 = EgtGetInfo( nCurr, KEY_RIBS_TYPE, 'i')
local nType2 = EgtGetInfo( nNext, KEY_RIBS_TYPE, 'i')
if nType1 == RIB_TYPE.INTERNAL and nType2 == RIB_TYPE.INTERNAL then
if ( nType1 == RIB_TYPE.INTERNAL or nType1 == RIB_TYPE.SUPPORT) and ( nType2 == RIB_TYPE.INTERNAL or nType2 == RIB_TYPE.SUPPORT) then
if nRes == GDB_CRC.OUT or nRes == GDB_CRC.INTERS then
return false
end
@@ -781,7 +781,7 @@ local function FindCorrectRibsLead( dPar, nCrv, nCrvOffs, bLeadInvert, dLeadLen,
return nil
else
-- se non è valido ma ho altra curva possibile, tento con quella
EgtErase( nLeadId)
EgtErase( nLeadId)
nLeadId = EgtCopyGlob( nOtherCrv, nCrv, EgtIf( bInVsOut, GDB_IN.BEFORE, GDB_IN.AFTER))
if not bInvert then EgtInvertCurve( nLeadId) end
EgtTrimCurveEndAtLen( nLeadId, dLeadLen)
@@ -798,7 +798,7 @@ local function FindCorrectRibsLead( dPar, nCrv, nCrvOffs, bLeadInvert, dLeadLen,
return nil
end
-- aggiorno parametro bInvert
bInvert = not bInvert
bInvert = not bInvert
end
return nLeadId, bInvert
@@ -1066,7 +1066,9 @@ local function CalcRibsToolPath( nRibsGrp, nTpathGrpId, LayerParams, dCorrZ)
for i = 1, #tabRibs - 1 do
local bLink1 = EgtGetInfo( tabRibs[i][1], KEY_RIBS_LINK, 'b')
local bLink2 = EgtGetInfo( tabRibs[i + 1][1], KEY_RIBS_LINK, 'b')
if bLink1 and bLink2 then
local nType1 = EgtGetInfo( tabRibs[i][1], KEY_RIBS_TYPE, 'i')
local nType2 = EgtGetInfo( tabRibs[i + 1][1], KEY_RIBS_TYPE, 'i')
if bLink1 and bLink2 and nType1 == nType2 then
local nCnt = #tabRibs[i]
CalcRibsLink( tabRibs[i][nCnt], tabRibs[i + 1][1], nLoopGrp, LayerParams.dStrand, false, LayerParams.vtSlicing, nGrpTmp)
end