From cf022921a714f03a527bc2a7a4fdcd7549e80f53 Mon Sep 17 00:00:00 2001 From: SaraP Date: Fri, 15 Nov 2024 10:21:53 +0100 Subject: [PATCH] EgtGeomKernel 2.6k1 : - in GetSilhouette ripristinato l'offset di tipo fillet ed extend per sistemare imprecisioni sugli spigoli. --- EgtGeomKernel.rc | Bin 11718 -> 11718 bytes SurfTriMesh.cpp | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/EgtGeomKernel.rc b/EgtGeomKernel.rc index 92988221aa5950607bfff205efac5187292b894c..09ef2a743042cd8c485027c3c44566c9e2459f7f 100644 GIT binary patch delta 289 zcmX>WeJpyzI%aiGhCGIJh8%`ehGHOAV9;O)W+-7u1ma8}FBB-731Uyas3kpFPd#gM z9Lp>wRzn6I2E)zw`OY&WeJpyzI%aKGhCGIJh8%`WhGK>c1_cHUhESkLCPN8BDnkm89}HwAf_cT0FKS6| z{=m$_%xb`(!(g)cHs5)s$u(R$lRrqRFlRBCOx`FUzF9yij&bt@Za0J?Yi78lfzT2b zxMmb_pr#&aBu!XN4k6XK2PfatnK${Bng}n*W1e8IN?D*QkySo HePsdwsS8X2 diff --git a/SurfTriMesh.cpp b/SurfTriMesh.cpp index 8124565..547753b 100644 --- a/SurfTriMesh.cpp +++ b/SurfTriMesh.cpp @@ -1154,7 +1154,7 @@ SurfTriMesh::GetSilhouette( const Vector3d& vtDir, double dTol, POLYLINEVECTOR& if ( ! IsNull( pSfrTria)) { if ( bAllTria && Tria.GetN() * vtVers < 0) pSfrTria->Invert() ; - pSfrTria->Offset( dTol, ICurve::OFF_CHAMFER) ; + pSfrTria->Offset( dTol, ICurve::OFF_FILLET) ; if ( IsNull( pSfr)) pSfr.Set( pSfrTria) ; else @@ -1170,7 +1170,7 @@ SurfTriMesh::GetSilhouette( const Vector3d& vtDir, double dTol, POLYLINEVECTOR& return false ; // Effettuo contro-offset - pSfr->Offset( -dTol, ICurve::OFF_CHAMFER) ; + pSfr->Offset( -dTol, ICurve::OFF_EXTEND) ; // Recupero i contorni della regione for ( int i = 0 ; i < pSfr->GetChunkCount() ; ++ i) { @@ -1225,7 +1225,7 @@ SurfTriMesh::GetSilhouette( const Plane3d& plPlane, double dTol, POLYLINEVECTOR& if ( ! IsNull( pSfrTria)) { if ( bAllTria && Tria.GetN() * vtVers < 0) pSfrTria->Invert() ; - pSfrTria->Offset( dTol, ICurve::OFF_CHAMFER) ; + pSfrTria->Offset( dTol, ICurve::OFF_FILLET) ; if ( IsNull( pSfr)) pSfr.Set( pSfrTria) ; else @@ -1242,7 +1242,7 @@ SurfTriMesh::GetSilhouette( const Plane3d& plPlane, double dTol, POLYLINEVECTOR& return true ; // Effettuo contro-offset - pSfr->Offset( -dTol, ICurve::OFF_CHAMFER) ; + pSfr->Offset( -dTol, ICurve::OFF_EXTEND) ; // Recupero i contorni della regione for ( int i = 0 ; i < pSfr->GetChunkCount() ; ++ i) {