3dPrinting :

- modifiche e correzioni per Costolature (Setti -> Ribs).
This commit is contained in:
DarioS
2022-07-03 19:04:07 +02:00
parent 9aecef3add
commit 1459253e57
13 changed files with 378 additions and 251 deletions
+2 -3
View File
@@ -13,6 +13,7 @@ EgtOutLog( ' RunPartPositioning started', 1)
-- Costanti generali
local AMD = require( 'AddManData')
---------------------------------------------------------------------
function RunPartPositioning.Exec()
-- Verifico che la macchina corrente sia adatta alla stampa 3d
local sMachIni = EgtGetCurrMachineDir() .. '\\' .. EgtGetCurrMachineName() .. '.ini'
@@ -34,7 +35,7 @@ function RunPartPositioning.Exec()
return
end
local sLayer = EgtGetName( nLayerId)
if sLayer == LAY_WALLS then
if sLayer == LAY_RIBS then
EgtOutBox( 'No selected solid. Please select a solid before moving it on the table.', 'Warning', 'WARNING')
return
end
@@ -121,9 +122,7 @@ function RunPartPositioning.Exec()
local nTabLayer = EgtGroup( nTabPart)
EgtSetName( nTabLayer, TABLE)
local nTabOutlineId = EgtRectangle2P( nTabLayer, Point3d( 0, 0, 0), Point3d( dTabX, dTabY, 0))
EgtSetName( nTabOutlineId, TABLE_OUTLINE)
local nTabSurfId = EgtSurfFlatRegion( nTabLayer, nTabOutlineId)
EgtSetName( nTabSurfId, TABLE_SURFACE)
EgtSetColor( nTabSurfId, 'GRAY')
EgtSetAlpha( nTabSurfId, 70)
end