3dPrinting 3.1c2 :

- piccola correzione per gestire compatibilià con vecchi progetti che hanno info "SlicingDir" e non "SliceDir".
This commit is contained in:
SaraP
2026-03-10 16:35:30 +01:00
parent 7c7fa77608
commit 5be6539a1e
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -2630,8 +2630,8 @@ local function SpiralVasePartialMultiPlanar( vLayIds, LayerParams)
local ptSOld = EgtSP( nOldId, GDB_ID.ROOT)
local ptEOld = EgtEP( nOldId, GDB_ID.ROOT)
-- proiezione ortogonale dei punti sul piano di slicing corrente
local ptSProj = ptSOld + ( ( ptSOld - ptSlicing) * vtSlicing) * vtSlicing
local ptEProj = ptEOld + ( ( ptEOld - ptSlicing) * vtSlicing) * vtSlicing
local ptSProj = ptSOld - ( ( ptSOld - ptSlicing) * vtSlicing) * vtSlicing
local ptEProj = ptEOld - ( ( ptEOld - ptSlicing) * vtSlicing) * vtSlicing
-- a) continuità tra i layers
-- modifico il punto iniziale corrente per avvicinarmi il più possibile alla fine del percorso precedente
+1 -1
View File
@@ -24,7 +24,7 @@ local function GetLayerParamsForSolidCalc( nPartId)
local LayerParams = {}
LayerParams.bSpiralVase = EgtGetInfo( nPartId, KEY_SPIRAL_VASE, 'b') or false
LayerParams.dLayHeight = EgtGetInfo( nPartId, KEY_SLICE_STEP, 'd')
LayerParams.vtSlicing = EgtGetInfo( nPartId, KEY_SLICE_DIR, 'v')
LayerParams.vtSlicing = EgtGetInfo( nPartId, KEY_SLICE_DIR, 'v') or EgtGetInfo( nPartId, 'SlicingDir', 'v')
LayerParams.dStrand = EgtGetInfo( nPartId, KEY_STRAND, 'd')
return LayerParams
end
+1 -1
View File
@@ -156,7 +156,7 @@ function RunPrepareExport.Exec()
-- recupero alcune info utili e le assegno al punto per poterle leggere da ThreeJS
local dH = EgtGetInfo( nPartId, KEY_SLICE_STEP, 'd')
EgtSetInfo( nPnt, KEY_SLICE_STEP, dH)
local vtSlicing = EgtGetInfo( nPartId, KEY_SLICE_DIR, 'v')
local vtSlicing = EgtGetInfo( nPartId, KEY_SLICE_DIR, 'v') or EgtGetInfo( nPartId, "SlicingDir", 'v')
EgtSetInfo( nPnt, "SlicingDir", vtSlicing)
local bSpiralVase = EgtGetInfo( nPartId, KEY_SPIRAL_VASE, 'b') or false
EgtSetInfo( nPnt, KEY_SPIRAL_VASE, bSpiralVase)
+1 -1
View File
@@ -1,4 +1,4 @@
-- Version.lua by Egaltech s.r.l. 2026/03/04
-- Gestione della versione di 3dPrinting
VERSION = '3.1c1'
VERSION = '3.1c2'