Recently I had a discussion about how to draw a cylinder with outline and contours just for its lids.
I remembered, that I saw such functionality in LDrawLoader example.
After reading the source code of the loader and LDraw specs (Line Type 5), here is an attempt to create such outlined cylinder: https://codepen.io/prisoner849/pen/dyGqWJy?editors=0010
Here is a prototype of enhanced EdgesGeometry, that produces data for approach with conditional line segments.
Looks interesting with a glTF model