I am currently exploring the use of ThreeJs to display STL files directly in a web browser. However, I am interested in finding a way to add customizable parameters to these models, allowing for easy editing using either ThreeJs or X3DOM. For instance, I would like to be able to add a text parameter to a cube model, which would then be embossed onto the cube at a specific location.
I am willing to convert the STL files to either ThreeJS model Js files or X3D files, as long as I can find a way to parameterize the rendering process in order to add text or other elements to the basic structure.
I am curious if anyone has experience working with this type of 3D parameterization and customization.
- Is it possible to achieve this within ThreeJS or X3DOM?
- If so, is there any relevant documentation or resources available to guide me through this process?
If these libraries are not capable of handling this type of parameterization, are there other libraries or tools that could accomplish the same goal?
Edit My primary question revolves around the ability to add parameters directly to the model itself. Is there a way for ThreeJS models to inherently understand and utilize parameters without requiring extensive customization? For example, if I were to adjust the side length parameter of a cube model from 1 to 3, could ThreeJS automatically render a larger cube based on this change?