|
@@ -45408,7 +45408,8 @@
|
|
var curve = this.curve = new CatmullRomCurve3(points, false);
|
|
var curve = this.curve = new CatmullRomCurve3(points, false);
|
|
curve.UtoTMapArr = []; //用于存储 getSpacedPoints得到的点对应points的百分比对应
|
|
curve.UtoTMapArr = []; //用于存储 getSpacedPoints得到的点对应points的百分比对应
|
|
var oldCount = count;
|
|
var oldCount = count;
|
|
- count = Math.max(2, Math.round(this.getTotalDistance() * 200)), points = curve.getSpacedPoints(count - 1); //拆分为更密集的点
|
|
|
|
|
|
+ count = MathUtils.clamp(Math.round(this.getTotalDistance() * 200), 2, 100000), points = curve.getSpacedPoints(count - 1); //拆分为更密集的点
|
|
|
|
+ //count太多很卡住
|
|
|
|
|
|
/* //window.arcLengthDivisions && (curve.arcLengthDivisions = arcLengthDivisions) //默认200,但改为1也没变化呀
|
|
/* //window.arcLengthDivisions && (curve.arcLengthDivisions = arcLengthDivisions) //默认200,但改为1也没变化呀
|
|
let oldCount = count
|
|
let oldCount = count
|