Merge branch 'develop' into feature/BetterCuts

This commit is contained in:
luca.mazzoleni
2025-07-11 18:50:35 +02:00
3 changed files with 27 additions and 7 deletions
+5 -5
View File
@@ -753,7 +753,7 @@ local function GetFeatureInfoAndDependency( vProcSingleRot, Part)
-- non si controlla la feature con se stessa o se feature disabilitata
if i ~= j and ProcB.nFlg ~= 0 then
-- verifico se il taglio può essere saltato perchè è nella stessa posizione del taglio di testa
if Proc.nPrc == 340 and ProcB.Topology.sFamily == 'Cut' and
if ID.IsHeadCut( Proc) and ProcB.Topology.sFamily == 'Cut' and
AreSameVectorApprox( ProcB.Faces[1].vtN, X_AX()) and abs( ProcB.Faces[1].ptCenter:getX() - Part.b3Part:getMax():getX()) < 10 * GEO.EPS_SMALL then
if not Proc.SlaveProcIndexes then
Proc.SlaveProcIndexes = {}
@@ -763,7 +763,7 @@ local function GetFeatureInfoAndDependency( vProcSingleRot, Part)
ProcB.nFlg = 0
end
-- verifico se il taglio può essere saltato perchè è nella stessa posizione del taglio di coda
if Proc.nPrc == 350 and ProcB.Topology.sFamily == 'Cut' and
if ID.IsTailCut( Proc) and ProcB.Topology.sFamily == 'Cut' and
AreSameVectorApprox( ProcB.Faces[1].vtN, -X_AX()) and abs( ProcB.Faces[1].ptCenter:getX() - Part.b3Part:getMin():getX()) < 10 * GEO.EPS_SMALL then
if not Proc.SlaveProcIndexes then
Proc.SlaveProcIndexes = {}
@@ -1370,7 +1370,7 @@ local function GetCombinationListFromMatrix( ProcessingsOnPart, PartInfo)
-- ciclo su tutte le feature, ad eccezione dei tagli testa/coda che dipendono dal risultato delle altre
-- tagli testa e coda vengono aggiunti sempre alla fine
for nProc = 1, #ProcessingsOnPart.Rotation[1] do
if ProcessingsOnPart.Rotation[1][nProc].nPrc ~= 340 and ProcessingsOnPart.Rotation[1][nProc].nPrc ~= 350 then
if not ID.IsHeadCut( ProcessingsOnPart.Rotation[1][nProc]) and not ID.IsTailCut( ProcessingsOnPart.Rotation[1][nProc]) then
-- Si controlla sempre la rotazione 1 perchè la dipendenza di una feature da un'altra non dipende dalla rotazione
-- se feature disattivata perchè eseguita da master a lei associata dichiaro comunque eseguita
if ProcessingsOnPart.Rotation[1][nProc].nFlg == 0 and ProcessingsOnPart.Rotation[1][nProc].nIndexMasterProc then
@@ -1428,9 +1428,9 @@ local function GetCombinationListFromMatrix( ProcessingsOnPart, PartInfo)
end
end
else
if ProcessingsOnPart.Rotation[1][nProc].nPrc == 340 then
if ID.IsHeadCut( ProcessingsOnPart.Rotation[1][nProc]) then
SingleCombination.nIndexHeadCutInVProc = nProc
elseif ProcessingsOnPart.Rotation[1][nProc].nPrc == 350 then
elseif ID.IsTailCut( ProcessingsOnPart.Rotation[1][nProc]) then
SingleCombination.nIndexTailCutInVProc = nProc
end
end
+1 -1
View File
@@ -7,7 +7,7 @@
-- Intestazioni
require( 'EgtBase')
_ENV = EgtProtectGlobal()
EgtEnableDebug( true)
EgtEnableDebug( false)
-- Imposto direttorio libreria specializzata per Travi
EgtAddToPackagePath( BEAM.BASEDIR .. '\\LuaLibs\\?.lua')
+21 -1
View File
@@ -2,5 +2,25 @@
"sStrategyId": "STR0011",
"sStrategyName": "Hole with Drillbit",
"ParameterList" : [
]
{
"sName": "dDiameterTolerance",
"sNameNge": "TOLERANCE",
"sValue": "0",
"sDescriptionShort": "Tolerance on Diameter",
"sDescriptionLong": "Tolerance on Diameter",
"sType": "d",
"sMessageId": " ",
"sMinUserLevel": "1"
},
{
"sName": "dCanUseMillToDrill",
"sNameNge": "USEMILL",
"sValue": "false",
"sDescriptionShort": "Can use mil to drill",
"sDescriptionLong": "Can use mil to drill",
"sType": "b",
"sMessageId": " ",
"sMinUserLevel": "1"
}
]
}