EgtGeomKernel 1.5a1 : Aggiunta prima versione distanza punto Curva di Bezier.

Ora si esporta la generica classe distanza punto curva.
This commit is contained in:
Dario Sassi
2014-01-05 09:47:43 +00:00
parent b4f2770eb8
commit 2216a87ab4
15 changed files with 580 additions and 91 deletions
+14 -6
View File
@@ -13,14 +13,17 @@
//--------------------------- Include ----------------------------------------
#include "stdafx.h"
#include "\EgtDev\Include\EGkDistPointArc.h"
#include "DistPointArc.h"
//----------------------------------------------------------------------------
DistPointArc::DistPointArc( const Point3d& ptP, const ICurveArc& arArc)
{
// distanza non calcolata
m_dDist = - 1 ;
if ( ! arArc.IsValid())
m_dDist = - 1 ;
return ;
// se circonferenza
if ( arArc.IsACircle())
@@ -31,10 +34,8 @@ DistPointArc::DistPointArc( const Point3d& ptP, const ICurveArc& arArc)
DistPointFlatArc( ptP, arArc) ;
// altrimenti caso generico
else {
}
else
DistPointHelix( ptP, arArc) ;
}
//----------------------------------------------------------------------------
@@ -104,6 +105,13 @@ DistPointArc::DistPointFlatArc( const Point3d& ptP, const ICurveArc& arArc)
}
}
//----------------------------------------------------------------------------
void
DistPointArc::DistPointHelix( const Point3d& ptP, const ICurveArc& arArc)
{
}
//----------------------------------------------------------------------------
bool
DistPointArc::GetSqDist( double& dSqDist)