Not sure if I understand your requirements correctly.
Is that what you mean?
From the Collection of examples from discourse.threejs.org
2DShapeToCube
WallBuilding
ExtrudeFromPoints