I am currently in the process of importing an STL object into my three.js scene.
Unfortunately, this particular object seems to be using a large amount of GPU resources for rendering and animation, causing the overall performance of the scene to suffer. Because of this, I have been exploring potential alternatives.
Considering the fact that the shape is relatively simple, I have been thinking about creating a 2D shape and extruding it to achieve the desired effect.
The 3D shape in question is a square frame (specifically, a photo frame) with no intricate curves or complex geometry involved.
Initially, one idea was to create four 3D oblong shapes, rotate each one by 90 degrees, and position them meticulously within the scene to mimic a frame - but this approach has its drawbacks.
https://i.sstatic.net/OtP83.jpg
https://i.sstatic.net/9cLjU.jpg
So, instead of loading the STL model directly into the scene, I am looking for guidance on how to generate this shape in three.js (with a hollow center) and subsequently extrude it to add depth.