changes following PR

This commit is contained in:
Paul Leroy
2023-06-05 09:59:42 +02:00
parent 0c2ba1b6b5
commit 6b992ac14c
7 changed files with 42 additions and 45 deletions
+5 -6
View File
@@ -27,15 +27,14 @@ using namespace masc;
bool Feature::CheckSFExistence(ccPointCloud* cloud, const char* resultSFName)
{
int sfIdx = cloud->getScalarFieldIndexByName(resultSFName);
if (sfIdx >= 0)
{
return true;
}
else
if (!cloud || !resultSFName)
{
assert(false);
return false;
}
int sfIdx = cloud->getScalarFieldIndexByName(resultSFName);
return (sfIdx >= 0);
}
CCCoreLib::ScalarField* Feature::PrepareSF(ccPointCloud* cloud, const char* resultSFName, SFCollector* generatedScalarFields/*=nullptr*/, SFCollector::Behavior behavior/*=SFCollector::CAN_REMOVE*/)