|
|
|
@@ -996,12 +996,12 @@ local function OrderFeatures( vProc, b3Raw, nPartId)
|
|
|
|
|
return true
|
|
|
|
|
end
|
|
|
|
|
-- se primo è foro e secondo è un ribasso o tenone, il foro va sempre prima a meno che il ribasso non sia di testa
|
|
|
|
|
if Drill.Identify(B1) and ( LapJoint.Identify(B2) or Mortise.Identify(B2) or Tenon.Identify(B2)) and B2.PassedByHole and
|
|
|
|
|
if Drill.Identify(B1) and ( LapJoint.Identify(B2) or Mortise.Identify(B2) or Tenon.Identify(B2) or ScarfJoint.Identify(B2)) and B2.PassedByHole and
|
|
|
|
|
B1.Box:getCenter():getX() > B2.Box:getMin():getX() and B1.Box:getCenter():getX() < B2.Box:getMax():getX() then
|
|
|
|
|
return true
|
|
|
|
|
end
|
|
|
|
|
-- se primo è un ribasso e secondo è un foro o tenone, il ribasso va sempre dopo a meno che il ribasso non sia di testa
|
|
|
|
|
if ( LapJoint.Identify(B1) or Mortise.Identify(B1) or Tenon.Identify(B1)) and B1.PassedByHole and Drill.Identify(B2) and
|
|
|
|
|
if ( LapJoint.Identify(B1) or Mortise.Identify(B1) or Tenon.Identify(B1) or ScarfJoint.Identify(B1)) and B1.PassedByHole and Drill.Identify(B2) and
|
|
|
|
|
B2.Box:getCenter():getX() > B1.Box:getMin():getX() and B2.Box:getCenter():getX() < B1.Box:getMax():getX() then
|
|
|
|
|
return false
|
|
|
|
|
end
|
|
|
|
@@ -2227,8 +2227,8 @@ function GetFeatureInfoAndDependency( vProc, b3Raw, nPartId)
|
|
|
|
|
and DtMortise.SideIdentify( ProcB) and Overlaps( Proc.Box, ProcB.Box) and DtMortise.IsDeeper( ProcB, b3Raw) then
|
|
|
|
|
Proc.PassedByDtMortise = true
|
|
|
|
|
end
|
|
|
|
|
-- se tenone è attraversato da foro allora il foro deve essere fatto prima
|
|
|
|
|
if Tenon.Identify( Proc) and Drill.Identify( ProcB) and Overlaps( Proc.Box, ProcB.Box) then
|
|
|
|
|
-- se tenone o ScarfJoint sono attraversati da foro allora il foro deve essere fatto prima
|
|
|
|
|
if ( Tenon.Identify( Proc) or ScarfJoint.Identify( Proc)) and Drill.Identify( ProcB) and Overlaps( Proc.Box, ProcB.Box) then
|
|
|
|
|
Proc.PassedByHole = true
|
|
|
|
|
end
|
|
|
|
|
-- se taglio attraversato da foro, si definisce precedenza in base ad angolo
|
|
|
|
|