try 
https://hofk.de/main/discourse.threejs/2019/ProfiledContourGeometryMM/ProfiledContourGeometryMM.html
from Collection of examples from discourse.threejs.org
Construction of frames with contour/profile
threejsResources/ConstructFrame at master · hofk/threejsResources · GitHub