Skip to content

Commit

Permalink
fix: Centre from confex face in Annulus (#4071)
Browse files Browse the repository at this point in the history
Fixes a small error where the last vertex was being ignore for Annulus shapes.
  • Loading branch information
paulgessinger authored Feb 6, 2025
1 parent b94ecd1 commit f5c726b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/src/Surfaces/DiscSurface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ Polyhedron DiscSurface::polyhedronRepresentation(
if (addCentreFromConvexFace) {
vertices.push_back(wCenter);
}
auto [faces, triangularMesh] =
detail::FacesHelper::convexFaceMesh(vertices, true);
auto [faces, triangularMesh] = detail::FacesHelper::convexFaceMesh(
vertices, addCentreFromConvexFace);
return Polyhedron(vertices, faces, triangularMesh, exactPolyhedron);
} else {
// Two concentric rings, we use the pure concentric method momentarily,
Expand Down

0 comments on commit f5c726b

Please sign in to comment.