3dPrinting :

- aggiunta possibilità di generare lo slicing senza calcolo dei solidi.
This commit is contained in:
SaraP
2022-09-26 16:02:05 +02:00
parent 11457644aa
commit 4a769ffc6f
8 changed files with 92 additions and 25 deletions
+10
View File
@@ -12,6 +12,10 @@ EgtOutLog( ' RunShowManager started', 1)
-- Costanti generali
local AMD = require( 'AddManData')
-- Librerie
_G.package.loaded.RunCalcSolids = nil
local CSOLIDS = require( 'RunCalcSolids')
---------------------------------------------------------------------
local function ShowImportedSolid( nPartId, bShow)
local nSolidLayId = EgtGetFirstNameInGroup( nPartId, PRINT_SOLID)
@@ -78,6 +82,12 @@ function RunShowManager.Exec()
local nPartIndex = 1
local nPartId = EgtGetFirstNameInGroup( GDB_ID.ROOT, PART .. nPartIndex)
while nPartId do
-- eventuale calcolo dei solidi
local bHasSolids = EgtGetInfo( nPartId, KEY_HAS_SOLIDS, 'b') or false
if not bHasSolids and bCurrSolid then
CSOLIDS.Exec( nPartId)
end
if bImportedSolid ~= bCurrImportedSolid then
ShowImportedSolid( nPartId, bCurrImportedSolid)
end