- in BeamLib.Is3EdgesApprox tolleranza portata a 5 (era 15 mm)

- in DiceCut piccola correzione
This commit is contained in:
luca.mazzoleni
2025-05-16 14:35:31 +02:00
parent 8a127f39ee
commit 8d8f66fd77
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -391,7 +391,7 @@ function BeamLib.Is3EdgesApprox( Proc, idFace, nAddGrpId)
elseif nEntityCount then
for i = 1, nEntityCount do
local dLength = EgtCurveCompoLength( nContourId, i - 1)
if dLength < 15 then nEdges = nEdges - 1 end
if dLength < 5 then nEdges = nEdges - 1 end
end
end
if nEdges == 3 then bResult = true end
+4 -4
View File
@@ -400,16 +400,16 @@ function DiceCut.GetDice( Part, Face1, Face2, OptionalParameters)
local ptCMainFace
local vtNMainFace
if Face1.ptCenter and Face1.vtN then
ptCMainFace = Face1.ptCenter
vtNMainFace = Face1.vtN
ptCMainFace = Point3d( Face1.ptCenter)
vtNMainFace = Vector3d( Face1.vtN)
end
-- faccia secondaria; se non esiste, si forza il calcolo dei piani ortogonali
local ptCSubordinateFace
local vtNSubordinateFace
local bGetOrtoPlanes
if Face2.ptCenter and Face2.vtN then
ptCSubordinateFace = Face2.ptCenter
vtNSubordinateFace = Face2.vtN
ptCSubordinateFace = Point3d( Face2.ptCenter)
vtNSubordinateFace = Vector3d( Face2.vtN)
bGetOrtoPlanes = false
else
bGetOrtoPlanes = true