Trimming :

- piccole correzioni.
This commit is contained in:
Daniele Bariletti
2026-04-27 16:00:03 +02:00
parent 1f36b52f1b
commit baf74c6398
2 changed files with 3 additions and 1 deletions
+3 -1
View File
@@ -130,11 +130,13 @@ if nLayerEditSyncId ~= nil and nLayerEditSyncId ~= GDB_ID.NULL then
while nId do while nId do
local ptStart = EgtSP(nId) local ptStart = EgtSP(nId)
local dU = EgtCurveParamAtPoint( vNewBorder[1], ptStart, dLinTol) local dU = EgtCurveParamAtPoint( vNewBorder[1], ptStart, dLinTol)
dU = round (dU) -- arrotondo: le isocurve toccavano la curva in punti a parametri interi
if dU == nil or dU < 0 then if dU == nil or dU < 0 then
EgtOutBox( ERROR_CONFIRM_SURF_CHANGE .. 'Error creating the new sync lines', 'Error', 'ERROR', 'OK') EgtOutBox( ERROR_CONFIRM_SURF_CHANGE .. 'Error creating the new sync lines', 'Error', 'ERROR', 'OK')
return return
end end
local ptStart = EgtSurfBezierGetPoint(nNewSurf, dU, 0.) ptStart = EgtSurfBezierGetPoint(nNewSurf, dU, 0.)
local ptEnd = EgtSurfBezierGetPoint(nNewSurf, dU, 1.) local ptEnd = EgtSurfBezierGetPoint(nNewSurf, dU, 1.)
local nNewIso = EgtLine( nEditSurfLayer, ptStart, ptEnd) local nNewIso = EgtLine( nEditSurfLayer, ptStart, ptEnd)
EgtSetName(nNewIso, SYNC_LINE_NAME) EgtSetName(nNewIso, SYNC_LINE_NAME)
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB