From 9389b62ff1c5709bc5f83629898f684d910f80e3 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Sat, 14 Feb 2026 09:27:21 +0100 Subject: [PATCH] EgtMachKernel : - miglioria in Trace di SimulatorSP. --- SimulatorSP.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SimulatorSP.cpp b/SimulatorSP.cpp index 3610afa..f2e1e92 100644 --- a/SimulatorSP.cpp +++ b/SimulatorSP.cpp @@ -1717,15 +1717,18 @@ SimulatorSP::TraceToolTipMove( int nMoveType) SetModifiedOff modOff ; // eseguo tracciatura static string TRACE_MOVE = "Move" ; + static int TRACE_MAX_LINE = 1000 ; if ( m_nCurrTrace == GDB_ID_NULL) { m_nCurrTrace = ExeCreateGeoPoint( nTraceGrpId, ptTip, GDB_ID_ROOT) ; m_pGeomDB->SetInfo( m_nCurrTrace, TRACE_MOVE, nMoveType) ; m_pGeomDB->SetStipple( m_nCurrTrace, ( nMoveType == 0 ? 3 : 0), 0x8C8C) ; } else { + const ICurveComposite* pCC = GetCurveComposite( m_pGeomDB->GetGeoObj( m_nCurrTrace)) ; + int nCount = ( pCC != nullptr ? pCC->GetCurveCount() : 0) ; int nTraMove ; m_pGeomDB->GetInfo( m_nCurrTrace, TRACE_MOVE, nTraMove) ; - if ( ( nMoveType == 0) == ( nTraMove == 0)) + if ( ( nMoveType == 0) == ( nTraMove == 0) && nCount < TRACE_MAX_LINE) ExeAddCurveCompoLine( m_nCurrTrace, ptTip, true, GDB_ID_ROOT) ; else { Point3d ptPrev ; ExeEndPoint( m_nCurrTrace, GDB_ID_ROOT, ptPrev) ;