EgtGeomKernel :
- funzioni che restituiscono punti nel parametrico di una bezier ora li restituiscono riscalati.
This commit is contained in:
+10
-3
@@ -512,14 +512,21 @@ SurfTriMesh::GetVertex( int nId, Point3d& ptP) const
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
SurfTriMesh::GetVertexParam( int nId, double& dU, double& dV) const
|
||||
SurfTriMesh::GetVertexParam( int nId, double& dU, double& dV, bool bDownScaled) const
|
||||
{
|
||||
// verifico esistenza del vertice
|
||||
if ( nId < 0 || nId >= GetVertexSize() || m_vVert[nId].nIdTria == SVT_DEL)
|
||||
return false ;
|
||||
// recupero i dati
|
||||
dU = m_vVert[nId].dU ;
|
||||
dV = m_vVert[nId].dV ;
|
||||
int SBZ_COEFF = 1024 ;
|
||||
if( bDownScaled) {
|
||||
dU = m_vVert[nId].dU / SBZ_COEFF ;
|
||||
dV = m_vVert[nId].dV / SBZ_COEFF ;
|
||||
}
|
||||
else {
|
||||
dU = m_vVert[nId].dU ;
|
||||
dV = m_vVert[nId].dV ;
|
||||
}
|
||||
return true ;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user