3dPrinting :

- correzioni spiral vase.
This commit is contained in:
SaraP
2024-05-16 15:38:34 +02:00
parent eb955244b3
commit 68caeb21b2
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -2097,7 +2097,7 @@ local function SpiralVase( vLayIds, LayerParams)
local nGuideId = EgtCopyGlob( nOldPathId, nTpathGrpId)
-- la porto alla stessa quota del toolpath
EgtMove( nGuideId, vtMove + LayerParams.dLayHeight * LayerParams.vtSlicing, GDB_RT.GLOB)
EgtChangeClosedCurveStartPoint( nGuideId, ptOld, GDB_RT.GLOB)
EgtChangeClosedCurveStartPoint( nGuideId, ptNew, GDB_RT.GLOB)
EgtSpiralizeCurveAlongGuide( nNewEntId, nGuideId)
EgtErase( nGuideId)
+4
View File
@@ -112,6 +112,10 @@ local function CreateSpiralVaseSolid( nCrvId, nSolidGrp, LayerParams, dStrand)
-- gruppo temporaneo per conti
local nGrpTmp = EgtGroup( nSolidGrp, Frame3d( ORIG(), LayerParams.vtSlicing, GDB_RT.GLOB))
-- accorcio leggermente la curva per evitare problemi di inconsistent orientation nel solido
local dLen = EgtCurveLength( nCrvId)
EgtTrimCurveEndAtLen( nCrvId, dLen - 20 * GEO.EPS_SMALL)
local ptS = EgtSP( nCrvId, GDB_ID.ROOT)
local vtS = EgtSV( nCrvId, GDB_ID.ROOT)
local ptE = EgtEP( nCrvId, GDB_ID.ROOT)