Skip to content

Commit a72924d

Browse files
committed
Bugfix the bugfix
1 parent 08a00f0 commit a72924d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/src/examples/darts.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ function Ngon(sector::Sector; N=8)
4444
return Meshes.Ngon(arc_o..., arc_i...)
4545
end
4646
47-
function to_Point3f(p::Meshes.Point)
47+
function _Point3f(p::Meshes.Point)
4848
x, y, z = ustrip.(m, [p.coords.x, p.coords.y, p.coords.z])
4949
return Point3f(x, y, z)
5050
end
5151
52-
to_makie_poly(circle::Meshes.Circle; N=32) = Point3f[to_Point3f(circle(t)) for t in range(0, 1, length=N)]
53-
to_makie_poly(ngon::Meshes.Ngon) = Point3f[to_Point3f(pt) for pt in ngon.vertices]
52+
_poly(circle::Meshes.Circle; N=32) = [(_Point3f(circle(t)) for t in range(0, 1, length=N))...]
53+
_poly(ngon::Meshes.Ngon) = [(_Point3f(pt) for pt in ngon.vertices)...]
5454
```
5555

5656
## Modeling the Dartboard
@@ -104,7 +104,7 @@ fig = Figure()
104104
ax = LScene(fig[1, 1], scenekw=(show_axis=true,))
105105
106106
for region in all_regions
107-
poly!(ax, to_makie_poly(region.geometry), color=region.color)
107+
poly!(ax, _poly(region.geometry), color=region.color)
108108
end
109109
110110
fig

0 commit comments

Comments
 (0)