From 1c404daac31d3819dbd4acfc62bb34569ceb0fa5 Mon Sep 17 00:00:00 2001 From: Bryn Lloyd <12702862+dyollb@users.noreply.github.com> Date: Tue, 11 Aug 2026 10:25:18 +0000 Subject: [PATCH] fix #256: throw exception if an unexpected strategy is given as arg --- src/surface/vector_heat_method.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/surface/vector_heat_method.cpp b/src/surface/vector_heat_method.cpp index 081ecbb3..c52d4a65 100644 --- a/src/surface/vector_heat_method.cpp +++ b/src/surface/vector_heat_method.cpp @@ -348,6 +348,8 @@ VertexData VectorHeatMethodSolver::computeLogMap(const Vertex& sourceVe case LogMapStrategy::AffineAdaptive: return computeLogMap_AffineAdaptive(sourceVert); } + throw std::logic_error("bad switch"); + return VertexData(); } VertexData VectorHeatMethodSolver::computeLogMap_AffineLocal(const Vertex& sourceVert) {