DataBeam :

- in lavorazione Arch riportate migliorie di FreeContour.
This commit is contained in:
Dario Sassi
2019-05-24 18:25:03 +00:00
parent 8a0f1be9ca
commit be17ffc334
+3 -2
View File
@@ -111,10 +111,11 @@ function ProcessRoundArch.Make( Proc, nPhase, nRawId, nPartId, dOvmHead)
-- se non di testa o coda ne verifico la lunghezza per eventuale spezzatura
local nStep = 1
local dStep = 0
local dLenMax = min( BD.LONGCUT_MAXLEN, 0.5 * b3Raw:getDimX())
local b3Aux = EgtGetBBoxGlob( AuxId, GDB_BB.STANDARD)
if not Proc.Head and not Proc.Tail and b3Aux:getDimX() > BD.LONGCUT_MAXLEN then
if b3Aux:getDimX() > dLenMax then
local dCrvLen = EgtCurveLength( AuxId)
nStep = ceil( dCrvLen / BD.LONGCUT_MAXLEN)
nStep = ceil( dCrvLen / dLenMax)
dStep = dCrvLen / nStep
EgtOutLog( string.format( 'CrvLen=%.1f StepNbr=%d StepLen=%.1f', dCrvLen, nStep, dStep), 3)
end