DataBeam :
- miglioramenti a DiceCut per equidistanza tagli.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user