How to visualize infinite lines with Makie.jl?

Say I have an infinite line passing through the points (0,0,0) and (1,1,1) in 3D. How to visualize this line in Makie so that it is always visible no matter the level of zoom?

We don’t have that for 3D, yet. But the way it works is to derive the endpoints of the line using the current projection matrix / axis limits. Therefore, whenever the projection changes, the line updates.

Is there an example in 2D that works already @jules? We have a couple of things that are infinite and that we would like to visualize such as lines, rays, planes.

The projection thing you can look at in the ablines code, for example. You’d have to analyze that matrix differently, though, for your 3D usecase: Makie.jl/src/basic_recipes/ablines.jl at master · MakieOrg/Makie.jl · GitHub