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