diff --git a/LuaLibs/ProcessSimpleScarf.lua b/LuaLibs/ProcessSimpleScarf.lua index f72bce2..29b42af 100644 --- a/LuaLibs/ProcessSimpleScarf.lua +++ b/LuaLibs/ProcessSimpleScarf.lua @@ -31,7 +31,7 @@ end -- Classificazione della feature function ProcessSimpleScarf.Classify( Proc) -- se forzato utilizzo fresa non ruoto la trave - local bForceSideMill = EgtGetInfo( Proc.Id, 'Q04', 'd') > 0 + local bForceSideMill = ( EgtGetInfo( Proc.Id, 'Q04', 'd') or 0) > 0 -- verifico le normali delle facce local nFacetCnt = EgtSurfTmFacetCount( Proc.Id) for i = 1, nFacetCnt do @@ -194,8 +194,8 @@ function ProcessSimpleScarf.Make( Proc, nPhase, nRawId, nPartId, dOvmHead, dOvmT if not bOkc then return bOkc, sErrC end -- se forzato utilizzo fresa richiamo la freecontour local bForceSideMill = EgtGetInfo( Proc.Id, 'Q04', 'd') == 1 or - ( EgtGetInfo( Proc.Id, 'Q04', 'd') == 2 and abs( vtN[vFaceOrd[3]]:getY())) < 0.1 or - ( EgtGetInfo( Proc.Id, 'Q04', 'd') == 3 and abs( vtN[vFaceOrd[3]]:getY())) < 0.1 and vtN[vFaceOrd[3]]:getZ() < 0.1 + ( EgtGetInfo( Proc.Id, 'Q04', 'd') == 2 and abs( vtN[vFaceOrd[3]]:getY()) < 0.1) or + ( EgtGetInfo( Proc.Id, 'Q04', 'd') == 3 and abs( vtN[vFaceOrd[3]]:getY()) < 0.1 and vtN[vFaceOrd[3]]:getZ() < 0.1) if bForceSideMill then bOk, sErr = FreeContour.Make( Proc, nPhase, nRawId, nPartId, dOvmHead) return bOk, sErr