Compare commits

..

3 Commits

Author SHA1 Message Date
Dario Sassi 94b02be20a 3dPrinting 2.6b1 :
- aggiornata versione.
2024-02-13 14:53:06 +01:00
SaraP a15593303f 3dPrinting :
- corretto errore.
2024-02-12 12:06:46 +01:00
SaraP 011f049c43 3dPrinting :
- migliorie in PrepareExport con utilizzo della fat curve di Voronoi.
2024-02-12 12:05:04 +01:00
2 changed files with 10 additions and 13 deletions
+8 -11
View File
@@ -28,17 +28,16 @@ local function CalcCurves( nSliceId, nDestGrp, vtSlicing, dStrandBase)
if nType ~= TYPE.WIPE then
local dStrand = EgtGetInfo( nId, KEY_CRV_STRAND, 'd') or dStrandBase
-- TO DO : da sostituire con offset di Vroni che per curve aperte è la fat curve
-- calcolo fat curve a partire da una copia della curva ( in questo modo nel DB geometrico non restano
-- salvati i diagrammi di Voronoi che non servono per conti futuri)
local nCopy = EgtCopyGlob( nId, nDestGrp)
local nCopyInv = EgtCopyGlob( nId, nDestGrp)
EgtInvertCurve( nCopyInv)
EgtAddCurveCompoCurve( nCopy, nCopyInv)
local nCrv, nCnt = EgtOffsetCurveAdv( nCopy, 0.5 * dStrand)
local nCrv, nCnt = EgtCurveGetFatCurve( nCopy, nDestGrp, 0.5 * dStrand, false)
-- se fallisce ritento con valore leggermente diverso
if not nCrv or nCnt == 0 then
nCrv, nCnt = EgtOffsetCurveAdv( nCopy, 0.5 * dStrand - 0.05)
nCrv, nCnt = EgtCurveGetFatCurve( nCopy, nDestGrp, 0.5 * dStrand - 0.05, false)
end
EgtErase( nCopy)
if nCrv and nCnt > 0 then
-- se sono curve chiuse piccoli aggistamenti per creare un percorso unico
if nCnt > 1 then
@@ -76,8 +75,6 @@ local function CalcCurves( nSliceId, nDestGrp, vtSlicing, dStrandBase)
EgtSetColor( nCrv, EgtStdColor( 'AQUA'))
end
end
EgtErase( nCopy)
end
nId = EgtGetNext( nId)
@@ -117,7 +114,7 @@ end
------------------------------------------------------------------
function RunPrepareExport.Exec()
local nPartId = EgtGetFirstNameInGroup( GDB_ID.ROOT, PART .. '*')
if not nPartId then
EgtOutBox( 'Error : no part', 'Export')
@@ -183,7 +180,7 @@ function RunPrepareExport.Exec()
end
for i = 1, #vSlices do
-- creo il gruppo corrispondente
local nDestGrp = EgtGroup( nGrp)
EgtSetName( nDestGrp, EgtGetName( vSlices[i]))
+2 -2
View File
@@ -1,4 +1,4 @@
-- Version.lua by Egaltech s.r.l. 2024/01/24
-- Version.lua by Egaltech s.r.l. 2024/02/13
-- Gestione della versione di 3dPrinting
VERSION = '2.6a1'
VERSION = '2.6b1'