diff --git a/LuaLibs/ProcessLapJoint.lua b/LuaLibs/ProcessLapJoint.lua index c598a00..53fbfb8 100644 --- a/LuaLibs/ProcessLapJoint.lua +++ b/LuaLibs/ProcessLapJoint.lua @@ -1559,7 +1559,7 @@ local function MakeRoundCleanCorner( Proc, nFacInd, dDiam, bMillDown, bDoubleSid goto continue end -- calcolo lunghezza minima in base all'angolo tra le due pareti - local dMinDist = (( dDiam / 2) / tan(( 180 + tFacAdj[i][6]) / 2)) + 2 + local dMinDist = ( ( dDiam / 2) / tan( ( 180 + tFacAdj[i][6]) / 2)) + 2 -- verifico che entrambe le linee siano maggiori delle lunghezza minima if dLen1 <= dMinDist or dLen2 <= dMinDist then sMyWarn = 'Warning : impossible make clean corner path' @@ -2567,14 +2567,14 @@ local function MakeByMillAsSaw( Proc, tFData, nBottomFace, sMillingOnSide, dSawD -- ottengo la distanza tra la fine del pezzo e il pezzo successivo local dDistToNextPiece = EgtGetInfo( _nRawId, 'BDST', 'd') or 5. -- recupero la faccia con il maggior numero di adiacenze e l'elevazione relativa - local nFacInd1, _, _, _ = BL.GetFaceWithMostAdj( Proc.Id, _nPartId, true) - if not nFacInd1 or nFacInd1 < 0 then - if not nFacInd1 == -1 then - local sErr = 'Error : MakeByMillAsSaw could not find reference face' - EgtOutLog( sErr) - return false, sErr - end - end + -- local nFacInd1, _, _, _ = BL.GetFaceWithMostAdj( Proc.Id, _nPartId, true) + -- if not nFacInd1 or nFacInd1 < 0 then + -- if not nFacInd1 == -1 then + -- local sErr = 'Error : MakeByMillAsSaw could not find reference face' + -- EgtOutLog( sErr) + -- return false, sErr + -- end + -- end -- Recupero le facce adiacenti alla principale (solo quelle esistenti) local vAdj = GetValidFacetAdjacencies( Proc.Id, tFData.nFacInd) if not vAdj or #vAdj == 0 then @@ -5127,7 +5127,7 @@ end --------------------------------------------------------------------- local function MakeLongFaces( Proc, Func) - -- divido in parti lungo la X + -- divido in parti lungo X local vAddId = {} local nPart = max( ceil( Proc.Box:getDimX() / BD.LONGCUT_MAXLEN), 2) local dPartLen = Proc.Box:getDimX() / nPart