EgtGeomKernel :

- piccola modifica a SurfTriMesh::Cut per evitare deformazione facce per aggiustamento vertici su piano di taglio.
This commit is contained in:
DarioS
2023-02-05 15:41:33 +01:00
parent 078f730512
commit 2f3a6189a7
2 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -187,7 +187,7 @@ Polygon3d::Trim( const Plane3d& plPlane, bool bInVsOut, bool bOnEq, bool bOnCt)
DBLVECTOR vDist ;
vDist.reserve( m_vVert.capacity()) ;
for ( auto& ptP : m_vVert) {
double dDist = ( ptP - ORIG) * plPlane.GetVersN() - plPlane.GetDist() ;
double dDist = DistPointPlane( ptP, plPlane) ;
if ( abs( dDist) < EPS_SMALL)
++ nNbrOn ;
else if ( dDist < 0)