EgtGeomKernel :
- piccola correzione alla intersCurvePlane.
This commit is contained in:
@@ -69,7 +69,7 @@ IntersCurvePlane::IntersCurvePlane( const ICurve& Curve, const Point3d& ptOrig,
|
||||
else if( pCalcCrv->GetType() == CRV_COMPO){
|
||||
for( int i = 0 ; i < GetBasicCurveComposite( pCalcCrv)->GetCurveCount(); ++i) {
|
||||
const ICurve& subCurve = *GetBasicCurveComposite( pCalcCrv)->GetCurve( i) ;
|
||||
CalcIntersLinePlane( m_plPlane, *pCalcCrv, i) ;
|
||||
CalcIntersLinePlane( m_plPlane, subCurve, i) ;
|
||||
}
|
||||
OrderAndCompleteIntersections() ;
|
||||
}
|
||||
@@ -235,9 +235,9 @@ IntersCurvePlane::GetIntersCount( void)
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
IntersCurvePlane::GetIntersPointNearTo( int nCrv, const Point3d& ptNear, Point3d& ptI)
|
||||
IntersCurvePlane::GetIntersPointNearTo( const Point3d& ptNear, Point3d& ptI)
|
||||
{
|
||||
if ( m_nIntersCount == 0 || nCrv < 0 || nCrv > 1)
|
||||
if ( m_nIntersCount == 0)
|
||||
return false ;
|
||||
|
||||
// ricerca del punto più vicino tra le intersezioni singole
|
||||
|
||||
Reference in New Issue
Block a user