I am wondering if anyone can provide me with some guidance.
I have a custom shape that I describe using a path and .lineTo + .arc. I then use .getPoints() and pass this to the LatheGeometry. This works great and I am happy with the result. My next step and where I am having some trouble is giving this shape some thickness (a very thin wall thickness).
Currently I pass a path to LatheGeometry which gives me the shape. I figured I should try to extrude the path that I already have and then pass that resulting plane to LatheGeometry, but I have not had success doing so.
Here is a visual of the pre-lathe shape I currently have, and the pre-lathe shape I am looking for to give me thickness.
To my knowledge, there is no built-in function in Three.js that can do this.
You want an equidistant curve, which is a CAD classic. Blender can do this easily, with the help of the “Curve Tools” addon, “Recursive offset” subfunction
If you want it interactively, via GUI slider “thickness”, then you’re on your own and have to construct the offset path like you did with the initial path.
That said: what visual impact do you expect this to have on the viewer?
I am looking for interactivity for this use case. Though the visual impact may be minimal this is for an engineering application that requires precise measurements.
I particularly like how you are putting the thickness to the inside and how you limit the slider’s range just so no “undercutting” occurs (thickness > smallest radius).