diff --git a/include/geometrycentral/surface/surface_point.ipp b/include/geometrycentral/surface/surface_point.ipp index 3c4f0b0e..63a55c9c 100644 --- a/include/geometrycentral/surface/surface_point.ipp +++ b/include/geometrycentral/surface/surface_point.ipp @@ -151,9 +151,9 @@ inline SurfacePoint SurfacePoint::inEdge(Edge targetEdge) const { switch (type) { case SurfacePointType::Vertex: if (vertex == targetEdge.halfedge().tailVertex()) { - return SurfacePoint(targetEdge, 1); - } else if (vertex == targetEdge.halfedge().tipVertex()) { return SurfacePoint(targetEdge, 0); + } else if (vertex == targetEdge.halfedge().tipVertex()) { + return SurfacePoint(targetEdge, 1); } break; case SurfacePointType::Edge: