diff --git a/LuaLibs/CalcPaths.lua b/LuaLibs/CalcPaths.lua index c4bcb68..76fcaf9 100644 --- a/LuaLibs/CalcPaths.lua +++ b/LuaLibs/CalcPaths.lua @@ -368,7 +368,7 @@ local function ReorderRibs( nGrp, bInvertOrder, dStrand, nMaxNbr) for j = 2, #vIds do local ptM = EgtMP( vIds[j]) local dDist = EgtPointCurveDist( ptM, vIds[j-1]) - if abs( dDist - 10) < 10 * GEO.EPS_SMALL then + if abs( dDist - dStrand) < 20 * GEO.EPS_SMALL then -- se le costolatura è vicina alla precedente avrà lo stesso nome EgtSetName( vIds[j], EgtGetName( vIds[j-1])) EgtRelocateGlob( vIds[j], vIds[j-1], GDB_IN.AFTER)