mirror of
https://github.com/dgirardeau/q3DMASC.git
synced 2026-08-30 17:10:52 +08:00
the use of progressDlg.close instead of progressDlg.hide led to an instability
code cleaning
This commit is contained in:
@@ -123,7 +123,7 @@ bool ContextBasedFeature::prepare( const CorePoints& corePoints,
|
||||
|
||||
//and the scalar field
|
||||
assert(!sf);
|
||||
sfWasAlreadyExisting = CheckSFExistence(corePoints.cloud, qPrintable(resultSFName));
|
||||
sf1WasAlreadyExisting = CheckSFExistence(corePoints.cloud, qPrintable(resultSFName));
|
||||
sf = PrepareSF(corePoints.cloud, qPrintable(resultSFName), generatedScalarFields, SFCollector::CAN_REMOVE);
|
||||
if (!sf)
|
||||
{
|
||||
@@ -133,7 +133,7 @@ bool ContextBasedFeature::prepare( const CorePoints& corePoints,
|
||||
source.name = sf->getName();
|
||||
|
||||
// NOT NECESSARY IF THE VALUE IS ALREADY COMPUTED
|
||||
if (!scaled() && !sfWasAlreadyExisting) //with 'kNN' neighbors, we can compute the values right away
|
||||
if (!scaled() && !sf1WasAlreadyExisting) //with 'kNN' neighbors, we can compute the values right away
|
||||
{
|
||||
unsigned pointCount = corePoints.size();
|
||||
QString logMessage = "Computing " + typeStr
|
||||
|
||||
Reference in New Issue
Block a user