- in sawpluschain refactoring per migliorare leggibilità

- in sawpluschain gestita estensione start se tasca troppo stretta
- in BeamLib aggiunta funzione GetAdjacentFaces
This commit is contained in:
luca.mazzoleni
2024-04-03 17:56:39 +02:00
parent 99c0ada098
commit 57d696e2fc
2 changed files with 152 additions and 100 deletions
+16 -1
View File
@@ -1169,4 +1169,19 @@ function BeamLib.IsFeatureCuttingEntireSection( b3Proc, dRawW, dRawH)
end
-------------------------------------------------------------------------------------------------------------
return BeamLib
function BeamLib.GetAdjacentFaces( Proc, nFacet)
local AdjacentFaces = {}
local vFaceAdjacencies = EgtSurfTmFacetAdjacencies( Proc.Id, nFacet)[1]
for i = 1, #vFaceAdjacencies do
if vFaceAdjacencies[i] > -1 then
local _, ptP1, ptP2 = EgtSurfTmFacetsContact( Proc.Id, nFacet, vFaceAdjacencies[i], GDB_ID.ROOT)
local dLen = dist( ptP1, ptP2)
table.insert( AdjacentFaces, { Id = vFaceAdjacencies[i], LengthOnMainFace = dLen})
end
end
return AdjacentFaces
end
-------------------------------------------------------------------------------------------------------------
return BeamLib