|
@@ -82,7 +82,7 @@ namespace OTSGBCalculate
|
|
|
|
|
|
double dd = 0, ds = 0;
|
|
double dd = 0, ds = 0;
|
|
ds = abs(ptParticleCenter.x - ptBParticleCenter.x);
|
|
ds = abs(ptParticleCenter.x - ptBParticleCenter.x);
|
|
- if (ds < 10 )//recognize these two particle in the same level
|
|
|
|
|
|
+ if (ds < 15 )//recognize these two particle in the same vertical line.
|
|
{
|
|
{
|
|
if (Bottom > TopB)//current particle is on the above
|
|
if (Bottom > TopB)//current particle is on the above
|
|
{
|
|
{
|
|
@@ -341,7 +341,7 @@ namespace OTSGBCalculate
|
|
if (dFeretDiameter >= 13)
|
|
if (dFeretDiameter >= 13)
|
|
{
|
|
{
|
|
// DS
|
|
// DS
|
|
- if (pParticle->GetType() != OTS_PARTICLE_TYPE::INVALID)//here we take all the particles
|
|
|
|
|
|
+ if (pParticle->GetType() != OTS_PARTICLE_TYPE::INVALID)//here we take all the particles except Invalid
|
|
{
|
|
{
|
|
listDSParticles.push_back(pParticle);
|
|
listDSParticles.push_back(pParticle);
|
|
}
|
|
}
|
|
@@ -542,7 +542,7 @@ namespace OTSGBCalculate
|
|
if (dFeretDiameter >= 13)
|
|
if (dFeretDiameter >= 13)
|
|
{
|
|
{
|
|
// DS
|
|
// DS
|
|
- if (pParticle->GetType() != OTS_PARTICLE_TYPE::INVALID)//here we take all the particles
|
|
|
|
|
|
+ if (pParticle->GetType() != OTS_PARTICLE_TYPE::INVALID)//here we take all the particles except Invalid.
|
|
{
|
|
{
|
|
listDSParticles.push_back(pParticle);
|
|
listDSParticles.push_back(pParticle);
|
|
}
|
|
}
|
|
@@ -552,7 +552,7 @@ namespace OTSGBCalculate
|
|
{
|
|
{
|
|
// D or Dsulfide
|
|
// D or Dsulfide
|
|
auto p = FindAdjacentParticle(pParticle, m_listParticles);
|
|
auto p = FindAdjacentParticle(pParticle, m_listParticles);
|
|
- if (p == nullptr)//pParticleÊÇÒ»¸ö¹ÂÁ¢µÄ¿ÅÁ£
|
|
|
|
|
|
+ if (p == nullptr)//pParticle is a isolated particle.
|
|
{
|
|
{
|
|
GB_CHEMICAL_TYPE ChemicalType = pParticle->GetChemicalType();
|
|
GB_CHEMICAL_TYPE ChemicalType = pParticle->GetChemicalType();
|
|
if (ChemicalType == GB_CHEMICAL_TYPE::CHE_S)
|
|
if (ChemicalType == GB_CHEMICAL_TYPE::CHE_S)
|
|
@@ -612,7 +612,7 @@ namespace OTSGBCalculate
|
|
if (nChemicalType == GB_CHEMICAL_TYPE::CHE_S)
|
|
if (nChemicalType == GB_CHEMICAL_TYPE::CHE_S)
|
|
{
|
|
{
|
|
// A
|
|
// A
|
|
- //COTSParticlePtr pParticleNew = COTSParticlePtr(pParticle);
|
|
|
|
|
|
+
|
|
GB_WIDTH_TYPE wt = this->CaculateLevelWidth(pParticle, GB_LEVEL_TYPE::A_TYPE);
|
|
GB_WIDTH_TYPE wt = this->CaculateLevelWidth(pParticle, GB_LEVEL_TYPE::A_TYPE);
|
|
|
|
|
|
switch (wt)
|
|
switch (wt)
|