EgtMachKernel :

- piccola miglioria a lavorazione finitura superfici per riconoscimento parti a massimo affondamento da eliminare.
This commit is contained in:
Dario Sassi
2024-05-13 07:58:54 +02:00
parent fece411fa7
commit 68a6a544c6
+2 -2
View File
@@ -1391,9 +1391,9 @@ SurfFinishing::AddZigZag( ICAvToolSurfTm* pCAvTlStm, const Frame3d& frSurf,
while ( currPU != vPntU.end()) {
auto nextPU = next( currPU) ;
bool bNext = ( nextPU != vPntU.end()) ;
bool bNextDown = ( bNext ? nextPU->second > -10 * EPS_SMALL : true) ;
bool bNextDown = ( bNext ? nextPU->second > -m_Params.m_dApprox : true) ;
// punto corrente è al minimo
if ( currPU->second > -10 * EPS_SMALL) {
if ( currPU->second > -m_Params.m_dApprox) {
// se precedente e successivo al minimo, cancello e basta
if ( bPrevDwn && bNextDown) {
if ( ! ptPrev.IsValid() || abs( currPU->first.y - ptPrev.y) > 10 * EPS_SMALL)