From c8ac91adae8beadedeaa77ad05052d5f59cff18c Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Tue, 22 Jan 2019 11:44:14 +0000 Subject: [PATCH] EgtExecutor 2.1a3 : - corretta funzione ExeCreateSurfTmConvexHullInBBox. --- EXE_GdbCreateSurf.cpp | 5 +++++ EgtExecutor.rc | Bin 16176 -> 16176 bytes 2 files changed, 5 insertions(+) diff --git a/EXE_GdbCreateSurf.cpp b/EXE_GdbCreateSurf.cpp index 8860e87..a2e351a 100644 --- a/EXE_GdbCreateSurf.cpp +++ b/EXE_GdbCreateSurf.cpp @@ -503,6 +503,11 @@ MyCreateSurfTmConvexHullInBBox( int nParentId, int nId, const BBox3d& b3Box, int vTria[1] = MyCreateSidePlaneHull( vVert, bNXp, b3Box, -3) ; vTria[2] = MyCreateSidePlaneHull( vVert, bNXp, b3Box, +2) ; vTria[3] = MyCreateSidePlaneHull( vVert, bNXp, b3Box, -2) ; + // invalido i triangoli con normale opposta alla direzione attesa + for ( int i = 0 ; i < 4 ; ++ i) { + if ( ( vTria[i].GetN().x > 0) != bNXp) + vTria[i].Set( vTria[i].GetP( 0), vTria[i].GetP( 1), vTria[i].GetP( 2)) ; + } // cerco uno o due piani validi int nPlane1 = -1 ; int nPlane2 = -1 ; diff --git a/EgtExecutor.rc b/EgtExecutor.rc index a83652d5521e1c987be54cc66cd7141128bda9e5..7dbecaab9d86830ee48c0ce29247b5a83dd17532 100644 GIT binary patch delta 79 zcmdl`x1nysFE&Qw&A-`PnSqoe*K!sx?>N)s4T4pS#*-bnk~jAW*?>e(i-FY$N+HxV MD8kglDP58Q0D5;DV*mgE delta 79 zcmdl`x1nysFE&P_&A-`PnSqoe*K!sx?>N)s4T4pSMw1=6k~jAW*?>e(i-FY$N+HxV MD8kglDP58Q0C_7LTL1t6