How to build corner with two intersecting line segments?

See Construction of frames with contour/profile

and from the Collection of examples from discourse.threejs.org

ProfiledContourGeometryMM

ProfiledContourGeometryUVs