3dPrinting :

- piccole correzioni nei setti per evitare interruzione calcolo.
This commit is contained in:
SaraP
2023-06-01 17:31:43 +02:00
parent 01711d2925
commit fcd61efd53
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -671,6 +671,7 @@ local function FindRibsUserLinkDirection( nCrv1, nCrv2, vtSlicing)
-- costruisco la superficie "definita" dal setto di partenza con i primi due setti che lo definiscono
local nGrpTmp = EgtGroup( EgtGetParent( nCrv1))
local nSrfLoop = EgtCurveCompoFromPoints( nGrpTmp, {EgtEP( nCrv1), EgtSP( nCrv2)})
if not nSrfLoop then return false end
EgtAddCurveCompoLine( nSrfLoop, EgtSP( nCrv2) + 100 * EgtSV( nCrv2))
EgtAddCurveCompoLine( nSrfLoop, EgtEP( nCrv1) - 100 * EgtEV( nCrv1))
EgtCloseCurveCompo( nSrfLoop)
@@ -880,6 +881,7 @@ end
-------------------------------------------------------------------
local function FindHoleCurve( pt, vLoopIds)
-- trovo indice della curva di vLoopIds a cui appartiene pt ( in globale)
if not vLoopIds then return end
for i = 1, #vLoopIds do
local dPar = EgtCurveParamAtPoint( vLoopIds[i], pt, GEO.EPS_SMALL, GDB_RT.GLOB)
if dPar then
+1
View File
@@ -786,6 +786,7 @@ local function CalcRibsLink( nCurr, nNext, nLoopGrp, dStrand, bForceLink, bCheck
local ptS = EgtEP( nCurr)
local ptE = EgtSP( nNext)
if AreSamePointApprox( ptS, ptE) then return end
local nCrvId = EgtGetFirstInGroup( nLoopGrp)
-- recupero la curva di offset su cui calcolare link