DataBeam :- correzioni e migliorie varie.

This commit is contained in:
Dario Sassi
2019-10-07 06:47:08 +00:00
parent 2981dcb50d
commit ed02b71319
12 changed files with 296 additions and 100 deletions
+3 -16
View File
@@ -1,4 +1,4 @@
-- BeamLib.lua by Egaltech s.r.l. 2019/09/04
-- BeamLib.lua by Egaltech s.r.l. 2019/10/03
-- Libreria globale per Travi
-- Tabella per definizione modulo
@@ -363,8 +363,8 @@ function BeamLib.GetFaceWithMostAdj( nSurfId, nPartId)
end
-- recupero le facce non in sottosquadra e con il maggior numero di adiacenze
local nFacInd = {}
local nMaxAdj = 0
local nSupAdj = 0
local nMaxAdj = -1
local nSupAdj = -1
for i = 1, nFacCnt do
if not vUcut[i] then
if vAdj[i] > nMaxAdj then
@@ -412,19 +412,6 @@ function BeamLib.GetFaceWithMostAdj( nSurfId, nPartId)
return nFacOpt, dMinElev, nFacOpt2, dMinElev2
end
---------------------------------------------------------------------
function BeamLib.GetFaceBox( nSurfId, nFacet)
-- estraggo la faccia temporaneamente
local FacId = EgtCopySurfTmFacet( nSurfId, nFacet, EgtGetParent( nSurfId))
if not FacId then return end
-- determino l'ingombro in globale
local b3Glob = EgtGetBBoxGlob( FacId, GDB_BB.STANDARD)
-- cancello la faccia temporanea
EgtErase( FacId)
-- restituisco il bounding box
return b3Glob
end
---------------------------------------------------------------------
function BeamLib.GetFaceHvRefDim( nSurfId, nFacet)
-- recupero centro e normale della faccia