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:
+10
-2
@@ -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 ;
|
||||
|
||||
Reference in New Issue
Block a user