I am plotting a cylinder in makie like so:
julia> cyl = GeometryBasics.Cylinder(GeometryBasics.Point(0.0,0.0,0.0),GeometryBasics.Point(0.0,1.0,0.0),.5)
Cylinder3{Float64}([0.0, 0.0, 0.0], [0.0, 1.0, 0.0], 0.5)
julia> mesh(cyl,transparency = false, overdraw = false, color = :cyan)
This is coarsely faceted. How can I increase the number of facets that Makie plots? This is not an intrinsic property of the GeometryBasics.cylinder
object. It is computed on the fly by the faces
function, which I’m guessing Makie calls to get the mesh faces for the object.
But the Makie.mesh
function doesn’t seem to have a keyword argument to control the number of faces to use when triangulating the cylinder.
I looked at the GeometryBasics.mesh
function, thinking I could create a polygon mesh myself with a large number of faces. But this function doesn’t seem to have a keyword argument for controlling the number of faces either.
How can the number of faces used to plot these geometric primitives be increased?