- in FaceData IsFaceRectangular e IsFaceRhomboid si passa Face invece che idFace
- in FaceByBlade introdotta funzione GetBladeEngagement che sostituisce GetMinNzDownUp
This commit is contained in:
@@ -216,10 +216,10 @@ function FaceData.GetFacesInfo( Proc, Part, FacesToGet)
|
||||
end
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
-- TODO valutare se scrivere in gruppo temporaneo che non richiede di passare ogni volta idPart; passare Face invece dell'id?
|
||||
function FaceData.IsFaceRectangular( Proc, idFace)
|
||||
-- TODO valutare se scrivere in gruppo temporaneo che non richiede di passare ogni volta idPart
|
||||
function FaceData.IsFaceRectangular( Proc, Face)
|
||||
local nAddGrpId = BeamLib.GetAddGroup( Proc.idPart)
|
||||
local nContourId, nContourCnt = EgtExtractSurfTmFacetLoops( Proc.id, idFace, nAddGrpId)
|
||||
local nContourId, nContourCnt = EgtExtractSurfTmFacetLoops( Proc.id, Face.id, nAddGrpId)
|
||||
if nContourCnt > 1 then
|
||||
error( 'IsFaceRectangular : too many loops')
|
||||
end
|
||||
@@ -235,10 +235,10 @@ function FaceData.IsFaceRectangular( Proc, idFace)
|
||||
end
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
-- TODO valutare se scrivere in gruppo temporaneo che non richiede di passare ogni volta idPart; passare Face invece dell'id?
|
||||
function FaceData.IsFaceRhomboid( Proc, idFace)
|
||||
-- TODO valutare se scrivere in gruppo temporaneo che non richiede di passare ogni volta idPart
|
||||
function FaceData.IsFaceRhomboid( Proc, Face)
|
||||
local nAddGrpId = BeamLib.GetAddGroup( Proc.idPart)
|
||||
local nContourId, nContourCnt = EgtExtractSurfTmFacetLoops( Proc.id, idFace, nAddGrpId)
|
||||
local nContourId, nContourCnt = EgtExtractSurfTmFacetLoops( Proc.id, Face.id, nAddGrpId)
|
||||
if nContourCnt > 1 then
|
||||
error( 'IsFaceRhomboid : too many loops')
|
||||
end
|
||||
@@ -247,8 +247,8 @@ function FaceData.IsFaceRhomboid( Proc, idFace)
|
||||
local bIsRhomboid = false
|
||||
-- un parallelogramma è un trapezoide con i lati paralleli a due a due
|
||||
if bIsTrapezoid
|
||||
and AreOppositeVectorApprox( Proc.Faces[idFace + 1].Edges[1].vtN, Proc.Faces[idFace + 1].Edges[3].vtN)
|
||||
and AreOppositeVectorApprox( Proc.Faces[idFace + 1].Edges[2].vtN, Proc.Faces[idFace + 1].Edges[4].vtN) then
|
||||
and AreOppositeVectorApprox( Face.Edges[1].vtN, Face.Edges[3].vtN)
|
||||
and AreOppositeVectorApprox( Face.Edges[2].vtN, Face.Edges[4].vtN) then
|
||||
|
||||
bIsRhomboid = true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user