From edf2bf9681beafad9e8bd9bb3613c501677faf7f Mon Sep 17 00:00:00 2001 From: micheus Date: Mon, 11 Nov 2024 13:23:04 -0300 Subject: [PATCH] Fixed the sections count which was missing one. Thanks to ivla --- plugins_src/primitives/wpc_cylinder.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins_src/primitives/wpc_cylinder.erl b/plugins_src/primitives/wpc_cylinder.erl index 9c5552fc..fbbe618e 100644 --- a/plugins_src/primitives/wpc_cylinder.erl +++ b/plugins_src/primitives/wpc_cylinder.erl @@ -237,7 +237,7 @@ pie_verts(Sections, TopX, TopZ, BotX, BotZ, Height, Degrees, AngleOffset) -> DtoRad = math:pi()/180.0, Offset = AngleOffset*DtoRad, Delta = (Degrees*DtoRad)/Sections, - Rings = lists:seq(0, Sections-1), + Rings = lists:seq(0, Sections), [Top0|_] = Top = ring_of_verts(Rings, Delta, YAxis, TopX, TopZ, Offset), [Bottom0|_] = Bottom = ring_of_verts(Rings, Delta, -YAxis, BotX, BotZ, Offset), {TopExt,BottomExt} =