EgtGraphics 2.5h1 :
- migliorata distribuzione connessioni tra sopra e sotto di curve per spessore.
This commit is contained in:
+3
-3
@@ -972,18 +972,18 @@ static bool
|
||||
CalcCurveConnectingLines( const PolyLine& plCrv, const Vector3d& vtTh, bool bDense, PNTVECTOR& vPnt)
|
||||
{
|
||||
// assegno coefficiente
|
||||
double dDelta = ( bDense ? 0.25 : 1) ;
|
||||
double dDelta = ( bDense ? 0.25 : 0.5) ;
|
||||
// ciclo per creare i segmenti di raccordo
|
||||
double dU, dUprev = - dDelta ;
|
||||
vPnt.reserve( 5) ;
|
||||
for ( bool bFound = plCrv.GetFirstU( dU) ; bFound ; bFound = plCrv.GetNextU( dU)) {
|
||||
if ( ( dU - dUprev) > dDelta - EPS_PARAM) {
|
||||
if ( ( dU - dUprev) > dDelta - EPS_PARAM || fmod( dU, 1.) < EPS_PARAM) {
|
||||
Point3d ptP ;
|
||||
plCrv.GetCurrPoint( ptP) ;
|
||||
vPnt.push_back( ptP) ;
|
||||
ptP += vtTh ;
|
||||
vPnt.push_back( ptP) ;
|
||||
dUprev += dDelta ;
|
||||
dUprev = dU ;
|
||||
}
|
||||
}
|
||||
return true ;
|
||||
|
||||
Reference in New Issue
Block a user