Bug when running several times the classification corrected

This commit is contained in:
Paul Leroy
2023-05-31 00:20:19 +02:00
parent bcc77db21f
commit 4f6cd5fe6d
9 changed files with 11 additions and 37 deletions
+1 -2
View File
@@ -1038,7 +1038,7 @@ struct FeaturesAndScales
};
bool Tools::PrepareFeatures(const CorePoints& corePoints, Feature::Set& features, QString& errorStr,
CCCoreLib::GenericProgressCallback* progressCb/*=nullptr*/, SFCollector* generatedScalarFields/*=nullptr*/)
CCCoreLib::GenericProgressCallback* progressCb/*=nullptr*/, SFCollector* generatedScalarFields/*=nullptr*/)
{
if (features.empty() || !corePoints.origin)
{
@@ -1377,7 +1377,6 @@ bool Tools::PrepareFeatures(const CorePoints& corePoints, Feature::Set& features
for (const Feature::Shared& feature : features)
{
std::cout << feature->toString().toStdString() << std::endl;
//we have to 'finish' the process for scaled features
if (feature->scaled() && !feature->finish(corePoints, errorStr))
{