mirror of
https://github.com/dgirardeau/q3DMASC.git
synced 2026-08-30 00:50:49 +08:00
Various updates (command line call to classification, etc.)
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
|
||||
using namespace masc;
|
||||
|
||||
CCLib::ScalarField* Feature::PrepareSF(ccPointCloud* cloud, const char* resultSFName)
|
||||
CCLib::ScalarField* Feature::PrepareSF(ccPointCloud* cloud, const char* resultSFName, SFCollector* generatedScalarFields/*=nullptr*/)
|
||||
{
|
||||
if (!cloud || !resultSFName)
|
||||
{
|
||||
@@ -50,6 +50,12 @@ CCLib::ScalarField* Feature::PrepareSF(ccPointCloud* cloud, const char* resultSF
|
||||
return nullptr;
|
||||
}
|
||||
cloud->addScalarField(newSF);
|
||||
|
||||
if (generatedScalarFields)
|
||||
{
|
||||
//track the generated scalar-field
|
||||
generatedScalarFields->push(cloud, newSF);
|
||||
}
|
||||
|
||||
resultSF = newSF;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user