Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ struct ComputeFeatureNeighborsFunctor
}
const std::array<int64, k_NeighborCount> neighborVoxelIndexOffsets = initializeFaceNeighborOffsets<ImageDimensionStateT>(dims);

const usize totalPoints = featureIds.getNumberOfTuples();

const std::array<float64, k_NeighborCount> precomputedFaceAreas = computeFaceSurfaceAreas<ImageDimensionStateT>(spacing);
std::vector<std::map<usize, float64>> neighborSurfaceAreas(totalFeatures);

Expand Down Expand Up @@ -199,6 +197,8 @@ struct ComputeFeatureNeighborsFunctor
*/
if constexpr(std::is_same_v<ImageDimensionStateT, Image3D>)
{
const usize totalPoints = featureIds.getNumberOfTuples();

// Loop over all internal cells to generate the neighbor lists
for(int64 zIndex = 1; zIndex < dims[2] - 1; zIndex++)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "simplnx/Parameters/ArraySelectionParameter.hpp"
#include "simplnx/Parameters/AttributeMatrixSelectionParameter.hpp"
#include "simplnx/Parameters/BoolParameter.hpp"
#include "simplnx/Parameters/DataObjectNameParameter.hpp"
#include "simplnx/Parameters/GeometrySelectionParameter.hpp"

namespace nx::core
Expand Down
3 changes: 2 additions & 1 deletion src/Plugins/SimplnxCore/test/ComputeFeatureNeighborsTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#include <catch2/catch.hpp>
#include <filesystem>
#include <fstream>

namespace fs = std::filesystem;
using namespace nx::core;
Expand Down Expand Up @@ -600,6 +599,8 @@ void ExecuteFilter(DataStructure& dataStructure, bool testBoundaryCells, bool te
UnitTest::CompareNeighborLists<int32>(dataStructure, k_ExemplarNeighborsListPath, k_NeighborsListPath);

UnitTest::CompareNeighborLists<float32>(dataStructure, k_ExemplarSSAListPath, k_SSAListPath);

UnitTest::CheckArraysInheritTupleDims(dataStructure);
}
} // namespace

Expand Down
Loading
Loading