EgtGeomKernel 2.5f6 :
- dove possibile e sicuro sostituiti dynamic_cast con static_cast.
This commit is contained in:
+2
-2
@@ -1199,7 +1199,7 @@ SurfTriMesh::Clone( void) const
|
||||
bool
|
||||
SurfTriMesh::CopyFrom( const IGeoObj* pGObjSrc)
|
||||
{
|
||||
const SurfTriMesh* pStm = dynamic_cast<const SurfTriMesh*>( pGObjSrc) ;
|
||||
const SurfTriMesh* pStm = GetBasicSurfTriMesh( pGObjSrc) ;
|
||||
if ( pStm == nullptr)
|
||||
return false ;
|
||||
return CopyFrom( *pStm) ;
|
||||
@@ -2992,7 +2992,7 @@ bool
|
||||
SurfTriMesh::DoSewing( const ISurfTriMesh& stmOther, const Frame3d& frOther, double dTol)
|
||||
{
|
||||
// recupero l'altra superficie
|
||||
const SurfTriMesh* pOther = dynamic_cast<const SurfTriMesh*>( &stmOther) ;
|
||||
const SurfTriMesh* pOther = GetBasicSurfTriMesh( &stmOther) ;
|
||||
if ( pOther == nullptr)
|
||||
return false ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user