|
|
|
@ -13,7 +13,6 @@ import { ObjectId } from "../DatabaseServices/ObjectId";
|
|
|
|
|
import { ProcessingGroupRecord } from "../DatabaseServices/ProcessingGroup/ProcessingGroupRecord";
|
|
|
|
|
import { TemplateLatticeRecord } from "../DatabaseServices/Template/ProgramTempate/TemplateLatticeRecord";
|
|
|
|
|
import { TemplateWineRackRecord } from "../DatabaseServices/Template/ProgramTempate/TemplateWineRackRecord";
|
|
|
|
|
import { BoxIsSolid } from "../Geometry/Box";
|
|
|
|
|
import { OBB } from "../Geometry/OBB/obb";
|
|
|
|
|
import { FuzzyFactory } from "../csg/core/FuzzyFactory";
|
|
|
|
|
import { CSG2Geometry2, Geometry2CSG2 } from "../csg/core/Geometry2CSG";
|
|
|
|
@ -187,7 +186,11 @@ export class CheckInterfereTool
|
|
|
|
|
{
|
|
|
|
|
const [min, max] = measureBoundingBox(p);
|
|
|
|
|
const box = new Box3(new Vector3(min[0], min[1], min[2]), new Vector3(max[0], max[1], max[2]));
|
|
|
|
|
let isSolid = BoxIsSolid(box, 0.2);
|
|
|
|
|
let size = new Vector3;
|
|
|
|
|
box.getSize(size);
|
|
|
|
|
|
|
|
|
|
let arr = size.toArray();
|
|
|
|
|
let isSolid = arr.every(a => a > 0.2) && (arr.filter(a => a > 1).length > 1);
|
|
|
|
|
return isSolid;
|
|
|
|
|
}))
|
|
|
|
|
continue;
|
|
|
|
|