Thanks!!
i used your approach ,it help us to control length and height of rectangular geometry.
But still i am facing issue of extrude profiles along a rectangular path. I also modify your code to extrude/sweep my profile along rectangular path but it didn’t work out.
I also check the link you provided, I also have closely related issue as your’s
https://discourse.threejs.org/t/simple-rectangular-geometry-extrusion-anyone/743
I need to extrude different profile (refer below image) along path to construct my final photo frame
Below is the image of photo frame with the profile i need
And i need to modify the length and height of same frame with same profile.I tried out scaling but it not useful in my case because i need to maintain the inside boundary of photo frame