开发:优化代码

pull/1678/MERGE
ChenX 3 years ago
parent 9e04130bd9
commit 36bfea9f46

@ -1,6 +1,6 @@
import Flatbush from 'flatbush';
import { Box3, BufferGeometry, Float32BufferAttribute, MathUtils, Matrix4, Shape as TShape, ShapeUtils, Vector3 } from "three";
import { arrayRemoveDuplicateBySort, arraySortByNumber } from "../Common/ArrayExt";
import { arrayPushArray, arrayRemoveDuplicateBySort, arraySortByNumber } from "../Common/ArrayExt";
import { curveLinkGroup } from "../Common/CurveUtils";
import { clamp, FixIndex } from "../Common/Utils";
import { Contour } from "../DatabaseServices/Contour";
@ -202,12 +202,12 @@ export class ContourTreeNode
}
}
let vertices = [...pts];
let vertices = pts.concat();
let holes = this.children.map(h =>
{
// TestDraw(h.contour.Curve, depth + 1);
let pts = h.contour.Curve.GetStretchPoints();
vertices.push(...pts);
arrayPushArray(vertices, pts);
return pts;
});

Loading…
Cancel
Save