From c72a09b00f0768979d783325adb21434c2b4c19d Mon Sep 17 00:00:00 2001 From: heroboy Date: Fri, 20 Apr 2018 01:58:49 +0800 Subject: [PATCH] [THREE] add Curve.arcLengthDivisions (#25116) * Update three-core.d.ts add `optionalTarget` parameter * Update three-core.d.ts add Curve.arcLengthDivisions * fix Indentation --- types/three/three-core.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/types/three/three-core.d.ts b/types/three/three-core.d.ts index d08d7ad1db..d3bd6fadcc 100644 --- a/types/three/three-core.d.ts +++ b/types/three/three-core.d.ts @@ -6582,6 +6582,14 @@ export class AudioListener extends Object3D { * class Curve<T extends Vector> */ export class Curve { + + /** + * This value determines the amount of divisions when calculating the cumulative segment lengths of a curve via .getLengths. + * To ensure precision when using methods like .getSpacedPoints, it is recommended to increase .arcLengthDivisions if the curve is very large. + * Default is 200. + */ + arcLengthDivisions:number; + /** * Returns a vector for point t of the curve where t is between 0 and 1 * getPoint(t: number): T;