A modifier for making meshes bend around curves.
This module can only be used with WebGLRenderer. When using WebGPURenderer, import the class from CurveModifierGPU.js.
Flow is an addon, and must be imported explicitly, see Installation#Addons.
import { Flow } from 'three/addons/modifiers/CurveModifier.js';
Constructs a new Flow instance.
mesh
The mesh to clone and modify to bend around the curve.
numberOfCurves
The amount of space that should preallocated for additional curves.
Default is 1.
Moves the mesh along the curve.
amount
The offset.
Updates the curve for the given curve index.
index
The curve index.
curve
The curve that should be used to bend the mesh.