DataBeam :

- miglioramenti a DiceCut per equidistanza tagli.
This commit is contained in:
Dario Sassi
2019-10-21 06:47:13 +00:00
parent aa193190f8
commit 5ebe6c2c52
4 changed files with 95 additions and 7 deletions
+2 -2
View File
@@ -733,7 +733,7 @@ local function MakeLongMoreFaces( Proc, nPhase, nRawId, nPartId)
local b3Raw = EgtGetRawPartBBox( nRawId)
-- la divido in parti lungo X
local vAddId = {}
local nPart = ceil( Proc.Box:getDimX() / min( BD.LONGCUT_MAXLEN, 0.5 * b3Raw:getDimX()))
local nPart = ceil( Proc.Box:getDimX() / BD.LONGCUT_MAXLEN)
local dPartLen = Proc.Box:getDimX() / nPart
local Xmin = Proc.Box:getMin():getX()
for i = 1, nPart do
@@ -774,7 +774,7 @@ function ProcessLapJoint.Make( Proc, nPhase, nRawId, nPartId, dOvmHead)
local b3Raw = EgtGetRawPartBBox( nRawId)
-- se lunghezza richiede spezzatura
if Proc.Box:getDimX() > min( BD.LONGCUT_MAXLEN, 0.5 * b3Raw:getDimX()) then
if Proc.Box:getDimX() > BD.LONGCUT_MAXLEN then
-- una faccia
if Proc.Fct == 1 then
return LongCut.Make( Proc, nPhase, nRawId, nPartId)