Vroni :
- aggiunta funzione per ricavare il punto di un bisettore ad un determinato parametro.
This commit is contained in:
@@ -267,6 +267,17 @@ vroniObject::GetBisectorParams( int nEdge, double& dParS, double& dParE)
|
||||
return true ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
vr_bool
|
||||
vroniObject::GetBisectorPointAtParam( int nEdge, double dPar, double pt[3])
|
||||
{
|
||||
coord p ;
|
||||
EvaluateBisectorData( nEdge, ScaleV( dPar), &p) ;
|
||||
GetPointFromCoord( p, pt) ;
|
||||
|
||||
return true ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
vr_bool
|
||||
vroniObject::GetBisectorSites( int nEdge, int& nOrigCrvL, int& nOrigSubCrvL, int& nOrigCrvR, int& nOrigSubCrvR)
|
||||
@@ -284,7 +295,7 @@ vroniObject::GetBisectorSites( int nEdge, int& nOrigCrvL, int& nOrigSubCrvL, int
|
||||
GetLftSiteData( nEdge, &nSiteL, &typeL) ;
|
||||
if ( typeL == PNT) {
|
||||
nOrigCrvL = pnts[nSiteL].ext_appl.first ;
|
||||
nOrigSubCrvL = -1 ;
|
||||
nOrigSubCrvL = -1 ;
|
||||
}
|
||||
else if ( typeL == SEG) {
|
||||
nOrigCrvL = segs[nSiteL].ext_appl.first ;
|
||||
@@ -299,7 +310,7 @@ vroniObject::GetBisectorSites( int nEdge, int& nOrigCrvL, int& nOrigSubCrvL, int
|
||||
GetRgtSiteData( nEdge, &nSiteR, &typeR) ;
|
||||
if ( typeR == PNT) {
|
||||
nOrigCrvR = pnts[nSiteR].ext_appl.first ;
|
||||
nOrigSubCrvR = -1 ;
|
||||
nOrigSubCrvR = -1 ;
|
||||
}
|
||||
else if ( typeR == SEG) {
|
||||
nOrigCrvR = segs[nSiteR].ext_appl.first ;
|
||||
@@ -591,6 +602,7 @@ vroniObject::apiFreeOffsetData(void)
|
||||
void
|
||||
vroniObject::apiFreeBisectorBuffer(void)
|
||||
{
|
||||
m_nBufferedVDEdge = -1 ;
|
||||
// libera la memoria utilizzata per approssimare il bisettore
|
||||
FreeDrawingBuffer() ;
|
||||
// libero i dati degli edge utilizzati per i calcoli
|
||||
|
||||
Reference in New Issue
Block a user