I'm a beginner in Threejs and I'm attempting to create an elbow shape along a curved path with varying begin_radius
and end_radius
, using the curve_radius
and an angle
. However, I haven't been successful in achieving the desired results.
CylinderGeometry
allows for setting thebegin_radius
andend_radius
but does not support a curve path.TorusGeometry
supports setting thecurve_radius
andangle
, however it lacks options for adjusting thebegin_radius
andend_radius
, as well as being non-solid.LatheGeometry
faces similar limitations asCylinderGeometry
.ExtrudeGeometry
encounters comparable challenges asTorusGeometry
.TubeGeometry
presents the same drawbacks asTorusGeometry
.
I may be overlooking potential solutions within the mentioned geometries. Your guidance on alternative approaches would be greatly appreciated.
--EDIT: June 1 2020--
https://jsfiddle.net/arundhaj/ysfr8jb0
I have managed to modify TubeGeometry
to achieve variable radius, although the solidity remains a challenge.
By incorporating the generateCap
function from CylinderGeomery
to add caps at the start and end of the arc, the shape works well with a single cap but distorts when both caps are added.
Your assistance is requested.