Skip to content

Commit 08a00f0

Browse files
committed
Bugfix - generate non-svector
1 parent 3dad74a commit 08a00f0

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

docs/src/examples/darts.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,8 @@ function to_Point3f(p::Meshes.Point)
4949
return Point3f(x, y, z)
5050
end
5151
52-
function to_makie_poly(circle::Meshes.Circle; N=32)
53-
return [to_Point3f(circle(t)) for t in range(0, 1, length=N)]
54-
end
55-
56-
function to_makie_poly(ngon::Meshes.Ngon)
57-
return [to_Point3f(pt) for pt in ngon.vertices]
58-
end
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]
5954
```
6055

6156
## Modeling the Dartboard

0 commit comments

Comments
 (0)