Skip to content

Commit

Permalink
fixup: Use of undefined ‘npts’ in SurfaceCollisions
Browse files Browse the repository at this point in the history
  • Loading branch information
schuhschuh committed Sep 21, 2020
1 parent 7dfb4b6 commit a8026d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/PointSet/src/SurfaceCollisions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class ComputeBoundingSpheres
for (vtkIdType cellId = re.begin(); cellId != re.end(); ++cellId) {
// Get triangle vertices
_Surface->GetCellPoints(cellId, ptIds.GetPointer());
mirtkAssert(npts == 3, "surface is triangular mesh");
mirtkAssert(ptIds->GetNumberOfIds() == 3, "surface is triangular mesh");

// Get triangle vertex positions
_Surface->GetPoint(ptIds->GetId(0), a);
Expand Down

0 comments on commit a8026d2

Please sign in to comment.