How to render a cylinder?

From the docs:

using Meshes, MeshViz

import GLMakie as Mke

c = Cylinder(1.0)

viz(c)

image

Here is a collection of random cylinders:

cs = [Cylinder(1.0, Segment(rand(Point3, 2))) for i=1:3]

viz(cs, color=1:3)

image

1 Like