From 9ba0c6f4cc48763c75e6febc19679cd9e4f72dd7 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Thu, 6 Jun 2024 16:49:19 +0200 Subject: [PATCH] EgtGeomKernel : - miglioria nel calcolo silhouette di Trimesh. --- SurfTriMesh.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SurfTriMesh.cpp b/SurfTriMesh.cpp index f521865..374f1f1 100644 --- a/SurfTriMesh.cpp +++ b/SurfTriMesh.cpp @@ -1148,7 +1148,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_FILLET) ; + pSfrTria->Offset( dTol, ICurve::OFF_CHAMFER) ; if ( IsNull( pSfr)) pSfr.Set( pSfrTria) ; else @@ -1164,7 +1164,7 @@ SurfTriMesh::GetSilhouette( const Vector3d& vtDir, double dTol, POLYLINEVECTOR& return false ; // Effettuo contro-offset - pSfr->Offset( -dTol, ICurve::OFF_EXTEND) ; + pSfr->Offset( -dTol, ICurve::OFF_CHAMFER) ; // Recupero i contorni della regione for ( int i = 0 ; i < pSfr->GetChunkCount() ; ++ i) { @@ -1219,7 +1219,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_FILLET) ; + pSfrTria->Offset( dTol, ICurve::OFF_CHAMFER) ; if ( IsNull( pSfr)) pSfr.Set( pSfrTria) ; else @@ -1236,7 +1236,7 @@ SurfTriMesh::GetSilhouette( const Plane3d& plPlane, double dTol, POLYLINEVECTOR& return true ; // Effettuo contro-offset - pSfr->Offset( -dTol, ICurve::OFF_EXTEND) ; + pSfr->Offset( -dTol, ICurve::OFF_CHAMFER) ; // Recupero i contorni della regione for ( int i = 0 ; i < pSfr->GetChunkCount() ; ++ i) {