!2503 开发:修复错误

pull/2504/head
林三 10 months ago committed by ChenX
parent 01a1c727ee
commit 7fa99942d5

@ -638,7 +638,7 @@ export function GetHingeType(door: Entity, openDir: BoardOpenDir, allSpaceEnts:
let entBox = ent.GetBoundingBoxInMtx(ocsInv);
//防止关联无关侧板
if (entBox.getSize(new Vector3).z < DoorSpaceBox.max.z / 2) continue; //过滤掉小于门板高度一半(抽测板)
if (entBox.getSize(new Vector3).z < DoorSpaceBox.max.z / 4) continue; //过滤掉小于门板高度1/4小板件(抽测板)
if (DoorSpaceBox.min.z - entBox.max.z > -100 || entBox.min.z - DoorSpaceBox.max.z > -100) continue;
//无盖距离值
@ -674,7 +674,7 @@ export function GetHingeType(door: Entity, openDir: BoardOpenDir, allSpaceEnts:
{
if (minDist > noPassDoorExtend)
{
minDist = passDoorExtend;
minDist = noPassDoorExtend;
minDistType = "无盖铰链";
}
}
@ -694,7 +694,7 @@ export function GetHingeType(door: Entity, openDir: BoardOpenDir, allSpaceEnts:
let entBox = ent.GetBoundingBoxInMtx(ocsInv);
//防止关联无关侧板
if (entBox.getSize(new Vector3).z < DoorSpaceBox.max.z / 2) continue; //过滤掉小于门板高度一半(抽测板)
if (entBox.getSize(new Vector3).z < DoorSpaceBox.max.z / 4) continue; //过滤掉小于门板高度1/4小板件(抽测板)
if (DoorSpaceBox.min.z - entBox.max.z > -100 || entBox.min.z - DoorSpaceBox.max.z > -100) continue;
//无盖距离值
@ -730,7 +730,7 @@ export function GetHingeType(door: Entity, openDir: BoardOpenDir, allSpaceEnts:
{
if (minDist > noPassDoorExtend)
{
minDist = passDoorExtend;
minDist = noPassDoorExtend;
minDistType = "无盖铰链";
}
}
@ -750,7 +750,7 @@ export function GetHingeType(door: Entity, openDir: BoardOpenDir, allSpaceEnts:
let entBox = ent.GetBoundingBoxInMtx(ocsInv);
//防止关联无关层板
if (entBox.getSize(new Vector3).x < DoorSpaceBox.max.x / 2) continue; //过滤掉小于门板高度一半(抽测板)
if (entBox.getSize(new Vector3).x < DoorSpaceBox.max.x / 4) continue; //过滤掉小于门板高度1/4小板件(抽测板)
if (DoorSpaceBox.min.x - entBox.max.x > -100 || entBox.min.x - DoorSpaceBox.max.x > -100) continue;
//无盖距离值
@ -786,7 +786,7 @@ export function GetHingeType(door: Entity, openDir: BoardOpenDir, allSpaceEnts:
{
if (minDist > noPassDoorExtend)
{
minDist = passDoorExtend;
minDist = noPassDoorExtend;
minDistType = "无盖铰链";
}
}
@ -806,7 +806,7 @@ export function GetHingeType(door: Entity, openDir: BoardOpenDir, allSpaceEnts:
let entBox = ent.GetBoundingBoxInMtx(ocsInv);
//防止关联无关层板
if (entBox.getSize(new Vector3).x < DoorSpaceBox.max.x / 2) continue; //过滤掉小于门板高度一半(抽测板)
if (entBox.getSize(new Vector3).x < DoorSpaceBox.max.x / 4) continue; //过滤掉小于门板高度1/4小板件(抽测板)
if (DoorSpaceBox.min.x - entBox.max.x > -100 || entBox.min.x - DoorSpaceBox.max.x > -100) continue;
//无盖距离值
@ -842,7 +842,7 @@ export function GetHingeType(door: Entity, openDir: BoardOpenDir, allSpaceEnts:
{
if (minDist > noPassDoorExtend)
{
minDist = passDoorExtend;
minDist = noPassDoorExtend;
minDistType = "无盖铰链";
}
}

Loading…
Cancel
Save