EgtGeomKernel 1.5l1 :
- aggiornamento a VS2013 - migliorato SimpleOffset e implementato anche per CurveComposite - il lato di offset ora viene dal segno dello spostamento ( + a destra, - a sinistra) - il vettore estrusione ora è la normale al piano di offset (se non c'è uso Z+) - aggiunto a tutte le entità geometriche membro m_nTempProp intero temporaneo - migliorata DistPointCrvBezier e DistPointArc - corretta IntersLineArc con linee che non giacciono nel piano XY - corretta ModifyStart di CurveArc - a PolyArc aggiunto metodo ParamLinearTransform - aggiunta gestione riferimento di griglia (CPlane).
This commit is contained in:
+3
-1
@@ -49,6 +49,8 @@ IntersLineArc::IntersLineArc( const ICurveLine& Line, const ICurveArc& Arc)
|
||||
// linea : copia e Direzione
|
||||
m_Line.CopyFrom( &Line) ;
|
||||
m_vtDirL = m_Line.GetEnd() - m_Line.GetStart() ;
|
||||
Vector3d vtDirLXY = m_vtDirL ;
|
||||
vtDirLXY.z = 0 ;
|
||||
if ( m_vtDirL.SqLenXY() < EPS_SMALL * EPS_SMALL)
|
||||
return ;
|
||||
|
||||
@@ -56,7 +58,7 @@ IntersLineArc::IntersLineArc( const ICurveLine& Line, const ICurveArc& Arc)
|
||||
m_Arc.CopyFrom( &Arc) ;
|
||||
|
||||
// punto proiezione del centro arco sulla linea
|
||||
double dU = (( m_Arc.GetCenter() - m_Line.GetStart()) * m_vtDirL) / m_vtDirL.SqLenXY() ;
|
||||
double dU = (( m_Arc.GetCenter() - m_Line.GetStart()) * vtDirLXY) / vtDirLXY.SqLenXY() ;
|
||||
Point3d ptPrjCen = m_Line.GetStart() + m_vtDirL * dU ;
|
||||
// quadrato della distanza tra centro e punto proiezione
|
||||
double dSqDist = ( ptPrjCen - m_Arc.GetCenter()).SqLenXY() ;
|
||||
|
||||
Reference in New Issue
Block a user