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:
+14
-6
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user