Mathematica provides an example of visualizing a Hilbert curve using splines as a Graphics object in this entry in its documentation system.
However, when one attempts to change the thickness, some graphical artifacts are generated (notice the seemingly arbitrarily placed sharp nubs on the main curve). The generating code and image are included below—notice the only difference between this line of code and the code in the documentation center is the argument for the thickness.
Is there a quick way to avoid/get rid of these?
Graphics[{Thickness[50/1500], HilbertCurve[4] /. Line -> BSplineCurve}]
CapForm
- eitherCapForm[None]
orCapForm["Round"]
fixes the issue $\endgroup$