EgtGeomKernel :

- funzioni che restituiscono punti nel parametrico di una bezier ora li restituiscono riscalati.
This commit is contained in:
Daniele Bariletti
2025-11-18 16:16:54 +01:00
parent d7dd7b9f80
commit 2a3f809e4e
5 changed files with 43 additions and 35 deletions
+10 -3
View File
@@ -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 ;
}