- lievi correzioni

This commit is contained in:
luca.mazzoleni
2023-09-11 09:56:22 +02:00
parent b2fdd27130
commit 9f014c70f7
2 changed files with 3 additions and 10 deletions
+3 -5
View File
@@ -2222,11 +2222,9 @@ local function VerifyPocket( Proc, dMaxDiameter, dElev, nRawId, dH, dV)
end
end
-- verifico se la lavorazione (o il suo eventuale doppio) potrebbe danneggiare le parti limitrofe e devo quindi forzare una tasca chiusa
if WD.AVOID_DAMAGING_OTHER_PARTS then
if IsMachiningDamagingOtherParts( Proc, dMillDiam, nRawId) or
Proc.Double and Proc.Double > 0 and IsMachiningDamagingOtherParts( Proc.Mirror, dMillDiam, nRawId) then
bForceClosedPocket = true
end
if IsMachiningDamagingOtherParts( Proc, dMillDiam, nRawId) or
Proc.Double and Proc.Double > 0 and IsMachiningDamagingOtherParts( Proc.Mirror, dMillDiam, nRawId) then
bForceClosedPocket = true
end
-- altrimenti diametro utensile troppo piccolo: devo forzare tasca chiusa
else
-5
View File
@@ -192,24 +192,19 @@ function WallExec.CollectFeatures( PartId, b3Raw)
Proc.TaskId = nTaskId
Proc.Box = EgtGetBBoxGlob( ProcId, GDB_BB.STANDARD)
Proc.IsOutline = ( Proc.Prc == 251 or Proc.Prc == 252)
if b3Raw then
-- recupero l'elenco delle facce della parte interessate dalla feature
Proc.AffectedFaces = WL.GetProcessAffectedFaces( Proc)
-- recupero le distanze tra la feature e le altre parti più vicine
Proc.DistanceToNearestParts = WL.GetProcessDistanceToNearestParts( Proc)
-- recupero le distanze tra la feature e il grezzo
Proc.DistanceToRawPart = WL.GetProcessDistanceToRawPart( Proc, b3Raw)
-- recupero informazioni sulle facce della feature
Proc.Face = {}
for i = 1, Proc.Fct do
Proc.Face[i] = { Id = i - 1, VtN = EgtSurfTmFacetNormVersor( Proc.Id, i - 1, GDB_ID.ROOT ), Elevation = WL.GetFaceElevation( Proc.Id, i - 1, PartId)}
end
end
if Proc.Box and not Proc.Box:isEmpty() then
table.insert( vProc, Proc)
-- se foro