I’m looking for a way to plot simple planes with Makie.
The only solution I found so far is this:
using Makie
p1 = Point3(0.0, 0.0, 0.0)
p2 = Point3(0.0, 1.0, 0.0)
p3 = Point3(0.0, 1.0, 1.0)
p4 = Point3(0.0, 0.0, 1.0)
sc = mesh([p1, p2, p3], color = :blue, shading = false)
mesh!(sc, [p1, p4, p3], color = :blue, shading = false)
Which gives me:
I would be happy with this result, but I cannot change it’s transparency (the alpha
keyword doesn’t have any effect). The result I’d like to achieve is something like the picture at the bottom of the RegionTrees package’s page: a couple of transparent planes (or boxes).
As my final goal would be to visualize octrees, another idea came in mind, while writing this post:
using Makie
using GeometryTypes: HyperRectangle
hr = HyperRectangle(Vec3f0(0), Vec3f0(1))
mesh(hr)
The problem with this is also the lack of transparency. Is this a bug in Makie? Or should I plot planes/cubes with other functions?