3dPrinting :

- eliminati gruppi inutili nel calcolo solidi con spiral vase
- migliorie nella preparazione del 3dm per export icrx.
This commit is contained in:
SaraP
2026-01-27 14:36:39 +01:00
parent ac9fa89de1
commit 548a192315
2 changed files with 8 additions and 2 deletions
+2 -1
View File
@@ -131,6 +131,7 @@ local function CreateSpiralVaseSolid( nCrvId, nSolidGrp, LayerParams, dStrand)
local dDelta = ( ptE - ptS) * LayerParams.vtSlicing
-- se non è vero spiral vase, chiamo funzione standard
if dDelta < GEO.EPS_SMALL then
EgtErase( nGrpTmp)
return CreateStandardSolid( nCrvId, nSolidGrp, LayerParams, dStrand)
end
@@ -322,7 +323,7 @@ local function CreateSolidFromCurve( nCrvId, nSolidGrp, LayerParams, nLayer)
if not nSrfId then
EgtOutLog( 'Warning : CreateSolid failed '.. '(layer '..tostring( nLayer)..', curve '..tostring( nCrvId)..')')
-- ritento con strand più piccolo
nSrfId = CreateSolid( nGuideId, nSolidGrp, LayerParams, dStrand - 50 * GEO.EPS_SMALL)
nSrfId = CreateSolid( nGuideId, nSolidGrp, LayerParams, dStrand - 50 * GEO.EPS_SMALL)
if not nSrfId then
EgtOutLog( 'Warning : CreateSolid_1 failed '.. '(layer '..tostring( nLayer)..', curve '..tostring( nCrvId)..')')
+6 -1
View File
@@ -108,9 +108,14 @@ local function CalcSpiralVase( nSliceId, nDestGrp)
-- recupero il solido dal gruppo
local nSolidGrp = EgtGetFirstNameInGroup( vCrvs[j], SOLID_GRP)
if nSolidGrp then
-- copio solo la prima freccia direzionale
local nArrow = EgtGetFirstNameInGroup( nSolidGrp, DIR_ARROW) or GDB_ID.NULL
EgtCopyGlob( nArrow, nDestGrp)
local vSolids = EgtGetAllInGroup( nSolidGrp)
for i = 1, #vSolids do
EgtCopyGlob( vSolids[i], nDestGrp)
if EgtGetName( vSolids[i]) ~= DIR_ARROW then
EgtCopyGlob( vSolids[i], nDestGrp)
end
end
end
end