Control the orientation of the extruded shape

I want to extrude a shape along a succession of vector3 to build pipe mesh, but I was confused how to determine the orientation of shape2d in 3d space (just like below schematic diagram show)! I guess there should is a binornal conception to control it, but I can’t find parallel param in threejs extrude geometry!

image

1 possible answer(s) on “Control the orientation of the extruded shape

  1. See this StackOverflow issue and answers.

    Also see #1569.

    The related code can now be found in Curve.computeFrenetFrames().

    Currently, there no way to control the orientation of the extruded shape prior to extruding it along a path.

    I would suggest you use modeling software to build your model, and then import the model into three.js.