EgtMachKernel 2.4b5 :
- migliorato CalcOffset di WaterJet.
This commit is contained in:
Binary file not shown.
+8
-1
@@ -2762,8 +2762,15 @@ WaterJetting::CalcCorrDir( const ICurveComposite* pCompo, double dU)
|
||||
bool
|
||||
WaterJetting::CalcOffset( ICurveComposite* pCompo, double dSignOffs)
|
||||
{
|
||||
// determino opzioni di offset
|
||||
int nFlag = ICurve::OFF_EXTEND ;
|
||||
if ( pCompo->IsClosed()) {
|
||||
Vector3d vtStart ; pCompo->GetStartDir( vtStart) ;
|
||||
Vector3d vtEnd ; pCompo->GetEndDir( vtEnd) ;
|
||||
if ( ! AreSameVectorEpsilon( vtStart, vtEnd, sin( 5 * DEGTORAD)))
|
||||
nFlag |= ICurve::OFF_FORCE_OPEN ;
|
||||
}
|
||||
// eseguo offset semplice
|
||||
int nFlag = ICurve::OFF_EXTEND | ICurve::OFF_FORCE_OPEN ;
|
||||
if ( pCompo->SimpleOffset( dSignOffs, nFlag))
|
||||
return true ;
|
||||
// se curva piatta, provo con offset avanzato
|
||||
|
||||
Reference in New Issue
Block a user