3dPrinting :

- migliorie gestione extra shells.
This commit is contained in:
SaraP
2023-11-16 15:21:35 +01:00
parent 995ed10a0a
commit eac6b2da77
+2 -2
View File
@@ -3646,7 +3646,7 @@ local function ReorderExtraShells( nPathGrp, vPtStart, LayerParams)
elseif dist( ptECurr, ptS) < dVal then
-- congiungo start-end
bLink = true
elseif nCnt == 0 and dist( ptSCurr, ptS) < dVal then
elseif nCnt == 0 and nCurrType ~= TYPE.EXTRA_OUTER_SHELL and dist( ptSCurr, ptS) < dVal then
-- congiungo start-start
EgtInvertCurve( nCurr)
UpdateInvertInfo( nCurr)
@@ -3802,7 +3802,7 @@ local function CalcExtraShellsPath( nMaxShellNbrDiff, nShellNbrGrp, nCrvGrpId, d
-- verifico se può essere chiusa
if not EgtCurveIsClosed( nId) then
if dist( EgtSP( nId), EgtEP( nId)) < dCurrStrand + GEO.EPS_SMALL then
if dLen > dCurrStrand and dist( EgtSP( nId), EgtEP( nId)) < dCurrStrand + GEO.EPS_SMALL then
EgtCloseCurveCompo( nId)
end
end