You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to render a tube geometry whose trajectory follows an arbitrary spline curve.
I made the below working component mainly from the TubeGeometry example in the three.js documenation.
Now I'd like to replace the
CustomSinCurve
points with an arbitrary curve (ideally a spline curve). I tried usingTHREE.SplineCurve
like this:However, this leads to an error on instantiating the
geom
object:Can someone suggest what I am doing wrong or correct my code? Thank you. 🙏
Beta Was this translation helpful? Give feedback.
All reactions