Skip to content

Commit 3dad74a

Browse files
committed
Bugfix
1 parent d71a078 commit 3dad74a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/src/examples/darts.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,17 @@ function Ngon(sector::Sector; N=8)
4444
return Meshes.Ngon(arc_o..., arc_i...)
4545
end
4646
47-
function Point3f(p::Meshes.Point)
47+
function to_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
5252
function to_makie_poly(circle::Meshes.Circle; N=32)
53-
return [Point3f(circle(t)) for t in range(0, 1, length=N)]
53+
return [to_Point3f(circle(t)) for t in range(0, 1, length=N)]
5454
end
5555
5656
function to_makie_poly(ngon::Meshes.Ngon)
57-
return [Point3f(pt) for pt in ngon.vertices]
57+
return [to_Point3f(pt) for pt in ngon.vertices]
5858
end
5959
```
6060

0 commit comments

Comments
 (0)