- lieve correzione per la lettura di vCuts

This commit is contained in:
luca.mazzoleni
2023-06-14 15:59:41 +02:00
parent dabd2d2681
commit 0443133557
+6 -3
View File
@@ -400,9 +400,12 @@ local function MakeFromTop( sCutting, Proc, nPhase, nRawId, nPartId, dOvmHead, b
local bDangerousReliefCut = false
local frFace = BL.GetFaceHvRefDim( Proc.Id, 0)
-- verifico che i tagli perpendicolari siano perpendicolari al lato più vicino a Z
local vtTemp = EgtSurfTmFacetNormVersor( vCuts[1][1], 0, GDB_ID.ROOT) ^ frFace:getVersY()
if #vCuts > 0 and vtTemp:isSmall() and not ( bDownCut or bFromBottom) then
bDangerousReliefCut = true
local nFirstPerpendicularCut = ( #vCuts ~= 0 and ( vCuts[1][1] or vCuts[3][1]))
if nFirstPerpendicularCut then
local vtTemp = EgtSurfTmFacetNormVersor( nFirstPerpendicularCut, 0, GDB_ID.ROOT) ^ frFace:getVersY()
if #vCuts > 0 and vtTemp:isSmall() and not ( bDownCut or bFromBottom) then
bDangerousReliefCut = true
end
end
--DC.PrintOrderCut( vCuts)