From a8026d289b812fa1b6a54384b897331070bb659c Mon Sep 17 00:00:00 2001 From: Andreas Schuh Date: Mon, 21 Sep 2020 12:52:47 +0100 Subject: [PATCH] =?UTF-8?q?fixup:=20Use=20of=20undefined=20=E2=80=98npts?= =?UTF-8?q?=E2=80=99=20in=20SurfaceCollisions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Modules/PointSet/src/SurfaceCollisions.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/PointSet/src/SurfaceCollisions.cc b/Modules/PointSet/src/SurfaceCollisions.cc index bff0cc121..76b77d61d 100644 --- a/Modules/PointSet/src/SurfaceCollisions.cc +++ b/Modules/PointSet/src/SurfaceCollisions.cc @@ -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);