|
|
|
@ -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;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|