From 99e0b9967eee4cf9555db4f8a41868337595799e Mon Sep 17 00:00:00 2001 From: "andrea.villa" Date: Tue, 25 Feb 2025 13:20:24 +0100 Subject: [PATCH] =?UTF-8?q?In=20LapJoint,=20se=20feature=20interessa=20la?= =?UTF-8?q?=20coda=20e=20il=20pezzo=20=C3=A8=20lungo,=20la=20lavorazione?= =?UTF-8?q?=20viene=20fatta=20dopo=20separazioone.=20Non=20ha=20senso=20fa?= =?UTF-8?q?rla=20prima=20se=20non=20ci=20sono=20problemi=20di=20pinzaggio,?= =?UTF-8?q?=20meglio=20farla=20dopo.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LuaLibs/ProcessLapJoint.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/LuaLibs/ProcessLapJoint.lua b/LuaLibs/ProcessLapJoint.lua index 5371915..00c7063 100644 --- a/LuaLibs/ProcessLapJoint.lua +++ b/LuaLibs/ProcessLapJoint.lua @@ -788,7 +788,6 @@ function ProcessLapJoint.IsTailFeature( Proc, b3Raw) local nPartId = EgtGetParent( EgtGetParent( Proc.Id) or GDB_ID.NULL) local b3Solid = EgtGetBBoxGlob( EgtGetFirstNameInGroup( nPartId, 'Box') or GDB_ID.NULL, GDB_BB.STANDARD) -- verifico se รจ in coda - local dEndDist = Proc.Box:getMin():getX() - b3Solid:getMin():getX() if ( dEndDist > BD.MAX_DIST_HTFEA) or bUseBHSideMill then if not( BD.BH_MACHINE) and bUseBHSideMill and ( Proc.Box:getMax():getX() - b3Solid:getMin():getX()) < 400 then @@ -815,6 +814,10 @@ function ProcessLapJoint.IsTailFeature( Proc, b3Raw) if Proc.AffectedFaces.Left and ( EgtGetInfo( Proc.Id, Q_SAW_PLUS_CHAIN, 'i') or 0) > 0 then return true end + -- se interessa la coda, e pezzo lungo, si sposta dopo separazione + if b3Solid:getDimX() > BD.LEN_SHORT_PART and Proc.AffectedFaces.Left and Proc.Fct > 2 then + return true + end -- deve avere la normale principale diretta verso la coda (oppure tunnel) Topology.Classify( Proc, b3Raw) local nFacInd, dElev, nFacInd2, dElev2 = BL.GetFaceWithMostAdj( Proc, nPartId)