Skip to content

Commit

Permalink
Merge pull request #598 from Micheus/mv/v2.4-fix-pie-primitive
Browse files Browse the repository at this point in the history
Fixed an issue in Pie primitive
  • Loading branch information
dgud authored Jan 2, 2025
2 parents 2f65ade + edf2bf9 commit f44baa0
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 f44baa0

Please sign in to comment.