diff --git a/LuaLibs/BeamExec.lua b/LuaLibs/BeamExec.lua index e43ba65..1ee3e6e 100644 --- a/LuaLibs/BeamExec.lua +++ b/LuaLibs/BeamExec.lua @@ -491,6 +491,7 @@ local function CollectFeatures( PartId, b3Raw) Proc.Diam, Proc.Len, Proc.Fcs, Proc.Fce = FeatureData.GetDrillingData( Proc) end -- informazioni facce e topologia + Proc.AffectedFaces = BeamLib.GetAffectedFaces( Proc) -- calcolo topologia solo se necessario, altrimenti si sfruttano le informazioni della feature BTL Proc.Topology = {} if FeatureData.NeedTopologyFeature( Proc) then diff --git a/LuaLibs/BeamLib.lua b/LuaLibs/BeamLib.lua index 0d026fc..0644f38 100644 --- a/LuaLibs/BeamLib.lua +++ b/LuaLibs/BeamLib.lua @@ -147,7 +147,7 @@ end ------------------------------------------------------------------------------------------------------------- -- restituisce le facce della parte interessate dalla feature Proc -function BeamLib.GetProcessAffectedFaces( Proc) +function BeamLib.GetAffectedFaces( Proc) local nBoxSolidId = EgtGetFirstNameInGroup( Proc.PartId or GDB_ID.NULL, 'Box') local b3Part = EgtGetBBoxGlob( nBoxSolidId, GDB_BB.STANDARD) local vtFacesAffected = { Top = false, Bottom = false, Front = false, Back = false, Left = false, Right = false} diff --git a/LuaLibs/FeatureData.lua b/LuaLibs/FeatureData.lua index 73aed07..c0afcab 100644 --- a/LuaLibs/FeatureData.lua +++ b/LuaLibs/FeatureData.lua @@ -133,7 +133,7 @@ end function FeatureData.ClassifyTopology( Proc, b3Raw) local FeatureTopology = {} - if not Proc.AffectedFaces then Proc.AffectedFaces = BeamLib.GetProcessAffectedFaces( Proc) end + if not Proc.AffectedFaces then Proc.AffectedFaces = BeamLib.GetAffectedFaces( Proc) end local bIsFeatureCuttingEntireSection = IsFeatureCuttingEntireSection( Proc.Box, b3Raw) local bIsFeatureCuttingEntireLength = IsFeatureCuttingEntireLength( Proc.Box, b3Raw) @@ -148,6 +148,7 @@ function FeatureData.ClassifyTopology( Proc, b3Raw) local bIsThrough if Proc.Fct == 1 and ( bIsFeatureCuttingEntireSection or bIsFeatureCuttingEntireLength) then sFamily = 'Cut' + bIsThrough = true elseif Proc.Fct == 1 then sFamily = 'Bevel' bIsThrough = true