3dPrinting :

- nei FilledSolid il riempimento di tipo none viene realizzato con unica passata lungo il perimetro.
This commit is contained in:
SaraP
2023-03-22 11:52:45 +01:00
parent a7c7bd63ed
commit 49c8361bc5
2 changed files with 7 additions and 3 deletions
+7 -2
View File
@@ -320,7 +320,7 @@ local function ComputeOffsetInfill( nSrf, dStrand, vtSlicing, sName, nType, vPtS
local nChunk = EgtSurfFrChunkCount( nSrf)
if nChunk == 0 then return end
-- estraggo i contorni della superficie
-- estraggo i contorni della superficie
local vOldIds = GetPathsFromSurf( nSrf, sName, nType, nGrp, vPtStart)
local dOffs = - dStrand
local bOk, bExists, nSrfOffs = ComputeSurfOffset( nSrf, nGrp, dOffs, vtSlicing)
@@ -2149,7 +2149,12 @@ local function CalcAuxSolidsPaths( nSliceGrp, nSolidGrp, LayerParams, vPtStart)
for j = 0, nCnt - 1 do
local sNewName = sName .. EgtIf( j == 0, '', '_' .. tostring( j))
local nInfillType = EgtGetInfo( vSolidIds[i][1], KEY_AUX_SOLIDS_INFILL, 'i')
if nInfillType == INFILL_TYPE.OFFSET then
if nInfillType == INFILL_TYPE.NONE then
-- estraggo i contorni della superficie ( serve solo perimetro)
GetPathsFromSurf( nFirst + j, sNewName, TYPE.AUX_SOLID, nSolidPathGrp, vPtStart)
-- aggiorno la trim surf
UpdateTrimSurfWithAuxSolidsOffset( nFirst + j, nSrfBase, LayerParams.dStrand, nSolidPathGrp, LayerParams.vtSlicing)
elseif nInfillType == INFILL_TYPE.OFFSET then
ComputeOffsetInfill( nFirst + j, LayerParams.dStrand, LayerParams.vtSlicing, sNewName, TYPE.AUX_SOLID, vPtStart, nSolidPathGrp)
-- aggiorno la trim surf
UpdateTrimSurfWithAuxSolidsOffset( nFirst + j, nSrfBase, LayerParams.dStrand, nSolidPathGrp, LayerParams.vtSlicing)