3dPrinting :

- aggiunto slicing a 45° lungo Y.
This commit is contained in:
SaraP
2022-11-29 10:21:14 +01:00
parent 8622fc8919
commit 693746d6e3
4 changed files with 14 additions and 9 deletions
+4 -4
View File
@@ -961,7 +961,7 @@ local function SpiralVase( vLayIds, dCorrZ, LayerParams)
local nSlicingType = EgtGetInfo( s_nPartId, KEY_SLICING_TYPE, 'i')
-- copio ultimo layer
if nSlicingType ~= SLICING_TYPE.DEG45 then
if nSlicingType ~= SLICING_TYPE.DEG45_X and nSlicingType ~= SLICING_TYPE.DEG45_Y then
local nNewLay = EgtCopyGlob( vLayIds[#vLayIds], vLayIds[#vLayIds], GDB_IN.AFTER)
table.insert( vLayIds, nNewLay)
EgtMove( nNewLay, LayerParams.dLayHeight * LayerParams.vtSlicing, GDB_RT.GLOB)
@@ -1010,7 +1010,7 @@ local function SpiralVase( vLayIds, dCorrZ, LayerParams)
-- correggo posizione in Z ( per essere sicuri di appoggiare sul piano)
EgtMove( nNewEntId, dCorrZ * Z_AX(), GDB_RT.GLOB)
if nSlicingType == SLICING_TYPE.DEG45 then
if nSlicingType == SLICING_TYPE.DEG45_X or nSlicingType == SLICING_TYPE.DEG45_Y then
-- eventuale spostamento dell'altezza layer
EgtMove( nNewEntId, LayerParams.dLayHeight * LayerParams.vtSlicing, GDB_RT.GLOB)
end
@@ -1089,7 +1089,7 @@ function CalcToolPath.Exec( nPartId)
local vtMove = Vector3d( 0, 0, dCorrZ)
-- se slicing a 45° aggiungo correzione anche in direzione dello slicing
local nSlicingType = EgtGetInfo( s_nPartId, KEY_SLICING_TYPE, 'i') or 1
if nSlicingType == SLICING_TYPE.DEG45 then
if nSlicingType == SLICING_TYPE.DEG45_X or nSlicingType == SLICING_TYPE.DEG45_Y then
vtMove = vtMove + LayerParams.dLayHeight / 2 * LayerParams.vtSlicing
end
local SolidLayId = EgtGetFirstNameInGroup( s_nPartId, PRINT_SOLID)
@@ -1124,7 +1124,7 @@ function CalcToolPath.Exec( nPartId)
return
else
EgtSetStatus( nPathGrpId, GDB_ST.OFF)
end
end
-- recupero il gruppo dei percorsi utensile
local nTpathGrpId = EgtGetFirstNameInGroup( nCrvGrpId, TOOLPATH_GRP)
if not nTpathGrpId then