- Aggiunto calcolo versore direzione inizio e fine percorso in DTMortise

- Alla funzione PreSimulationLib.CheckOutOfStrokeFromGeometry ora si passa la vtHead direttamente
- STR0001 e STR0006 modificate per compatibilità alla CheckOutOfStrokeFromGeometry
- STR0007 ristrutturata per contemplare gli extra-corsa. Per ora solo profilo e antischeggia. Extra-corsa su svuotature non ancora gestito.
This commit is contained in:
andrea.villa
2026-01-09 17:28:28 +01:00
parent 667da4e3d1
commit 9b9758fd2c
5 changed files with 136 additions and 86 deletions
+2 -2
View File
@@ -237,7 +237,7 @@ end
-------------------------------------------------------------------------------------------------------------
-- check extracorsa da geometria
-- TODO da considerare anche gli attacchi
function PreSimulationLib.CheckOutOfStrokeFromGeometry( idGeometry, Proc, nSCC, Tool)
function PreSimulationLib.CheckOutOfStrokeFromGeometry( idGeometry, vtHead, nSCC, Tool)
local b3GeomMaxOffset = EgtGetBBoxGlob( idGeometry, GDB_BB.STANDARD)
local ptBoxCenter = b3GeomMaxOffset:getCenter()
@@ -260,7 +260,7 @@ function PreSimulationLib.CheckOutOfStrokeFromGeometry( idGeometry, Proc, nSCC,
-- Z-
table.insert( PointsOnToolTipCenter, Point3d( ptBoxCenter - dBoxDimZ / 2 * Z_AX()))
local bOutOfStroke = PreSimulationLib.CheckOutOfStrokeFromPoints( PointsOnToolTipCenter, Proc.FeatureInfo.vtTenonN, nSCC, Tool)
local bOutOfStroke = PreSimulationLib.CheckOutOfStrokeFromPoints( PointsOnToolTipCenter, vtHead, nSCC, Tool)
return bOutOfStroke
end