!2970 开发:更新测试快照

pull/2971/head
林三 2 months ago committed by ChenX
parent b01a30a6d1
commit 9dce031fd5

@ -62,7 +62,7 @@ Array [
3, 3,
1, 1,
"材质1", "材质1",
10, 11,
"#ffffff", "#ffffff",
false, false,
0.2, 0.2,
@ -114,6 +114,7 @@ Array [
0, 0,
1, 1,
0, 0,
false,
0, 0,
0, 0,
0, 0,
@ -257,7 +258,7 @@ Array [
3, 3,
1, 1,
"材质1", "材质1",
10, 11,
"#ffffff", "#ffffff",
false, false,
0.2, 0.2,
@ -309,6 +310,7 @@ Array [
0, 0,
1, 1,
0, 0,
false,
"PhysicalMaterialRecord", "PhysicalMaterialRecord",
2, 2,
103, 103,
@ -316,7 +318,7 @@ Array [
3, 3,
1, 1,
"材质1(1)", "材质1(1)",
10, 11,
"#ffffff", "#ffffff",
false, false,
0.2, 0.2,
@ -368,6 +370,7 @@ Array [
0, 0,
1, 1,
0, 0,
false,
0, 0,
0, 0,
0, 0,
@ -495,7 +498,7 @@ Array [
3, 3,
1, 1,
"材质1", "材质1",
10, 11,
"#ffffff", "#ffffff",
false, false,
0, 0,
@ -547,6 +550,7 @@ Array [
0, 0,
1, 1,
0, 0,
false,
0, 0,
0, 0,
0, 0,

@ -159,6 +159,7 @@
"ts", "ts",
"tsx", "tsx",
"js" "js"
] ],
"testEnvironment": "jsdom"
} }
} }

@ -176,7 +176,7 @@ export class CheckInterfereTool
let planeSet = new Set<number[]>(); let planeSet = new Set<number[]>();
let f = new FuzzyFactory; let f = new FuzzyFactory;
for (let polygon of interCsg.polygons) for (let polygon of interCsg.polygons)
planeSet.add(f.lookupOrCreate(polygon.plane, polygon.plane)); planeSet.add(f.lookupOrCreate((polygon as any).plane, (polygon as any).plane));//防止TS类型检测错误
if (planeSet.size >= 4)//最少4个面围成一个三维实体 if (planeSet.size >= 4)//最少4个面围成一个三维实体
{ {

Loading…
Cancel
Save