DataWall :
- modifiche per forature orizzontali lunghe da dividere in due parti - corretta gestione mortasature passanti - modifiche a nesting - in FreeContour penna e chiodatura sempre riportate sulla superficie sopra.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
-- ProcessFreeContour.lua by Egaltech s.r.l. 2021/11/04
|
||||
-- ProcessFreeContour.lua by Egaltech s.r.l. 2021/11/15
|
||||
-- Gestione calcolo profilo libero per Pareti
|
||||
-- 2021/11/15 Penna e chiodature sono sempre riportate sulla faccia sopra anche se nel progetto sono sotto.
|
||||
|
||||
-- Tabella per definizione modulo
|
||||
local WPF = {}
|
||||
@@ -42,6 +43,8 @@ function WPF.Classify( Proc, b3Raw)
|
||||
if not AuxId then return false end
|
||||
AuxId = AuxId + Proc.Id
|
||||
local vtN = EgtCurveExtrusion( AuxId, GDB_RT.GLOB)
|
||||
-- recupero il tipo di lavorazione
|
||||
local nCntType = EgtGetInfo( Proc.Id, 'CNT_TYPE', 'i') or 0
|
||||
-- se tasca
|
||||
if bPocket then
|
||||
local bDown = ( vtN:getZ() < - 0.5)
|
||||
@@ -49,6 +52,9 @@ function WPF.Classify( Proc, b3Raw)
|
||||
-- se altrimenti profilo orizzontale
|
||||
elseif abs( vtN:getZ()) < 0.5 then
|
||||
return false
|
||||
-- se penna o chiodatura va sempre bene (vengono sempre riportati sopra)
|
||||
elseif nCntType == 10 or nCntType == 20 then
|
||||
return true
|
||||
-- se altrimenti profilo verticale che non interessa tutta la sezione
|
||||
elseif Proc.Box:getMax():getZ() < b3Raw:getMax():getZ() - 2 then
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user