Moving implementation of SelectTopVolumeContours into SelectTopVolumeContoursBlock.cxx

This commit is contained in:
Mingzhe Li 2024-07-08 17:00:42 -07:00
parent fbc5c33380
commit 64477b3800
4 changed files with 2129 additions and 1052 deletions

File diff suppressed because it is too large Load Diff

@ -73,6 +73,10 @@ public:
this->isMarchingCubes = marchingCubes;
}
VTKM_CONT const vtkm::Id GetSavedBranches() { return this->nSavedBranches; }
VTKM_CONT const bool GetMarchingCubes() { return this->isMarchingCubes; }
VTKM_CONT const vtkm::cont::LogLevel GetTimingsLogLevel() { return this->TimingsLogLevel; }
private:
VTKM_CONT vtkm::cont::DataSet DoExecute(const vtkm::cont::DataSet&) override;
VTKM_CONT vtkm::cont::PartitionedDataSet DoExecutePartitions(

@ -69,8 +69,16 @@ struct SelectTopVolumeContoursBlock
{
SelectTopVolumeContoursBlock(vtkm::Id localBlockNo, int globalBlockId);
void SortBranchByVolume(const vtkm::cont::DataSet& hierarchicalTreeDataSet,
const vtkm::Id totalVolume);
void SortBranchByVolume(const vtkm::cont::DataSet& bdDataSet, const vtkm::Id totalVolume);
void SelectLocalTopVolumeBranch(const vtkm::cont::DataSet& bdDataSet,
const vtkm::Id nSavedBranches);
void ComputeTopVolumeBranchHierarchy(const vtkm::cont::DataSet& bdDataSet);
void ExtractIsosurfaceOnSelectedBranch(const vtkm::cont::DataSet& bdDataSet,
const bool isMarchingCubes,
const vtkm::cont::LogLevel timingsLogLevel);
// Block metadata
vtkm::Id LocalBlockNo;