Skip to content

Commit

Permalink
Fixed the sections count which was missing one. Thanks to ivla
Browse files Browse the repository at this point in the history
  • Loading branch information
Micheus committed Nov 11, 2024
1 parent c17b3d9 commit edf2bf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins_src/primitives/wpc_cylinder.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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} =
Expand Down

0 comments on commit edf2bf9

Please sign in to comment.