#include "SMESHDS_Mesh.hxx"
#include "SMESH_MeshAlgos.hxx"
#include "SMESH_OctreeNode.hxx"
+#include "SMESH_Comment.hxx"
#include <GEOMUtils.hxx>
#include <Basics_Utils.hxx>
smIdType aMinId = myMin[i];
smIdType aMaxId = myMax[i];
- TCollection_AsciiString aStr;
+ SMESH_Comment aStr;
if ( aMinId != IntegerFirst() )
- aStr += FromIdType<int>(aMinId);
+ aStr << aMinId;
aStr += "-";
- if ( aMaxId != IntegerLast() )
- aStr += FromIdType<int>(aMaxId);
+ if ( aMaxId != std::numeric_limits<smIdType>::max() )
+ aStr << aMaxId;
// find position of the string in result sequence and insert string in it
if ( anIntSeq.Length() == 0 )
{
anIntSeq.Append( aMinId );
- aStrSeq.Append( aStr );
+ aStrSeq.Append( (const char*)aStr );
}
else
{
if ( aMinId < anIntSeq.First() )
{
anIntSeq.Prepend( aMinId );
- aStrSeq.Prepend( aStr );
+ aStrSeq.Prepend( (const char*)aStr );
}
else if ( aMinId > anIntSeq.Last() )
{
anIntSeq.Append( aMinId );
- aStrSeq.Append( aStr );
+ aStrSeq.Append( (const char*)aStr );
}
else
for ( int j = 1, k = anIntSeq.Length(); j <= k; j++ )
if ( aMinId < anIntSeq( j ) )
{
anIntSeq.InsertBefore( j, aMinId );
- aStrSeq.InsertBefore( j, aStr );
+ aStrSeq.InsertBefore( j, (const char*)aStr );
break;
}
}
{
if (( myOri = ( n1->GetID() < n2->GetID() )))
{
- first = FromIdType<int>(n1->GetID());
- second = FromIdType<int>(n2->GetID());
+ first = n1->GetID();
+ second = n2->GetID();
}
else
{
myOri = -1;
- first = FromIdType<int>(n2->GetID());
- second = FromIdType<int>(n1->GetID());
+ first = n2->GetID();
+ second = n1->GetID();
}
myOri *= ori;
}
//purpose : return element ID
//=======================================================================
-int SMDS_VolumeTool::ID() const
+smIdType SMDS_VolumeTool::ID() const
{
- return myVolume ? FromIdType<int>(myVolume->GetID()) : 0;
+ return myVolume ? myVolume->GetID() : 0;
}