We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85a8169 commit 4d4b560Copy full SHA for 4d4b560
src/primitives/Cone.jl
@@ -21,6 +21,11 @@ radius(c::Cone) = c.radius
21
height(c::Cone) = norm(c.tip - c.origin)
22
direction(c::Cone) = (c.tip .- c.origin) ./ height(c)
23
24
+# Note:
25
+# nvertices is matched with Cylinder, where each end has half the vertices. That
26
+# results in less than nvertices for Cone, but allows a Cylinder and a Cone to
27
+# be seamless matched with the same `nvertices`
28
+
29
function coordinates(c::Cone{T}, nvertices=30) where {T}
30
nvertices += isodd(nvertices)
31
nhalf = div(nvertices, 2)
0 commit comments