DataBeam :
- migliorato calcolo elevazione di feature con 1 sola faccia - lavorazione faccia superiore di tenone con svuotature successive se pezzo corto - miglioramenti a LapJoint.
This commit is contained in:
+11
-4
@@ -1,4 +1,4 @@
|
||||
-- BeamLib.lua by Egaltech s.r.l. 2020/08/18
|
||||
-- BeamLib.lua by Egaltech s.r.l. 2020/09/07
|
||||
-- Libreria globale per Travi
|
||||
-- 2020/07/28 Corretto calcolo attacchi e uscite di lame per non uscire dalla faccia sotto.
|
||||
-- 2020/08/18 Aggiunto a GetNearestParalOpposite e GetNearestOrthoOpposite parametro opzionale vtNorm.
|
||||
@@ -390,9 +390,16 @@ function BeamLib.GetFaceElevation( nSurfId, nFac, nPartId)
|
||||
local b3Box = EgtGetBBoxRef( nSurfId, GDB_BB.STANDARD, frOCS)
|
||||
local dElev = b3Box:getDimZ()
|
||||
if nPartId then
|
||||
local _, dCenElev = BeamLib.GetPointDirDepth( nPartId, ptC, vtN)
|
||||
if dCenElev and dCenElev > dElev then
|
||||
dElev = dCenElev
|
||||
if EgtSurfTmFacetCount( nSurfId) > 1 then
|
||||
local _, dCenElev = BeamLib.GetPointDirDepth( nPartId, ptC, vtN)
|
||||
if dCenElev and dCenElev > dElev then
|
||||
dElev = dCenElev
|
||||
end
|
||||
else
|
||||
local b3Solid = EgtGetBBoxRef( EgtGetFirstNameInGroup( nPartId, 'Box') or GDB_ID.NULL, GDB_BB.STANDARD, frOCS)
|
||||
if b3Solid and b3Solid:getMax():getZ() > dElev then
|
||||
dElev = b3Solid:getMax():getZ()
|
||||
end
|
||||
end
|
||||
end
|
||||
return dElev
|
||||
|
||||
Reference in New Issue
Block a user