Merge branch 'test_SkipMortCut_T#3005' into develop
This commit is contained in:
@@ -1641,7 +1641,8 @@ local function SetCutsOnFrontMortises( vProc)
|
||||
-- verifico se i piani coincidono
|
||||
local bSamePlane = ( ptC1 and vtN1 and ptC2 and vtN2 and AreSameVectorApprox( vtN1, vtN2) and ( ptC2 - ptC1) * vtN1 < 1.0)
|
||||
if bSamePlane then
|
||||
vProc[i].CutFront = vProc[j].Id
|
||||
--vProc[i].CutFront = vProc[j].Id
|
||||
vProc[j].bSkipCut = true
|
||||
end
|
||||
-- log
|
||||
local sMsg = string.format( 'Cut %d meet Mortise %d', vProc[i].Id, vProc[j].Id) .. EgtIf( bSamePlane, ' with same plane', '')
|
||||
@@ -1658,7 +1659,8 @@ local function SetCutsOnFrontMortises( vProc)
|
||||
-- verifico se i piani coincidono
|
||||
local bSamePlane = ( ptC1 and vtN1 and ptC2 and vtN2 and AreSameVectorApprox( vtN1, vtN2) and ( ptC2 - ptC1) * vtN1 < 1.0)
|
||||
if bSamePlane then
|
||||
vProc[i].CutFront = vProc[j].Id
|
||||
--vProc[i].CutFront = vProc[j].Id
|
||||
vProc[j].bSkipCut = true
|
||||
end
|
||||
-- log
|
||||
local sMsg = string.format( 'Cut %d meet DtMortise %d', vProc[i].Id, vProc[j].Id) .. EgtIf( bSamePlane, ' with same plane', '')
|
||||
|
||||
@@ -236,7 +236,7 @@ function ProcessDtMortise.Make( Proc, nPhase, nRawId, nPartId, dCurrOvmH)
|
||||
-- verifico se frontale
|
||||
local bFront = ( Proc.Prc == 56)
|
||||
-- se mortasa di fronte, eseguo il taglio della faccia
|
||||
if bFront then
|
||||
if bFront and not Proc.bSkipCut then
|
||||
-- verifico esista la faccia di taglio
|
||||
local ptCutC, vtCutN = EgtSurfTmFacetCenter( Proc.Id, 1, GDB_ID.ROOT)
|
||||
if ptCutC and vtCutN and AreSameVectorApprox( vtExtr, vtCutN) then
|
||||
|
||||
@@ -467,7 +467,7 @@ function ProcessMortise.Make( Proc, nPhase, nRawId, nPartId, dCurrOvmH)
|
||||
end
|
||||
|
||||
-- se mortasa di fronte, eseguo il taglio della faccia
|
||||
if bFront then
|
||||
if bFront and not Proc.bSkipCut then
|
||||
-- verifico esista la faccia di taglio
|
||||
local ptCutC, vtCutN = EgtSurfTmFacetCenter( Proc.Id, 1, GDB_ID.ROOT)
|
||||
if ptCutC and vtCutN and AreSameVectorApprox( vtExtr, vtCutN) then
|
||||
|
||||
Reference in New Issue
Block a user