EgtMachKernel :

- in mortasatura sistemato calcolo affondamento quando inclinata rispetto al movimento
- corretto calcolo spessore da associare a curva derivata da contorno superficie con TOOL_PAR_SLANT.
This commit is contained in:
DarioS
2022-08-05 07:25:45 +02:00
parent 6b3343a98e
commit 5cde54467a
2 changed files with 15 additions and 2 deletions
+10 -2
View File
@@ -876,8 +876,16 @@ Operation::AdjustCurveFromSurf( ICurveComposite* pCrvCompo, int nToolDir, int nF
frExtr.Set( ORIG, vtExtr) ;
frExtr.Invert() ;
BBox3d b3Extr ; pCopy->GetBBox( frExtr, b3Extr) ;
if ( ! b3Extr.IsEmpty())
pCrvCompo->SetThickness( b3Extr.GetMax().z - b3Extr.GetMin().z) ;
if ( ! b3Extr.IsEmpty()) {
double dThick = b3Extr.GetMax().z - b3Extr.GetMin().z ;
Point3d ptStart, ptEnd ;
if ( nToolDir == TOOL_PAR_SLANT && pCrvCompo->IsALine( LIN_TOL_STD, ptStart, ptEnd)) {
BBox3d b3Crv ; pCrvCompo->GetBBox( frExtr, b3Crv) ;
if ( ! b3Crv.IsEmpty())
dThick -= b3Crv.GetMax().z - b3Crv.GetMin().z ;
}
pCrvCompo->SetThickness( dThick) ;
}
}
}
return true ;